Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only

Help needed with abs function

  • 1.  Help needed with abs function

    Posted 09/30/10 07:11 AM

    Originally posted by: SystemAdmin


    Hi,
    I need to create an optimization equation of the form:
    |X[0]|*a+|X[1]|*b+|X[2]|*c where,

    X[]=numVarArray
    a,b,c are coefficient....
    |X[0]|= absolute value of the numVar,
    I need the absolute value coz , i want the minimization equation to check the absolute value i.e every value needs to be converted to positive in optimization equation. But I want to have the numVar range from negative to positive. The constraints equation i have demands the negative value as well.

    The abs() method provided does not work with numVar.. I tried many other ways but none seem to work.

    Any help with this will be highly appreciated.

    Regards.
    #CPOptimizer
    #DecisionOptimization