Problem with the optimization of the Economic MPC

9 views (last 30 days)
Hey everyone,
I try to use the economic MPC with an urban traffic (state space system), to control the intersection's light. When I simulate it, the control value stays the same, and Matlab shows me this message:
"Optimization completed because at the initial point, the objective function is non-decreasing in feasible directions to within the default value of the optimality tolerance, and constraints are satisfied to within the default value of the constraint tolerance."
And this:
"Warning: Length of upper bounds is < length(x); filling in missing upper bounds with +Inf."
"Warning: Length of lower bounds is < length(x); filling in missing lower bounds with -Inf."
Can you help me please?
All the best,

Answers (2)

zhihua deng
zhihua deng on 14 Oct 2019
I'glad to answer your quesition.The problem you described is not specific enough. you'd better send the progrem to my eamil:dzh20100154@163.com.In addition, the warning shows that there is a promblem with your constraint equation.

John D'Errico
John D'Errico on 14 Oct 2019
Simple.
Your objective function is essenitally constant around the start point, or you provided a start point that actually happens to be the actual solution to your problem. (An unlikely event.) (Read the termination message.)
As far as the warning goes, suppose you have two parameters, but you provided only ONE bound in the vector of bounds. MATLAB then realizes the other parameter has no bound on it. So it assigns an upper bound of inf, and a lower bound of -inf. If you wanted both parameters to have bounds, then you needed to provide an actual VECTOR of bounds, of the same length as the number of parameters in your problem.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!