added relaxation to objective as well as time limit

This commit is contained in:
brmnjsh 2023-12-13 21:22:10 +00:00
parent 8920810b34
commit 6d36762533

View File

@ -46,7 +46,7 @@ class Problem(BaseModel):
# creating problem multi-objective functions
objective_functions = solver_run.objective_function.for_problem(self, solver_run)
self.problem.sequentialSolve(objective_functions)
self.problem.sequentialSolve(objective_functions, None, None, pulp.COIN(gapRel=0.2, timeLimit=300))
return self.problem