Ask Your Question

Plot of linear programming restrictions 2d, 3d

asked 2019-01-11 11:12:07 +0200

thetha gravatar image

updated 2019-01-11 13:28:04 +0200

slelievre gravatar image

Is there a way automatical plot the restiriction and the solution. I know how to plot them by hand. Is there an automatical graphical solution included?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2019-01-11 11:17:22 +0200

tmonteil gravatar image

You should give more deatils (e.g. your linear proogram, what do you want to restrict, etc). Without more informations, given a linear program p of dimension 2 or 3, you can get its polyhedron as follows:

sage: p.polyhedron()

that you can plot as follows:

sage: p.polyhedron().plot()
edit flag offensive delete link more

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


Asked: 2019-01-11 11:12:07 +0200

Seen: 260 times

Last updated: Jan 11 '19