update notebooks
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user