Please help with the Inequality
显示 更早的评论
In the following code:
x = lsqlin(C,d,A,b,Aeq,beq,lb,ub,x0,options)
lb and ub are such that lb<=x<=ub.
Is there a way to change it to
lb < x < ub (strict inequalities)
Thanks
1 个评论
Walter Roberson
2013-3-15
Please read the guide to tags and retag this question; see http://www.mathworks.co.uk/matlabcentral/answers/43073-a-guide-to-tags
回答(1 个)
Walter Roberson
2013-3-15
0 个投票
Multiply the values in your lb array by (1+eps) and multiply the values in your ub array by (1-eps)
4 个评论
dav
2013-3-15
dav
2013-3-15
Walter Roberson
2013-3-15
You could use realmin as your lower bound. Unless, that is, it is important to be able to accept the denormalized values as well. If you need the denormalized values too, use eps(realmin) as your lower bound.
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!