modelling
PowerBoy_Stone
这个作者很懒,什么都没留下…
展开
-
20200809 explicitmpc
https://yalmip.github.io/example/explicitmpc/貌似要装这个solver https://yalmip.github.io/solver/mpt/yalmip('clear')clear all% Model dataA = [2 -1;1 0];B1 = [1;0]; % Small gain for x(1) > 0B2 = [pi;0]; % Larger gain for x(1) < 0C = [0.5 0.5];nx =原创 2020-08-09 10:00:48 · 509 阅读 · 0 评论 -
20200809 Linear programming
https://yalmip.github.io/tutorial/linearprogramming/blues = randn(2,25);greens = randn(2,25)+2;plot(greens(1,:),greens(2,:),'g*')hold onplot(blues(1,:),blues(2,:),'b*')a = sdpvar(2,1);b = sdpvar(1);u = sdpvar(1,25);v = sdpvar(1,25);Constraints =原创 2020-08-09 09:20:25 · 230 阅读 · 0 评论 -
20200808 yalmip安装
https://github.com/yalmip/YALMIPhttps://yalmip.github.io/ 这个需要去墙外原创 2020-08-08 20:29:54 · 666 阅读 · 0 评论 -
20200808 yalmip getting started
% Define variablesx = sdpvar(10,1);% Define constraints Constraints = [sum(x) <= 10, x(1) == 0, 0.5 <= x(2) <= 1.5];for i = 1 : 7 Constraints = [Constraints, x(i) + x(i+1) <= x(i+2) + x(i+3)];end% Define an objectiveObjective = x'*x+原创 2020-08-08 22:48:58 · 278 阅读 · 0 评论