Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Using Ceil in objective function via Java interface

    Posted 01/06/13 11:02 AM

    Originally posted by: SystemAdmin


    Hi All,

    I want to transform my OPL code to Java. But I can not find the the equivalence of ceil function in java interface. I only find IloModeler.max, IloModeler.min, IloModeler.abs.

    Can any one tell me, is this function support in Java interface? Otherwise I need to use some trick to transform the ceil function into constraints.

    Thanks.
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Using Ceil in objective function via Java interface

    Posted 01/06/13 12:41 PM

    Originally posted by: SystemAdmin


    I think Math.ceil() is what you are looking for.
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Using Ceil in objective function via Java interface

    Posted 01/06/13 09:13 PM

    Originally posted by: SystemAdmin


    Thanks for your reply. I am not very sure whether Math.ceil is compatible with ilog variable.

    I find this in ilog.cp.IloCP

    ilog.cp.IloCP cp = new IloCP();
    cp.ceil()
    #DecisionOptimization
    #OPLusingCPLEXOptimizer