Sienna-Platform / Sienna-Platform/InfrastructureOptimizationModels.jl

UndefinedReference in constraint container for `PiecewiseLinearCostConstraint`

Open
#143 5 comments 0 reactions 1 assignee View on GitHub

@luke-kiernan is already working on this.

Since Feb 14, 2026.

wontfix
Dominant language
Julia
Stars
1
Forks
0
Avg merge
8h 51m
Merged PRs (30d)
9

Description

When a system is defined with multiple types of thermal costs including piecewise linear costs, the constraint container for PiecewiseLinearCostConstraint includes the generators that don't have piecewiselinear costs. These entries in the container are never actually filled, meaning they contain undefined references.
Notes:

  • This situation occurs in the EI where we have both piecewise and linear cost functions.
  • This does not cause issues in solving the PSI simulation, but fails in PowerSimulationsDecomposition.jl due to accessing these undefined references.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.