Ask Your Question
0

Plot of linear programming restrictions 2d, 3d

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

thetha gravatar image

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

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
1

answered 2019-01-11 04:17:22 -0500

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

Stats

Asked: 2019-01-11 04:12:07 -0500

Seen: 47 times

Last updated: Jan 11