Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

Declaration problem with objective function under Ilog Cplex using java

  • 1.  Declaration problem with objective function under Ilog Cplex using java

    Posted Sun December 09, 2018 09:56 AM

    Originally posted by: ZakariaChekoubi


    I need your help please. Indeed, I have an objective function that I must minimize. I declared all of my decision variables and I proposed a formulation under Ilog Cplex using Java that you find as an attachment. I also put the error that java displays to me. I would like to know the problem so that I can move forward. Thanking you in advance !


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Declaration problem with objective function under Ilog Cplex using java

    Posted Mon December 10, 2018 11:27 AM

    You get a NullPointerException. The most likely reason for this is that you pass null to a CPLEX function at some point. Can you please double check that you never do that? Maybe dump all the arrays of variables you have and make sure none of the elements is ever null.


    #CPLEXOptimizers
    #DecisionOptimization