Skip to content

Commit 8931daa

Browse files
authored
Update incremental_modeling.ipynb
Add url/key for relaxer
1 parent 42f4e57 commit 8931daa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/mp/jupyter/incremental_modeling.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@
767767
"from docplex.mp.relaxer import Relaxer\n",
768768
"relaxer = Relaxer(prioritizer='match', verbose=True)\n",
769769
"\n",
770-
"relaxed_sol = relaxer.relax(m)\n",
770+
"relaxed_sol = relaxer.relax(m, url=SVC_URL, key=SVC_KEY)\n",
771771
"relaxed_ok = relaxed_sol is not None\n",
772772
"assert relaxed_ok, \"relaxation failed\"\n",
773773
"relaxer.print_information()"
@@ -819,7 +819,7 @@
819819
"ct_polishing_relax = relaxer.get_relaxation(ct_polishing)\n",
820820
"print(\"* found slack of {0} for polish ct\".format(ct_polishing_relax))\n",
821821
"ct_polishing.rhs+= ct_polishing_relax\n",
822-
"m.solve()\n",
822+
"m.solve(url=SVC_URL, key=SVC_KEY)\n",
823823
"m.report()\n",
824824
"m.print_solution()"
825825
]

0 commit comments

Comments
 (0)