A problem with Maximize/Minimize

• To: mathgroup at smc.vnet.net
• Subject: [mg119682] A problem with Maximize/Minimize
• From: Gary Wardall <gwardall at gmail.com>
• Date: Fri, 17 Jun 2011 00:09:34 -0400 (EDT)

```A problem with Maximize/Minimize:

Clear[x, y, z]

Maximize[{30 x + 20 y + 15 z, x >= 0, y >= 0, z >= 0,
7 x + 7 y + 3 z <= 100, 3 x + y + 2 z <= 50}, {x, y, z}]

{450, {x -> 10, y -> 0, z -> 10}}

Maximize[{30 x + 20 y + 15 z, x >= 0, y >= 0, z >= 0,
7 x + 7 y + 3 z <= 100, 3 x + y + 2 z <= 50}, {x, y, z}, Integers]

{490, {x -> 10, y -> 0, z -> 10}}

I think the problem is obvious or am I confused? I'm using Mathematica
8 on an Apple Power Book  10.5.6

A similar problem exist with Minimize.

Minimize[{-30 x - 20 y - 15 z, x >= 0, y >= 0, z >= 0,
7 x + 7 y + 3 z <= 100, 3 x + y + 2 z <= 50}, {x, y, z}]

{-450, {x -> 10, y -> 0, z -> 10}}

Minimize[{-30 x - 20 y - 15 z, x >= 0, y >= 0, z >= 0,
7 x + 7 y + 3 z <= 100, 3 x + y + 2 z <= 50}, {x, y, z}, Integers]

{-490, {x -> 10, y -> 0, z -> 10}}

Gary Wardall

```

• Prev by Date: Re: " for z>0
• Next by Date: Re: Mathematica syntax problem: tsntxi
• Previous by thread: Re: " for
• Next by thread: Re: A problem with Maximize/Minimize