Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
vlkong committed Mar 23, 2020
1 parent 120aad5 commit 82833d0
Show file tree
Hide file tree
Showing 3 changed files with 148 additions and 94 deletions.
238 changes: 146 additions & 92 deletions examples/mp/jupyter/efficient.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/mp/modeling/nurses_multiobj.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ def build(context=None, **kwargs):
# Solve the model and print solution
solve(model)

print(model.get_solve_details())
print(model.solve_details)

# Save the CPLEX solution as "solution.json" program output
with get_environment().get_output_stream("solution.json") as fp:
Expand Down
2 changes: 1 addition & 1 deletion examples/mp/modeling/sport_scheduling.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,4 @@ def print_sports_solution(mdl):
with get_environment().get_output_stream("solution.json") as fp:
model.solution.export(fp, "json")
else:
print("Problem could not be solved: " + model.get_solve_details().get_status())
print("Problem could not be solved: " + model.solve_details.get_status())

0 comments on commit 82833d0

Please sign in to comment.