Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: Non-linear Programming - Plot3D

  • To: mathgroup at smc.vnet.net
  • Subject: [mg110094] Re: Non-linear Programming - Plot3D
  • From: Patrick Scheibe <pscheibe at trm.uni-leipzig.de>
  • Date: Tue, 1 Jun 2010 07:40:22 -0400 (EDT)

Hi,

you should always check the documentation first. A click on More  
Information in the Plot3D
doc would have shown you that there is a RegionFunction option:

Plot3D[x^2 - y^2, {x, -15, 15}, {y, -15, 15},
  RegionFunction :> Function[{x, y, z}, x + y <= 12 && x <= 10 && y <=  
10]]

Cheers
Patrick

Am Jun 1, 2010 um 10:24 AM schrieb Trevor Rabey:

> I can use Plot3D to plot a surface z as a function of x and y, say z  
> = x^2-y^2, abd the NLP problem is to max or min z on some region  
> defined by a function or functions such as:
> x + y <= 12, x<=10, y <=10
> I cannot seem to find a good way to plot the constraints, ie the  
> extrusion of the region from the xy plane.
> Help, anyone? TIA.
> --
> Trevor Rabey
>



  • Prev by Date: Re: Assigning values to a list.
  • Next by Date: Re: Assigning values to a list.
  • Previous by thread: Non-linear Programming - Plot3D
  • Next by thread: Re: Non-linear Programming - Plot3D