Hello Johan,
Thank you for your time.
I have already solve the MPT problem, just some definition problem. But recently, After I try to build the explicit Hybrid MPC controller based on the MPT, when I try to save the "optimizer", I got a warning "YALMIP objects cannot be save in binary format". What Should I do to save the optimizer? The calculation of this MPT procedure takes hours. The reason I try to save this file is that I hope to use this controller in the simulink. In my thoughts, I hope just to load the optimizer and then I can do the simulation in the simulink.
So, could you tell me is there any way to save and reload the optimizer? And If I can not save optmizer file, is there any way I can extract the control law from the optimizer? The control law from the explicit Hybrid MPC is supposed to be just linear relationship bewteen the state and control input? right?
Thank you very much for you kind help.
Best regards
Shuwei Zhang