Skip to content

Commit 9836886

Browse files
authored
Fix HiGHS simplex argument to a string
1 parent ae15d2f commit 9836886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pownet/modeling/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +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)
95+
self.model.setOptionValue("solver", "simplex")
9696

9797
self.model.run()
9898
# Delete the MPS file

0 commit comments

Comments
 (0)