Sienna-Platform / Sienna-Platform/InfrastructureOptimizationModels.jl
Simplify approximation inner loops
@acostarelli is already working on this.
Since Jun 11, 2026.
- Dominant language
- Julia
- Stars
- 1
- Forks
- 0
- Avg merge
- 8h 51m
- Merged PRs (30d)
- 9
Description
Currently each quadratic/bilinear approximation probably loops several times over names and time_steps.
In this branch I started to refactor it so that an inner function builds the approximation for just one (name, t) pair, and then an outer function with a single loop over names and time_steps builds each approximation individually: https://github.com/NREL-Sienna/InfrastructureOptimizationModels.jl/tree/ac/no-approx-inner-loops
Alternatively, there may be performance benefits to working with vectors of variables / constraints / expressions in JuMP, in which case the above approach is undesirable, and instead the approximations should be rewritten to use vectors.
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.