2

How can I get the number of branch and cut nodes explored within the script? I am using python docplex.

Sven Eberth
  • 3,057
  • 12
  • 24
  • 29

1 Answers1

2

Use the solve details info contained in Model.solve_details. More precisely:

  nb_nodes = mdl.solve_details.nb_nodes_processed

See http://ibmdecisionoptimization.github.io/docplex-doc/mp/docplex.mp.sdetails.html#docplex.mp.sdetails.SolveDetails.nb_nodes_processed

Philippe Couronne
  • 826
  • 1
  • 5
  • 6