I run the following code:
load DataFile % you can find this file in the attachment
options = optimset(options, 'Display','iter');X=linprog(f,[],[],Aeq,Beq,LB,UB,[],options)
I receive the following error message:
??? Error using ==> mtimes Inner matrix dimensions must agree. Error in ==> optim\private\lipsol>sherman at 1475 tmp = U * (Mdense \ (U' * x)); Error in ==> optim\private\lipsol>densol at 1422 [x,Mdense,Rinf] = sherman(P,U,b,flag,Mdense,perm,Rinf); Error in ==> optim\private\lipsol at 684 [x,Sherman_OK,Mdense,Rinf,cgiter] = ... Error in ==> linprog at 212 [x,fval,lambda,exitflag,output] = lipsol(f,A,B,Aeq,Beq,lb,ub,options,defaultopt,computeLambda);
Best Answer