-
yalmip
matlab用于求解规划问题的工具包
推荐把这个工具整合到matlab中去,这个工具是私人的,不过大家都可以免费下载使用。下载后,只要在matlab中添加路径就可以使用这工具箱。
正在吸引我的是,这个工具箱建立了一种新的数据类型,使所有规划问题都整合在一起。
举例如下:
已知非线性整数规划为:
Max z=x1^2+x2^2+3*x3^2+4*x4^2+2*x5^2-8*x1-2*x2-3*x3-x4-2*x5
s.t.
0<=xi<=99(i=1,2,...,5)
x1+x2+x3+x4+x5<=400
x1+2*x2+2*x3+x4+6*x5<=800
2*x1+x2+6*x3<=800
x3+x4+5*x5<=200
在matlab中输入 x=intvar(1,5);
f=[1 1 3 4 2]*(x .^2)-[8 2 3 1 2]*x F=set(0<=x<=99)
F=F+set([1 1 1 1 1]*x <=400)+set([1 2 2 1 6]*x <=800)+set(2*x(1)+x(2)+6*x(3)<=800)
F=F+set(x(3)+x(4)+5*x(5)<=200) solvesdp(F,-f)
double(f) 80199
double(x) 53 99 99 99 0
intvar(m,n):生成整数型变量;
sdpvar(m,n):生产变量;
solvesdp(F,f):求解最优解(最小值),其中F为约束条件(用set连接),f为目标函数
double:显示求解的答案
intvar,sdpvar,生成的变量可以像矩阵一样使用,如例题显示。
- 2010-01-29 15:29:17下载
- 积分:1
-
binaryliquid
格子Boltzmann多组分多相流模型,来模拟相分离(Lattice Boltzmann Model for multi-compent and multiphase)
- 2014-11-07 13:26:43下载
- 积分:1
-
LVQ
LVQ神经网络的分类——乳腺肿瘤诊断,包含源代码和数据(LVQ neural network classification- breast cancer diagnosis, including source code and data)
- 2013-12-08 18:56:26下载
- 积分:1
-
源程序
用matlab编写的代码,用于实现飞行器的一致性状态(The code is used to achieve the consistency of the aircraft)(The code written in MATLAB is used to achieve the consistency of the aircraft.)
- 2019-06-14 20:09:24下载
- 积分:1
-
微分同胚 demons 配准算法
这个一个关于图像配准的算法,使用的是基于demons的微分同胚算法,算法可以实现2D,3D的图像配准,并且是一个动态实现的过程,其中给出了变形场的变化该过程。
- 2022-03-18 16:58:45下载
- 积分:1
-
seidel
求解非线性不动点方程组x=G(x)的非线性塞德尔迭代方法,初值x0(For solving nonlinear fixed point equation x = G (x) the nonlinear Seidel iterative method, initial value x0)
- 2008-08-02 11:20:58下载
- 积分:1
-
Communication_M-files
MATLAB Communication M-files
- 2010-05-27 15:36:36下载
- 积分:1
-
Chapter1
现代通信系统使用MATLAB一书中第一章的所有程序,书的作者是刘树堂(Modern communication systems using MATLAB, a book of all programs, the author of the book is LIU Shu-tang)
- 2012-05-30 14:07:55下载
- 积分:1
-
fcn
this is file for traffic networks benchmarks...
- 2013-03-11 15:35:42下载
- 积分:1
-
Szzhhixiange
几个指向性的程序源码,包含线阵,,面阵与带加权的阵型
(Several directional program source code contains a linear array, planar array with weighted formation)
- 2012-08-23 20:29:27下载
- 积分:1