Skip to content

BUG: Capacity change algorithm provides incorrect answer under certain circumstances #192

@bmeyers

Description

@bmeyers

Describe the bug
When using the default (non-MOSEK) solver in the main pipeline, the capacity change algorithm returns incorrect results on some test data with known capacity changes. Specifically, the trend term is large and positive, fitting the capacity changes with the trend rather than the piecewise constant term. This only occurs for some edge cases of true positive data sets.

Image

To Reproduce
Steps to reproduce the behavior:

  1. Load PVO test data provided by Chris Deline (NREL)
  2. Run data handler pipeline with default solver
  3. Inspect capacity change results

Expected behavior
When solving with MOSEK, you get the following result, with is expected:

Image

Environment (please complete the following information about your working environment):

  • OS: MacOS
  • Python version: 3.12.3
  • Solar Data Tools version: 1.6.6
  • cvxpy: 1.6.2
  • clarabel: 0.9.0
  • mosek: 11.0.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions