Message Boards Message Boards

0
|
4822 Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Maximize function for the volume of a box?

Posted 4 years ago

I'm trying to maximize the volume of a box with an open top using this:

Maximize[{x*y*z , 2 x*z + 2 y*z + x*y == 12}, {x, y, z}]

I know the answer should be this

{4, {x -> 2, y -> 2, z -> 1}}

But I get this as a result

{\[Infinity], {x -> Indeterminate, y -> Indeterminate, 
  z -> Indeterminate}}
POSTED BY: sebastian casas
2 Replies
In[1]:= Maximize[{x*y*z, 2 x*z + 2 y*z + x*y == 12, x >= 0, y >= 0, 
  z >= 0}, {x, y, z}]

Out[1]= {4, {x -> 2, y -> 2, z -> 1}}

Thank you very much!

POSTED BY: sebastian casas
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract