update notebooks

This commit is contained in:
Corentin Le Molgat
2023-08-16 11:32:39 +02:00
parent 7ab3a53df1
commit 7c8d37a1b5
5 changed files with 210 additions and 210 deletions

View File

@@ -140,10 +140,9 @@
" params.verbosity_level = 0\n",
" params.presolve_options.use_glop = False\n",
"\n",
" # Call the main solve function. Note that a quirk of the pywrap11 API forces\n",
" # us to serialize the `params` and deserialize the `solve_log` proto messages.\n",
" result = pdlp.primal_dual_hybrid_gradient(simple_lp(), params.SerializeToString())\n",
" solve_log = solve_log_pb2.SolveLog.FromString(result.solve_log_str)\n",
" # Call the main solve function.\n",
" result = pdlp.primal_dual_hybrid_gradient(simple_lp(), params)\n",
" solve_log = result.solve_log\n",
"\n",
" if solve_log.termination_reason == solve_log_pb2.TERMINATION_REASON_OPTIMAL:\n",
" print(\"Solve successful\")\n",