matlab求解方程组的解析jie

2024-11-08 11:48:14
推荐回答(1个)
回答1:

>> f=[2;3];
A=[-1 -1;-1 0;2 1];
b=[-350;-100;600];
[x,feval]=linprog(f,A,b,[],[],[],[])
Optimization terminated.

x =

250.0000
100.0000

feval =

800.0000

>>