>> c=[-5,4,2]; . H! `6 b" p4 I" n9 Z# Ta=[6,-1,1;1,2,4];$ @4 I' |5 R4 S
b=[8,10]; * s2 G. f y; Z3 J3 d8 Bvlb=[-1,0,0];3 o% k/ R+ Q8 E$ Q8 O6 C
vub=[3,2]; Q' q- v s9 E) X, x' Z[x,lam]=lp(c,a,b,vlb,vub) 5 j7 V0 d# u6 U# f9 o# Q??? Undefined function or method 'lp' for input arguments of type 'double'.) \2 e9 J0 B8 m- |
! f" Z3 o+ t8 G7 Z* i- P0 M1 {1 p
>> [x,lam]=linprog(c,a,b,vlb,vub)$ G5 N( _* D$ V" C% }
??? Error using ==> linprog at 192; r( W" G* Q! O0 Y
The number of rows in Aeq must be the same as the length of beq.( @$ `/ i V+ \3 h' n& O% K5 H
这个错误的程序咋纠正啊,急急急急!- D7 |4 E* b) ?! p
注:用的是matlab2010b