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