Thanks for your reply.
The problem I am trying to solve is a fairly simple MPC to control the HVAC systems of a fleet of homes, which are described by unique, linear thermal models of the form: temp_in_t+1 = a*temp_in_t + b*u_hvac + g*temp_out_t.
I have just observed another peculiarity: when the homes are homogeneous (meaning all parameters a,b,g are the same for each home), both cplex and gurobi solvers run successfully. When I change these slightly to a heterogeneous case, gurobi works but cplex does not.
For reference I have attached the fleet controller function (called dynamic_varying_hvac.m) and the main test code (main_cody1.m) I'm using to troubleshoot it. In main_cody1 I have the variable called "solver" right at the top to change the solver used by Yalmip. If you change this from 'gurobi' to 'cplex', you can see how one solves and one doesn't (except if all homes are homogeneous).
Thank you,
Cody