Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.

 View Only
  • 1.  Getting Solve time

    Posted Wed September 23, 2020 09:54 AM
    In constraint programming I can notice that there is a function to get the solved time as below. (get_solve_time())
    msol = mdl.solve(TimeLimit=10,add_log_to_solution='False')

    #commenting out Solving status
    #print("Solve status: " + msol.get_solve_status())
    if msol.is_solution():
         stdout.write("Solve time: " + str(msol.get_solve_time()) + "\n")

    Is there any built in function that I can obtain the solve time in mathematical programming..












    ------------------------------
    Suresh Abeyweera
    ------------------------------

    #DecisionOptimization


  • 2.  RE: Getting Solve time

    Posted Wed September 23, 2020 10:00 AM
    Assuming you are using `docplex.mp`, you can access solve time through the `solve_details` property:


    mdl.solve_details.time

    returns the solve time, once solve is finished

    ------------------------------
    Philippe Couronne
    ------------------------------