handel non optimized solves
This commit is contained in:
@ -94,6 +94,7 @@ class LoftService(Base):
|
|||||||
# solve problem
|
# solve problem
|
||||||
problem.sequentialSolve(problem_objection_functions)
|
problem.sequentialSolve(problem_objection_functions)
|
||||||
|
|
||||||
|
if LpStatus[problem.status] == 'Optimized':
|
||||||
# add return items and create as a form
|
# add return items and create as a form
|
||||||
form_items = []
|
form_items = []
|
||||||
for v in problem.variables():
|
for v in problem.variables():
|
||||||
|
Reference in New Issue
Block a user