Open trevorb1 opened 2 months ago
Thanks for the patch, @ktehranchi! I agree with pushing this to master. You okay if I reopen this though, as the patch doesnt address the underlying problem of highs not being used for the cluster network?
Agreed- i also had an issue with pyomo on my cluster runs this week... it wasn't reading my gurobi license correctly, so i might take this on and replace pyomo with linopy soon
Checklist
master
branchpypsa-usa
environment. Update viaconda env update -f envs/environment.yaml
The Issue
When using highs in the cluster/simplify network scripts, an error is thrown by pyomo. If only
highs
is passed to theSolverFactory
, the following error is thrown:If you pass the solver
appsi_highs
, as described by pyomo with the commandpyomo help --solvers
, the following error is raised:Steps To Reproduce
Expected Behavior
The clustering optimization should run via
ipopt
ifhighs
is selected for the quadratic optimizationhttps://github.com/PyPSA/pypsa-usa/blob/a05664935c3d0828b9dae46d64fcd4fca137d177/workflow/scripts/cluster_network.py#L186-L252
Error Message
No response
Anything else?
The
pypsa-eur
team updated their clustering to use linopy; would be nice to follow their implementation and allow us to drop thepyomo
dependencyhttps://github.com/PyPSA/pypsa-eur/blob/51f8c2935ae3f80b15ad0ab71708ad006ad49da9/scripts/cluster_network.py#L172-L230