ERGO-Code / HiGHS

Linear optimization software
MIT License
943 stars 175 forks source link

Refactor highspy for enhanced usability and performance #1855

Closed mathgeekcoder closed 2 months ago

mathgeekcoder commented 2 months ago

This commit significantly improves the Highs class within highs.py, focusing on enhancing usability, efficiency, and robustness. Key changes include:

perfnew = [h.addVariable() for in range(100000)] # 0.90 seconds perf_new = h.addVariables(100000) # 0.04 seconds