当前位置:网站首页>Digital analog 1: linear programming

Digital analog 1: linear programming

2022-07-05 08:36:00 A little brother who studies mathematical modeling

matlab Solve the code

f=[-2;-3;5];
a=[-2,5,-1;1,3,1];b=[-10;12];
aeq=[1,1,1];beq=7;[x,y]=linprog(f,a,b,aeq,beq,zeros(3,1));
x,y=-y;

原网站

版权声明
本文为[A little brother who studies mathematical modeling]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140542585559.html