MATLAB: Solve constrained linear least-squares problem such that A*x<=b

least squaresoptimization

Hello everyone, could you please have a look at the following issue I am having?
I am trying to use lsqlin to calculate constrained x such that A*x<=b, where every A*x has got its own b. With some help I was able to reproduce following function, which does almost what I need:
x = lsqlin(C,d,[-C;C],[-d;0*d+bIsNumber],[],[],[],[],[],opts)
where bIsNumber is a number which is used for calculating every A*x<=b. But how would one alter the function above so that every A*x has got its own (different) b? I tried the following:
x = lsqlin(C,d,[-C;C],[-d;0*d+bIsVector],[],[],[],[],[],opts)
where bIsVector is a vector. But this function is not working.
What am I doing wrong please?
Any help is greatly appreciated
Best regards, LZ

Best Answer

i think you should put up the question in the newsgroup as well. hopefully some linear programming expert will respond...
there is hope, because i think your program is relatively easy... just linear equations! it's just that i dont know much about them
good luck!!
Related Question