⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ex10_1.m

📁 good code for matlab by mili , i than you
💻 M
字号:
% Example 10.1: Linear Programming
% Chapter 10: Optimization Toolbox%
% Applied Optimization with MATLAB
% P.Venkataraman
% Published by John Wiley
%
% NOTE: you don not need to use the same variable names
%
format compact
f = [-4 -6 -7 -8];
A = [2 3 4 7; 3 4 5 6; 0 0 0 -1];
b=[4600 5000 -400];
Aeq = [1 1 1 1];
beq = [950];
LB = [0 0 0 0];
UB = [inf inf inf inf];

[X,FVAL,EXITFLAG] = linprog(f,A,b,Aeq,beq,LB,UB)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -