Skip to content

Commit ebdbc37

Browse files
authored
Merge pull request #18 from Critical-Infrastructure-Systems-Lab/highs-simplex-solver
Explicitly use simplex solver with HiGHs for better parallelism
2 parents 5c2c12d + 9836886 commit ebdbc37

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pownet/modeling/model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ def _optimize_highs(
9292
self.model.setOptionValue("mip_rel_gap", mipgap)
9393
self.model.setOptionValue("time_limit", timelimit)
9494
self.model.setOptionValue("threads", num_threads)
95+
self.model.setOptionValue("solver", "simplex")
9596

9697
self.model.run()
9798
# Delete the MPS file

0 commit comments

Comments
 (0)