Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Problem in CPLEX in Pycharm: No Error but No Solution

    Posted 07/12/22 10:42 PM
    Dear All,
    Good day to you.

    I have included all of decision variables, parameters, constraints, and objective function by using CPLEX in pycharm.
    However, when I run the program, it shows no error but there is no solution provided.

    Here is the screenshot. Can anyone suggest to me what to do , please?


    image.png

    In case you need further information, feel free to contact me.
    Thank you.

    Best regards,
    Nicholas

    #DecisionOptimization


  • 2.  RE: Problem in CPLEX in Pycharm: No Error but No Solution

    Posted 07/13/22 02:57 AM
    The `print_information` works only when the solve was successful otherwise does nothing (I think it should raise an exception based on the doc?).
    Can you check if the solve was successful?
    sol = mdl.solve()
    if sol is not None:
       mdl.print_solution()
    else:
       print("Sove is ko")​


    ------------------------------
    Vincent Beraudier
    ------------------------------