Originally posted by: MaxSid
Thank you for your answer Daniel,
i have implemented both functions as piecewise linear functions (wasnt that hard at all) , and now it turns out that my objective function is yielding:
CPLEX Error 5002: Q in objective is not positive semi-definite.
Now i am aware what that means, but i wonder if there is any kind of workaround so i can still use CPLEX as my solver?
Here is my problem:
double[] points = new double[] {0, 5, 10};
double[] slopes = new double[] { 0,0.1, -0.1,0}
(triangle)
double[] pointskum = new double[] {-1, 1}
double[] slopeskum = new double[] { 0,1,0}
(reversed Z)
cp.prod(cp.piecewiseLinear(z[j], points, slopes, 0, 0),cp.piecewiseLinear(z[j],pointskum,slopeskum,0,0));
Where z[j] contains my objevtive variable.
Anyway i will mark my answer as solved, since my followup question doesnt have to do anything with the topic. It would still be nice to know the answer :).
Greetings
Max
#CPLEXOptimizers#DecisionOptimization