资源简介
Using Matlab to Call Cplex

代码片段和文件信息
function a101()
% define a vector of parameters
c = zeros(2 1);
c(1) = 0.5;
c(2) = 0.2;
% define a 2 by 1 matrix (vector) of continuous decision variables
x = sdpvar(2 1 ‘full‘);
% define the objective function
objective = sum(x);
% define the constraints
Constraints = [c‘*x >=0.6 x>=0];
% define the options
options = sdpsettings(‘verbose‘0‘solver‘‘cplex‘);
% solve the problem
sol = solvesdp(Constraintsobjectiveoptions);
% output the result
if sol.problem == 0
str = [‘The optimal objective value is = ‘ num2str(double(objective))];
display(str);
str = [‘The value of x (1) = ‘ num2str(double(x(1)))];
display(str);
str = [‘The value of x (2) = ‘ num2str(double(x(2)))];
display(str);
else
str = ‘Something wrong occurs!‘;
display(str);
end
end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-07-24 18:49 Using Matlab to Call CPlex\
文件 978 2015-08-08 09:45 Using Matlab to Call CPlex\a101.m
文件 1123 2014-09-13 05:46 Using Matlab to Call CPlex\a102.m
文件 975 2014-09-13 05:47 Using Matlab to Call CPlex\a103.m
文件 1058 2014-09-13 05:48 Using Matlab to Call CPlex\a104.m
文件 1012 2014-09-13 05:49 Using Matlab to Call CPlex\a111.m
文件 1115 2014-10-23 22:29 Using Matlab to Call CPlex\a121.m
文件 623 2014-09-13 05:53 Using Matlab to Call CPlex\a205.m
文件 691 2014-09-13 05:53 Using Matlab to Call CPlex\a206.m
文件 3240 2014-09-13 06:26 Using Matlab to Call CPlex\a210.m
文件 212519 2017-07-24 18:49 Using Matlab to Call CPlex\Manual for Using Matlab to Call CPLEX.docx
文件 11051 2015-08-08 10:06 Using Matlab to Call CPlex\mymodel.txt
文件 190 2014-10-23 22:29 Using Matlab to Call CPlex\mymodel2.txt
- 上一篇:自己编写的WFCM算法
- 下一篇:船舶航向的模糊控制matlab仿真
相关资源
- matlab_OFDM调制解调(来自剑桥大学)
- Matlab路面裂缝识别69319
- 高灵敏度GPS接收机MATLAB仿真,附捕获
- 基于MATLAB的质点弹道计算与外弹道优
- 阵列天线的matlab仿真
- MATLAB 经典程序源代码大全
- MATLAB小波软阈值去噪代码33473
- 天线阵的波束形成在MATLAB仿真程序及
- 非线性SVM算法-matlab实现
- 《MATLAB 智能算法超级学习手册》-程序
- 组合导航matlab程序
- 读取txt文件内容matlab代码实现
- Matlab实现基于相关的模板匹配程序
- matlab优化工具箱讲解
- 基于MATLAB的快速傅里叶变换
- 光纤传输中的分布傅立叶算法matlab实
- 基于matlab的图像处理源程序
- matlab 椭圆拟合程序
- 算术编码解码matlab源代码
- optical_flow 光流法 matlab 实现程序
- 引导图像滤波器 Matlab实现
- 分形几何中一些经典图形的Matlab画法
- OFDM系统MATLAB仿真代码
- SVM工具箱(matlab中运行)
- 图像小波变换MatLab源代码
- LU分解的MATLAB实现
- 冈萨雷斯数字图像处理matlab版(第三
- 替代数据法的matlab程序
- 用matlab实现的多站定位系统性能仿真
- 通过不同方法进行粗糙集属性约简m
评论
共有 条评论