Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
Expand all | Collapse all

solution with objective equals 0E0

  • 1.  solution with objective equals 0E0

    Posted 06/30/16 01:59 PM

    Originally posted by: NRouge


    Hi,

    I have this model which has objective function

    float c[node,node]=...;

    dvar boolean x[node,node,vec];

    ...

    minimize sum(i in node,j in node,v in vec)c[i,j]*x[i,j,v];

    ..

     

    After solving, some results of x equal to 1, some equal to 0 then multiply to c which is constant, the sum is 0. I don't know if it is right. I attached my model and data.

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: solution with objective equals 0E0

    Posted 07/01/16 04:58 AM

    Hi,

    if you add

    assert  forall(i in node,j in node,v in vec)  ((c[i,j]!=0)  => (x[i,j,v]==0));

    after the subject to block and run you will see that this assert is true.

    Which explains why your objective is 0 : all c that are not zero lead to a x that is 0

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer