Originally posted by: raswalgul
Hello,
I used the set_quadratic() function to add a Q matrix for a quadratic objective following the exact format as in the example. However, it shows the following error:
cplex.exceptions.errors.CplexSolverError: CPLEX Error 1226: Array entry 99 not ascending.
Q is a diagonal matrix of size 98.
I searched around the closest I could find is described here: http://www.vioja.com/linear-and-quadratic-terms-in-cplex-objective-function/
Is there a better way to make this work?
Thanks in advance.
#CPLEXOptimizers#DecisionOptimization