I received the following error in calling LINPROG
f=@(weit)LPSOLVE_TRADE(weit,CurrWeights,5,2);tt=linprog(f,[],[],aeq,beq,lb,ub,weit);
f refers to LPSOLVE_TRADE which has following header
function f=LPSOLVE_TRADE(wei,CurrWeights,numtickers,numaccts)
at the end of function i have f=double(variable name)
Any advice/help guidance would be highly appreciated
Best Answer