First time here? Check out the FAQ!

Ask Your Question
0

Plot of linear programming restrictions 2d, 3d

asked 6 years ago

thetha gravatar image

updated 6 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 6 years ago

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()
Preview: (hide)
link

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: 6 years ago

Seen: 330 times

Last updated: Jan 11 '19