MathGroup Archive 2004

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

Search the Archive

Re: Linear Programming

  • To: mathgroup at smc.vnet.net
  • Subject: [mg51003] Re: Linear Programming
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Fri, 1 Oct 2004 04:48:34 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <cjgifa$q53$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

NMinimize[
  {x + y, {x > 5, y > 5, 3x > 5y, Element[{x, y}, Integers]}}, {x, y}]

??

Regards
  Jens

Rodrigo Malacarne wrote:
> 
> Hi everybody,
> 
> How can I insert a constraint in the following expression
> 
> ConstrainedMin[x+y,{x>5,y>5,3x>5y},{x,y}]
> 
> to find only integer results? Using the expression above I get
> 
> {13.3333,{x->8.3333,y->5.}}
> 
> but I want x to be an integer number.
> 
> Cordially yours,
> Rodrigo


  • Prev by Date: Root function
  • Next by Date: Re: trimming a string (with Java)
  • Previous by thread: Re: Re: Root function
  • Next by thread: Re: Linear Programming