Ask Your Question
0

Plot of linear programming restrictions 2d, 3d

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

thetha gravatar image

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

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 11:17:22 +0100

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 11:12:07 +0100

Seen: 312 times

Last updated: Jan 11 '19