Decision Optimization

Decision Optimization

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

 View Only
  • 1.  variable

    Posted Tue June 30, 2009 01:01 PM

    Originally posted by: SystemAdmin


    [carali said:]

    hello,everyone
      I have a question,Thank you for your suggestion!
      I define a variable X as follows
      TwoDVarMatrix X(env,nbNodes);
      for(i = 0; i < nbNodes; i++)<br />  {
        X[i]=IloNumVarArray(env,nbNodes,0,1, ILOINT);
      }
      but the solution X[3][2]=-0,why ?Is the solution right? How to avoid this?Thank you very much!
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: variable

    Posted Tue June 30, 2009 07:35 PM

    Originally posted by: SystemAdmin


    [prubin said:]

    [quote author=carali link=topic=1237.msg3497#msg3497 date=1246348874]
      but the solution X[3][2]=-0,why ?Is the solution right? How to avoid this?Thank you very much!


    It's just rounding error; treat the value as 0.  (It came out -epsilon for some very small epsilon > 0.)  The only way to stop this is to get very, very picky about constraint tolerances, which can create problems with the solution process.
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: variable

    Posted Fri July 03, 2009 08:02 AM

    Originally posted by: SystemAdmin


    [carali said:]

    Thank you very much!
    #CPLEXOptimizers
    #DecisionOptimization