正在加载图片...
Example min f ()=-5x1-4x2-6X3 subject to X1-X2+X3≤20 3X1+2X2+4x3≤42 3X1+2X2≤30 0≤X1,0≤2,0≤X3 First.enter the coefficients f=[-5;-4;-6]; A=[1-11 324 320]: b=[20;42;30] lb zeros(3,1);Example • min f ( x ) = –5 x 1 – 4 x2 – 6 x3 subject to x 1 – x2 + x3 ≤ 20 3 x 1 + 2 x2+ 4 x3 ≤ 42 3 x 1 + 2 x2 ≤ 30 0 ≤ x 1, 0 ≤ x2 , 0 ≤ x3 • First, enter the coefficients f = [-5; -4; -6]; A = [1 -1 1 3 2 4 3 2 0]; b = [20; 42; 30]; lb = zeros(3,1);
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有