Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2000
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

Drawing polytopes

  • To: mathgroup at smc.vnet.net
  • Subject: [mg24236] Drawing polytopes
  • From: Matthijs Sypkens Smit <matthijs at helena.tux.nu>
  • Date: Mon, 3 Jul 2000 20:39:17 -0400 (EDT)
  • Organization: XS4ALL Internet BV
  • Sender: owner-wri-mathgroup at wolfram.com

I'm wondering if it's possible to draw (convex) polytopes defined by
systems of linear inequalities. For example the system:

x + 2y + z <= 3
2x - y >= 0
-x + 2y + z >= 0
y + z >= 0
2x + 3y + 3z >= 1

Can I get Mathematica to draw the polytope defined on R^3 by this system?

I'm able to solve this system with
InequalitySolve[{x+2y+2z<=3,2x-y>=0,-x+2y+z>=0,y+z>=0,2x+3y+3z>=1},{x,y,z}]
but the data is hard to interpret this way.

btw; the same problem, but a little more intuitive, would be to draw a
cube with the system defined below:

{x >= -1, x <= 1, y >= -1, y <= 1, z >= -1, z <= 1}

Any hints are appreciated,


-- 
Matthijs
** Do you know EVERYthing there is to know about your idol? **
Check it out:  http://www.fanpagesindex.com/


  • Prev by Date: Building a Table with initially unknown length?
  • Next by Date: Re: PrimeQ queries
  • Previous by thread: Re: Building a Table with initially unknown length?
  • Next by thread: Re: Drawing polytopes