>> c=[-5,4,2];3 T& G6 c! Q+ S6 E. F+ [, Z8 H6 o0 s
a=[6,-1,1;1,2,4];8 T$ ^& Y1 s, p- w8 t' l
b=[8,10];2 I h2 q% h; R* r$ `
vlb=[-1,0,0]; 9 \/ z( X* w, j" x" Ivub=[3,2]; / ]9 U4 |1 `/ k1 K( H[x,lam]=lp(c,a,b,vlb,vub)! {, f4 z& ?9 N( R' @! u& \" ^! V7 [
??? Undefined function or method 'lp' for input arguments of type 'double'. ' _. o R% h$ J. P% x8 Z . j, k/ r$ ]; X7 E; n. d$ e& i/ x
>> [x,lam]=linprog(c,a,b,vlb,vub) 8 G6 v1 G5 _4 l, N??? Error using ==> linprog at 1920 S1 ^; E; \* R. h8 b7 `# i4 x+ }
The number of rows in Aeq must be the same as the length of beq., S2 C+ {6 G1 t3 y
这个错误的程序咋纠正啊,急急急急! 1 V& I) ~3 H* H f* l- S注:用的是matlab2010b