import coin
This commit is contained in:
parent
6d36762533
commit
fa2a903d89
@ -3,7 +3,7 @@ from typing import TYPE_CHECKING
|
||||
|
||||
from pydantic import BaseModel
|
||||
from typing import Any, List
|
||||
from pulp import LpProblem, LpVariable, LpStatus, lpSum
|
||||
from pulp import LpProblem, LpVariable, LpStatus, lpSum, COIN
|
||||
|
||||
import logging
|
||||
|
||||
@ -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, None, None, pulp.COIN(gapRel=0.2, timeLimit=300))
|
||||
self.problem.sequentialSolve(objective_functions, None, None, COIN(gapRel=0.2, timeLimit=300))
|
||||
|
||||
return self.problem
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user