Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  The result is negative number

    Posted 01/14/18 02:39 AM

    Originally posted by: MachexC


    Hi Alex,

    The model with X variable is positive (X  >= 0) so, Xis dvar float+. But why the result of model has a negative value of 8.5265e-13. Please explain.

    Mac.


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: The result is negative number

    Posted 01/14/18 03:47 AM

    Hi,

    this is because of tolerances.

    You should consider those tiny negative values as 0.

    See tech note https://www-01.ibm.com/support/docview.wss?uid=swg21400045 CPLEX appears to return a solution that violates some constraints or bounds

    regards

    PS:

    https://www.ibm.com/developerworks/community/forums/html/topic?id=1bf1f4de-b6fa-4375-a397-741e9239513e&ps=25


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: The result is negative number

    Posted 01/14/18 01:22 PM

    Originally posted by: MachexC


    Hi Alex,

    It is tolerances. So, how do we ignore this value in the result?, I want it to be 0.

    Thank you,

    Mac


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: The result is negative number

    Posted 01/15/18 09:11 AM

    Hi,

    would you accept to handle that in postprocess ?

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 5.  Re: The result is negative number

    Posted 01/25/18 03:29 AM

    Originally posted by: MachexC


    Hi Alex,

    How to setup a number of tolerance settings is Parameter CPX_PARAM_EPRHS (IloCplex::EpRHS) to remove tolerance values?

    Thank you,

    Mac


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 6.  Re: The result is negative number

    Posted 01/25/18 03:43 AM

    Hi

    execute
    {
    cplex.eprhs=1e-9;
    }

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 7.  Re: The result is negative number

    Posted 01/25/18 09:35 PM

    Originally posted by: MachexC


    Hi Alex,

    I setted up "execute" in model OPL but the result still has  numbers of tolerance as following: 2.27373675443232E-13; -1.81898940354586E-12

    Please help. 

    Thank you,

    Mac


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 8.  Re: The result is negative number

    Posted 01/26/18 02:42 AM

    Again, why do not you handle this in postprocess ?

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 9.  Re: The result is negative number

    Posted 01/26/18 08:04 AM

    Originally posted by: MachexC


    Hi Alex,

    How to handle this in postprocess for these values, you process by hand?

    Thank you,

    Mac


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 10.  Re: The result is negative number

    Posted 01/26/18 10:01 AM

    dvar float x;

    minimize x;
    subject to
    {

    x==-1.81898940354586E-12;

    }


    float x2=(abs(x)<1e-9)?0:x;
    execute
    {
    writeln(x);

    writeln(x2);
    }

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer