>> c=[-5,4,2];2 A1 c3 c- v9 p, n& W, j9 b
a=[6,-1,1;1,2,4]; 6 x% d' r) _+ H4 x; g' x, S. [; g8 Zb=[8,10]; , P; \/ a+ ?% E+ rvlb=[-1,0,0];( ^ u& J: G* V9 }0 z3 N
vub=[3,2];5 B# O+ m9 \: J4 I2 s& ^
[x,lam]=lp(c,a,b,vlb,vub) c# H8 T- m% N c- }# w3 O; [
??? Undefined function or method 'lp' for input arguments of type 'double'. # _( E8 G9 u, C) E6 Y6 L , \8 T9 `) S {1 w8 E
>> [x,lam]=linprog(c,a,b,vlb,vub) ! ?3 E9 ]1 |. G6 w+ F??? Error using ==> linprog at 192# t" D5 x" x8 A8 e3 t, w) U0 f. B
The number of rows in Aeq must be the same as the length of beq.- y2 ]% ~7 q& u" k- p$ ^( S. c
这个错误的程序咋纠正啊,急急急急!" Y6 f* q+ X( u& A
注:用的是matlab2010b