Skip to content

Commit

Permalink
fix: max_cpu_time as numeric option
Browse files Browse the repository at this point in the history
  • Loading branch information
fracek committed Aug 27, 2020
1 parent 21bbc38 commit a2ffae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypopt/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def _apply_solver(self):

for opt, opt_value in self.options.items():
if opt == 'max_cpu_time':
solver_options.set_integer_value(opt, int(opt_value))
solver_options.set_numeric_value(opt, int(opt_value))
elif isinstance(opt_value, str):
solver_options.set_string_value(opt, opt_value)
elif isinstance(opt_value, int):
Expand Down

0 comments on commit a2ffae2

Please sign in to comment.