Hello,
I run into this errormessage when trying to load an optimizer object and get results from combined variables. Which is no problem without saving and loading.
Error using reshape
To RESHAPE the number of elements must not change.
Error in optimizer/subsref (line 129)
u = [u reshape(output.Primal(1+self.map),self.dimout)];
Error in test_optimizer_load (line 39)
[sol,errorcode] = controller{xk};
I attached a file which reproduce the error. When I don't try to get the expression Y, or don't save and load, it works fine.
Would be nice to still get the expression after saving/loading.
Best regards