Dear Johan,
I got the "Nonlinear monomials remain when calling CPLEX" error message when trying to use optimizer to solve MIQP problem. As you suggested in the error message, I tried to solve the optimization problem for fixed parameters, and it works just fine.
I'm attaching a piece of the program with following functions/scripts:
- ProgramRoutine.m is used for running the optimization for both cases: fixed and variable parameters
- YALMIP_highlevel.m is implementation of the optimization for fixed parameters. Note that the quadratic objective is defined between lines 27-31.
- YALMIP_highlevel_mpc.m is implementation of the optimization for variable parameters. Note that the quadratic objective is defined between lines 29-33.
If this is currently not supported by YALMIP, can you please add this feature in future releases.
Thanks!
Best,
Marko.