From: Lin Frank on 14 Jan 2010 05:51 My codes as follows: ------------------------------------------------ setlmis([]); Z=lmivar(1,[2 1]); PK=lmivar(1,[2 1]); QK=lmivar(1,[2 1]); RK=lmivar(1,[2 1]); F1K=lmivar(2,[1 2]); F2K=lmivar(2,[1 2]); F3K=lmivar(2,[1 2]); XK=lmivar(1,[2 1]); TK=lmivar(1,[2 1]); NK=lmivar(2,[2 2]); MK=lmivar(2,[2 2]); UK=lmivar(2,[2 2]); .. .. .. LMISYS=getlmis; c=mat2dec(LMISYS,1,0,0,0,0,0,0,0,0,0,0,0); [copt,xopt]=mincx(LMISYS,c,[1,0,0,0,0]); Z=dec2mat(LMISYS,xopt,Z); P=dec2mat(LMISYS,xopt,PK); Q=dec2mat(LMISYS,xopt,QK); R=dec2mat(LMISYS,xopt,RK); X=dec2mat(LMISYS,xopt,XK); T=dec2mat(LMISYS,xopt,TK); F1=dec2mat(LMISYS,xopt,F1K); F2=dec2mat(LMISYS,xopt,F2K); F3=dec2mat(LMISYS,xopt,F3K); N=dec2mat(LMISYS,xopt,NK); M=dec2mat(LMISYS,xopt,NK); U=dec2mat(LMISYS,xopt,NK); ------------------------------------------------------- I want to optimize the variable Z. But it always prints out the ERROR as follows: ??? Error using ==> dec2mat at 31 DECVARS must be a vector of length 36 Error in ==> NOOB at 429 %NOOB is the name of my file Z=dec2mat(LMISYS,xopt,Z); Could somebody teach me how to solve it? Thank you very much!!
|
Pages: 1 Prev: how you change opencv function to matlab Next: how can covert grb to his |