[pypsa] Using HiGHS solver in pypsa

396 views
Skip to first unread message

Toni Vayá Soler

unread,
Oct 28, 2023, 10:28:00 AM10/28/23
to pypsa
Dear colleagues,

It has been a while without using pypsa.

It is my understanding that now pypsa supports HIGHS solver. I am in a Windows environment and I have installed HiGHS using pip install highspy.

Then, to call HiGHS, is it as simple as n.optimize(solver_name="highs") or something similar?

Thank you in advance for your feedback,
Antonio

Fernando Lamartine

unread,
Oct 28, 2023, 3:33:17 PM10/28/23
to Toni Vayá Soler, pypsa
Hi Toni,
I recently switched from GLPK to HIGHS (as installing GLPK became a real pain in the neck for me at least). 
Your understanding is correct, just code:
network.optimize(solver_name = 'highs') and it will work (assuming it installed correctly via Pip)

Best,
Fernando

--
You received this message because you are subscribed to the Google Groups "pypsa" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pypsa+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/pypsa/CA%2B_ETfMQ3BCLqThKOFOrRZGxc2TjmdAtzTWw%2BUcWnW%2BCEtvsag%40mail.gmail.com.

Tuo ZHANG

unread,
Oct 29, 2023, 3:56:09 AM10/29/23
to pypsa
Hi Fernando,

It seems that Gurobi has the highest performance.
Please refer to the following webpage.

https://forum.openmod.org/t/open-source-highs-solver-performance-boost-for-energy-system-models/2922
Reply all
Reply to author
Forward
0 new messages