modelling
PowerBoy_Stone
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
20200809 explicitmpc
https://yalmip.github.io/example/explicitmpc/ 貌似要装这个solver https://yalmip.github.io/solver/mpt/ yalmip('clear') clear all % Model data A = [2 -1;1 0]; B1 = [1;0]; % Small gain for x(1) > 0 B2 = [pi;0]; % Larger gain for x(1) < 0 C = [0.5 0.5]; nx =原创 2020-08-09 10:00:48 · 596 阅读 · 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 on plot(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 · 266 阅读 · 0 评论 -
20200808 yalmip安装
https://github.com/yalmip/YALMIP https://yalmip.github.io/ 这个需要去墙外原创 2020-08-08 20:29:54 · 713 阅读 · 0 评论 -
20200808 yalmip getting started
% Define variables x = 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 objective Objective = x'*x+原创 2020-08-08 22:48:58 · 321 阅读 · 0 评论
分享