Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any plan to add SCIP as a solver? #29

Closed
loongmxbt opened this issue Mar 12, 2022 · 1 comment · Fixed by #78
Closed

Any plan to add SCIP as a solver? #29

loongmxbt opened this issue Mar 12, 2022 · 1 comment · Fixed by #78

Comments

@loongmxbt
Copy link

SCIP and its python library pyscipopt also support MILP problems with some configs. So do you have any plan to add it into the solvers list. As an open source solver, I think scip may be better than cbc and glpk in many cases.

import pyscipopt as pso
from pyscipopt import Model
model = Model("prod")
# In order to get dual, needs the following configs
model.setPresolve(pso.SCIP_PARAMSETTING.OFF)
model.setHeuristics(pso.SCIP_PARAMSETTING.OFF)
model.disablePropagation()
# LP algorithm for solving initial LP relaxations (automatic 's'implex, 'p'rimal simplex, 'd'ual simplex, 'b'arrier, barrier with 'c'rossover)
model.setCharParam("lp/initalgorithm","p")
model.setParam('limits/time', 600)


lmp = model.getDualsolLinear(power_balance_cons[bus, ti])
angle = model.getVal(bus_angle[bus, ti])
@aurelije
Copy link
Contributor

now that SCIP got more permitting license this question gets on importance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants