Hi, I would like to save an expression created between cvx_begin and cvx_end in order to re-use it each time I want to solve a similar problem. For instance:
% formulate and solve a problem for the first time
M(ii) = expression involving the decision variable a
save M % <<<<<------
% solve a similar problem (same M, different constraints)
load M % <--------- I would like to load the expression instead of creating it again
Apparently the expression can be saved and loaded but I get errors when minimizing.
Is there a way to save and load expressions?