I want to get a solution of one optimization problem, and use it to warm start another problem.
from pyscipopt import Model
model = Model("Example")
x = model.addVar("x")
y = model.addVar("y", vtype="INTEGER")
model.setObjective(x + y)
model.addCons(2*x - y >= 0)
model.optimize()
model.writeBestSol(filename="origprob.sol", write_zeros=False)
This leads to the following error. Any ideas how to solve this?
OSError: [Errno 9] Bad file descriptor