Originally posted by: ol
Hello,
a float expression can be used in an objective function, in another expression, or in a constraint. For instance, you can see the example floatexpr.mod:
using CP;
dvar int i in 1..100;
dvar int j in 1..100;
dvar int k in 1..99;
dexpr float kf = k/100;
dexpr float ar
http://i in 1..10 = k/i;
minimize kf + sum(i in 1..10)ar[i];
subject to {
i*(1+kf) == j;
}
However, trigonometric functions are not available in OPL, and you need to use the C++ API.
Regard,
Olivier
#ConstraintProgramming-General#DecisionOptimization