Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*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 2004

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

Search the Archive

Re: Linear Programming

  • To: mathgroup at smc.vnet.net
  • Subject: [mg50991] Re: [mg50977] Linear Programming
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Fri, 1 Oct 2004 04:48:06 -0400 (EDT)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

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

{17, {x -> 11, y -> 6}}


Bob Hanlon

> 
> From: malacarne at gmail.com (Rodrigo Malacarne)
To: mathgroup at smc.vnet.net
> Date: 2004/09/30 Thu AM 04:52:32 EDT
> To: mathgroup at smc.vnet.net
> Subject: [mg50991] [mg50977] Linear Programming
> 
> 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: Fast multiplication of polynomials mod p
  • Next by Date: Time & space complexity for built-in-functions
  • Previous by thread: Re: Linear Programming
  • Next by thread: Re: Linear Programming