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

Support MOSEK #35

Closed
fneum opened this issue Jul 19, 2022 · 4 comments
Closed

Support MOSEK #35

fneum opened this issue Jul 19, 2022 · 4 comments

Comments

@fneum
Copy link
Member

fneum commented Jul 19, 2022

feature requested on PyPSA mailing list

https://www.mosek.com/

https://docs.mosek.com/10.0/cmdtools.pdf

@loongmxbt
Copy link

loongmxbt commented Oct 19, 2022

Upvote+1. I've found that Mosek has the lowest price among commercial solvers.
Pyomo+Mosek10 has some problems in getting dual values. Need to test if mosek is able to get duals.
https://docs.mosek.com/latest/pythonapi/accessing-solution.html

@bkprejac
Copy link

Upvote+1. I've found that Mosek has the lowest price among commercial solvers.
Pyomo+Mosek10 has some problems in getting dual values. Need to test if mosek is able to get duals.
https://docs.mosek.com/latest/pythonapi/accessing-solution.html

Hi. How did you use it with mosek? With pyomo or without? Is it possible to share a branch? I am new with pypsa, but I am a mosek user, and would like to try it..

@loongmxbt
Copy link

loongmxbt commented Oct 25, 2022

@bkprejac Hi, I use Mosek with pyomo. And when it comes to MILP problems, after pyomo fix binary variables and recalculate, pyomo still raises warning 'WARNING: Cannot get duals for MIP' and cannot get dual value afterwards.
I know the reason is related to the integer variables inside the model. But I cannot find a way to remove those variables. Seems pyomo fix() just add constraints to them.
I check solvers like cbc and cplex, with fix() and second calculation, they'll just do fine.

BTW, pypsa + pyomo + mosek works fine, because the second time I set committable=False, pypsa will rebuild the model and calculate.

@fneum
Copy link
Member Author

fneum commented Oct 31, 2023

closed by #189

@fneum fneum closed this as completed Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants