For the linear programming function solveLP, how can we set a upper bound and lower bound for the solution? Like what the linprog function does in matlab, linprog(c, A,b,Aeq,beq, lb,ub), where lb and ub are the lower bound and upper bound.
--
You received this message because you are subscribed to the Google Groups "numericjs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to numericjs+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,You have to use the matrix A and vector b for everything. This is an example for minimizing x-y in (1<x<2 and 1<y<2):
On 12 July 2017 at 15:57, Yi <guo...@seas.upenn.edu> wrote:
For the linear programming function solveLP, how can we set a upper bound and lower bound for the solution? Like what the linprog function does in matlab, linprog(c, A,b,Aeq,beq, lb,ub), where lb and ub are the lower bound and upper bound.
--
You received this message because you are subscribed to the Google Groups "numericjs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to numericjs+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
In each row of m_Aeq, there is a '1' and a '-1' and the rest of it should be 0. Thus it should have a solution of [1,1,1,1,1,1,1,1,1,1,1,1]. But the solution I get only contains 0 and NaN, and the iteration time is 0. Is this a bug? Or do I misunderstand something? Is there any way to solve this?
Thanks.
On Wednesday, July 12, 2017 at 11:10:57 AM UTC-4, sloisel wrote:
Hi,You have to use the matrix A and vector b for everything. This is an example for minimizing x-y in (1<x<2 and 1<y<2):
On 12 July 2017 at 15:57, Yi <guo...@seas.upenn.edu> wrote:
For the linear programming function solveLP, how can we set a upper bound and lower bound for the solution? Like what the linprog function does in matlab, linprog(c, A,b,Aeq,beq, lb,ub), where lb and ub are the lower bound and upper bound.
--
You received this message because you are subscribed to the Google Groups "numericjs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to numericjs+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Sébastien LoiselAssistant ProfessorDepartment of Mathematics, Heriot-Watt UniversityRiccarton, EH14 4AS, United Kingdom
web: http://www.ma.hw.ac.uk/~loisel/
email: S.Loisel at hw.ac.uk
phone: +44 131 451 3234
fax: +44 131 451 3249