macroenergy / Dolphyn.jl

DOLPHYN: Decision Optimization for Low Carbon Power and Hydrogen Nexus
https://macroenergy.github.io/Dolphyn.jl/
GNU General Public License v2.0
37 stars 20 forks source link

Model Scaling for Constraints #241

Open bennettm opened 5 months ago

bennettm commented 5 months ago

Is there an existing issue for this?

Current Behavior

Constraints coefficients and RHS are outside the range of [1e-3, 1e6].

Expected Behavior

Through model scaling, constraints will be in a range that is acceptable by solver Gurobi.

Steps To Reproduce

Use a script attached with the branch to get all constraints that are outside the range recommended by Gurobi: [1e-3, 1e6].

Environment

- OS: Mac
- Julia version: 1.7
- Solver: Gurobi
- Solver version: 10

Manifest.toml file

Manifest.txt

Anything else?

No response