Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Using custom functions with CP Optimizer

    Posted 05/23/12 06:16 PM

    Originally posted by: humbleprogrammer


    Hi,

    Is it possible to use a custom function with CP Optimizer?
    For example, suppose I want to use the atan2 function which is not provided in the Concert API.
    One possibility is to express it using existing functions, but is there a more straightforward way?

    Thanks,
    Victor
    #CPOptimizer
    #DecisionOptimization


  • 2.  Re: Using custom functions with CP Optimizer

    Posted 05/24/12 11:52 AM

    Originally posted by: ChrisBr


    Hello Victor,

    Do you mean that you want to write some custom functions which accept IloNumExprArg arguments?
    Thus, express them using existing functions is the right way.

    For a more complex case you can have a look at
    http://pic.dhe.ibm.com/infocenter/cosinfoc/v12r4/index.jsp
    CP Optimizer > CP Optimizer Extensions User’s Manual > Writing complex custom constraints

    Regards,

    Chris.
    #CPOptimizer
    #DecisionOptimization