Ask Your Question

Plot of linear programming restrictions 2d, 3d

asked 2019-01-11 04:12:07 -0600

thetha gravatar image

updated 2019-01-11 06:28:04 -0600

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 04:17:22 -0600

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 04:12:07 -0600

Seen: 89 times

Last updated: Jan 11 '19