Ask Your Question
1

How to solve linear programming in matrix form?

asked 2014-09-15 15:57:38 +0100

Han gravatar image

Some times I have to solve large scale linear programming where the the constraints are given in matrix. However, all tutorials provided only demonstrate very small scale cases. What if I have a linear programming given in a 1000*400 matrix. How to solve such a linear programming in Sage? Do I need to use another package to solve such linear programming problems?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2014-09-15 17:43:40 +0100

Using a matrix of constraints has been implemented, and will be released soon (in Sage 6.4). See http://trac.sagemath.org/ticket/16714 You already might try installing the changes from this ticket into Sage 6.3 and use them.

edit flag offensive delete link more

Comments

Thank you so much for all your efforts. Good to know there will be an implement for matrix constraints in MILP. Looking forward to trying the new release of Sage.

Han gravatar imageHan ( 2014-09-16 14:18:47 +0100 )edit
1

answered 2014-09-15 17:20:04 +0100

tmonteil gravatar image

Did you try anything ? What happens if you input your matrix in the examples given in the tutorial ?

Look at the linear_program function on this page, use RDF for your floating-point real numbers, and tell us what happens !

edit flag offensive delete link more

Comments

Thank you so much for your suggestions. I went to the page you mentioned above and my problem was well solved. I would also like to take your answer as a correct answer. However, it seems that the system allows only one correct answer. Even though we already have an linear_program function in sage to solve LP in matrix form. However, to my knowledge, [Dima](http://trac.sagemath.org/ticket/16714) provides an new syntax to solve MILP in matrix form. So let us leave the credit to the real contributors of sage.

Han gravatar imageHan ( 2014-09-16 15:02:01 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-09-15 15:57:38 +0100

Seen: 2,111 times

Last updated: Sep 15 '14