Dear Dr. Johan,
Thank you so much for your quick reply.
I have followed the code and i got following warning once i run the following code. Can you please comment on following where i am doing something wrong. Thanks
[Code]
A=eye(7)+0.05*[-0.350312629 0.001652708 -22.38023628 0 -0.007 0 0;119.9592691 -1.236693495 16746.7579 0 0 0 -0.001872252;1 -0.010309278 0 0 0 0 0;0 0 0 0 1 0 0;0.000212974 0 0 -25.98376792 -0.055356012 -7.48E-06 0;0 0 0 0 0 -2 0;0 0 0 0 0 0 -10];
B=0.05*[0 0;0 0;0 0;0 0;0 0;2 0;0 10];
C=[1 0 0 0 0 0 0;0 1 0 0 0 0 0;0 0 1 0 0 0 0;0 0 0 1 0 0 0;0 0 0 0 1 0 0;0 0 0 0 0 1 0;0 0 0 0 0 0 1;0 3776 0 0 0 66.08 0];
E=0.05*[0.007;0;0;0;0.000212974;0;0];
N = 10;
U = sdpvar(N,2);
W = sdpvar(N,1);
x = sdpvar(7,1);
Y = [];
xk = x;
for k = 1:N
xk = A*xk + B*[U(k);U(k+2)]+E*W(k);
Y = [Y;C*xk];
end
F = [70<=Y(1)<= 123,-0.72<=Y(2)<=-1.26,-0.5<=Y(3)<=0.5,0<=Y(4)<=47403,-15000<=Y(5)<=15000,-0.017<=Y(6)<= 1.57,-0.139<=Y(7)<=0.139,-0.0865<=U(1)<=1.6395,15000<=U(2)<=48903];
objective = norm(Y-1,1) + norm(U,1)*0.01;
G = [3.98 <= W <= 4.02]
%G=[W==1]
[Frobust,h] = robustify(F + G,objective,[],W);
xk = [0;0;0;0;0;0;0];
ops = sdpsettings;
for i = 1:25
optimize([Frobust, x == xk(:,end)],h,ops);
xk = [xk A*xk(:,end) + B*[value(U(1));value(U(2))] + E*(-1+2*rand(1))];
end
plot(C*xk)
[Warning]
+++++++++++++++++++++++++++++++++++++++
| ID| Constraint|
+++++++++++++++++++++++++++++++++++++++
| #1| Element-wise inequality 20x1|
+++++++++++++++++++++++++++++++++++++++
***** Starting YALMIP robustification module. *********************
- Detected 10 uncertain variables
- Detected 10 independent group(s) of uncertain variables
- Using possibly conservative approach to deal with uncertainty dependent auxilliary variables.
- (change robust.auxreduce to 'projection', 'enumeration' for exact solution.)
- Eliminating uncertainty using explicit maximization of inf-norm
***** Derivation of robust counterpart done ***********************
Exiting: One or more of the residuals, duality gap, or total relative error
has stalled:
the primal appears to be infeasible and the dual unbounded since
the dual objective > 1e+10
and the primal objective > -1e+6.
Exiting: One or more of the residuals, duality gap, or total relative error
has stalled:
the primal appears to be infeasible and the dual unbounded since
the dual objective > 1e+10
and the primal objective > -1e+6.
Exiting: One or more of the residuals, duality gap, or total relative error
has stalled:
the primal appears to be infeasible and the dual unbounded since
the dual objective > 1e+10
and the primal objective > -1e+6.
Exiting: One or more of the residuals, duality gap, or total relative error
has stalled:
the primal appears to be infeasible and the dual unbounded since
the dual objective > 1e+10
and the primal objective > -1e+6.
Exiting: One or more of the residuals, duality gap, or total relative error
has stalled:
the primal appears to be infeasible and the dual unbounded since
the dual objective > 1e+10
and the primal objective > -1e+6.
Exiting: One or more of the residuals, duality gap, or total relative error
has stalled:
the primal appears to be infeasible and the dual unbounded since
the dual objective > 1e+10
and the primal objective > -1e+6.
Exiting: One or more of the residuals, duality gap, or total relative error
has stalled:
the primal appears to be infeasible and the dual unbounded since
the dual objective > 1e+10
and the primal objective > -1e+6.
Exiting: One or more of the residuals, duality gap, or total relative error
has stalled:
the primal appears to be infeasible and the dual unbounded since
the dual objective > 1e+10
and the primal objective > -1e+6.
Exiting: One or more of the residuals, duality gap, or total relative error
has stalled:
the primal appears to be infeasible and the dual unbounded since
the dual objective > 1e+10
and the primal objective > -1e+6.
Exiting: One or more of the residuals, duality gap, or total relative error
has stalled:
the primal appears to be infeasible and the dual unbounded since
the dual objective > 1e+10
and the primal objective > -1e+6.
Exiting: One or more of the residuals, duality gap, or total relative error
has stalled:
the primal appears to be infeasible and the dual unbounded since
the dual objective > 1e+10
and the primal objective > -1e+6.
Exiting: One or more of the residuals, duality gap, or total relative error
has stalled:
the primal appears to be infeasible and the dual unbounded since
the dual objective > 1e+10
and the primal objective > -1e+6.
Exiting: One or more of the residuals, duality gap, or total relative error
has stalled:
the primal appears to be infeasible and the dual unbounded since
the dual objective > 1e+10
and the primal objective > -1e+6.
Exiting: One or more of the residuals, duality gap, or total relative error
has stalled:
the primal appears to be infeasible and the dual unbounded since
the dual objective > 1e+10
and the primal objective > -1e+6.
Exiting: One or more of the residuals, duality gap, or total relative error
has stalled:
the primal appears to be infeasible and the dual unbounded since
the dual objective > 1e+10
and the primal objective > -1e+6.
Exiting: One or more of the residuals, duality gap, or total relative error
has stalled:
the primal appears to be infeasible and the dual unbounded since
the dual objective > 1e+10
and the primal objective > -1e+6.
Exiting: One or more of the residuals, duality gap, or total relative error
has stalled:
the primal appears to be infeasible and the dual unbounded since
the dual objective > 1e+10
and the primal objective > -1e+6.
Exiting: One or more of the residuals, duality gap, or total relative error
has stalled:
the primal appears to be infeasible and the dual unbounded since
the dual objective > 1e+10
and the primal objective > -1e+6.
Exiting: One or more of the residuals, duality gap, or total relative error
has stalled:
the primal appears to be infeasible and the dual unbounded since
the dual objective > 1e+10
and the primal objective > -1e+6.
Exiting: One or more of the residuals, duality gap, or total relative error
has stalled:
the primal appears to be infeasible and the dual unbounded since
the dual objective > 1e+10
and the primal objective > -1e+6.
Exiting: One or more of the residuals, duality gap, or total relative error
has stalled:
the primal appears to be infeasible and the dual unbounded since
the dual objective > 1e+10
and the primal objective > -1e+6.
Exiting: One or more of the residuals, duality gap, or total relative error
has stalled:
the primal appears to be infeasible and the dual unbounded since
the dual objective > 1e+10
and the primal objective > -1e+6.
Exiting: One or more of the residuals, duality gap, or total relative error
has stalled:
the primal appears to be infeasible and the dual unbounded since
the dual objective > 1e+10
and the primal objective > -1e+6.
Exiting: One or more of the residuals, duality gap, or total relative error
has stalled:
the primal appears to be infeasible and the dual unbounded since
the dual objective > 1e+10
and the primal objective > -1e+6.
Exiting: One or more of the residuals, duality gap, or total relative error
has stalled:
the primal appears to be infeasible and the dual unbounded since
the dual objective > 1e+10
and the primal objective > -1e+6.
>>