0

I am using PySCIPOpt which is a Python library for the SCIP ILP solver. I would like to limit the optimization time. I found in the SCIP documentation that this can be done using SCIPsetRealParam(scip, "limits/time", 600).

But how can this be done from the PySCIPOpt Python interface?

double-beep
  • 5,031
  • 17
  • 33
  • 41

1 Answers1

3

Simple:

m = pyscipopt.Model()
m.setParam('limits/time', 600)
mattmilten
  • 6,242
  • 3
  • 35
  • 65