Originally posted by: SystemAdmin
First of all, you can of course discard the constant terms from your objective function and solve "max -sum(q_i^2)". Btw: do you really mean "500" and "5", or is one of them missing a linear "q" term?
The objective function is convex. Thus, you can solve the problem with CPLEX. You do not need piecewise linear functions, you can directly include the quadratic objective function. On the other hand, if it is okay to model the objective function as a piecewise linear function (with only a small number of pieces), and you have integer variables in your model anyway, then you may get better performance with the piecewise linear approach since then this is a MIP rather than a MIQP.
Tobias
#CPLEXOptimizers#DecisionOptimization