Sienna-Platform / Sienna-Platform/InfrastructureOptimizationModels.jl
UndefinedReference in constraint container for `PiecewiseLinearCostConstraint`
Open
@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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.