Hi Johan,
I am trying to solve a MILP problem in MPC framework using YALMIP plus CPLEX. The system has 8 states out of which 1 state is a binary variable and the other 7 are continuous. In addition, the system has 3 inputs out of which 1 input is binary and the other 2 are continuous.
The decision variables in the optimization problem are the states and inputs.
I have used the following declaration to declare the decision variables as shown in the MPC tutorial:
x = sdpvar(repmat(nx,1,N+1),repmat(1,1,N+1));
u = sdpvar(repmat(nu,1,N),repmat(1,1,N));
How do I declare that certain variables are binary in x and u?
Thanks in advance.
Best Regards
Ashok Krishnan