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

add MindOpt solver #188

Merged
merged 5 commits into from
Oct 31, 2023
Merged

add MindOpt solver #188

merged 5 commits into from
Oct 31, 2023

Conversation

fneum
Copy link
Member

@fneum fneum commented Oct 28, 2023

https://solver.damo.alibaba.com/doc/en/html/index.html

https://opt.alibabacloud.com/portal?lang=en

does not require special license setup

Free for personal and commercial end-users, but not open-source as far as I can see.

Performed quite well in benchmarks: https://plato.asu.edu/ftp/lpopt.html

Tested locally and passed all tests. However, quadratic problems are not supported yet.

import pypsa

n = pypsa.examples.ac_dc_meshed()
n.optimize(solver_name='highs')
n.buses_t.marginal_price["London"]
n.generators_t.p
n.optimize(solver_name='mindopt')
n.generators_t.p
n.buses_t.marginal_price["London"]

@codecov
Copy link

codecov bot commented Oct 28, 2023

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (b91f08d) 89.25% compared to head (29ce758) 89.18%.
Report is 2 commits behind head on master.

❗ Current head 29ce758 differs from pull request most recent head 6500536. Consider uploading reports for the commit 6500536 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #188      +/-   ##
==========================================
- Coverage   89.25%   89.18%   -0.07%     
==========================================
  Files          15       15              
  Lines        3182     3228      +46     
  Branches      731      738       +7     
==========================================
+ Hits         2840     2879      +39     
- Misses        237      243       +6     
- Partials      105      106       +1     
Files Coverage Δ
linopy/solvers.py 89.52% <84.78%> (-0.59%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fneum fneum requested a review from FabianHofmann October 29, 2023 19:50
@FabianHofmann FabianHofmann mentioned this pull request Oct 30, 2023
@FabianHofmann FabianHofmann merged commit ae5d511 into master Oct 31, 2023
8 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants