Message Boards Message Boards

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

Error in Maximize[ ]?

Posted 3 years ago

Hi, yesterday I got help from you, because the online-version wasn't working in optimization that good anymore. Therefore, i downloaded the "Mathematica" Trail-Version. I now tried to maximize a Utility function under a constraint, which failed. I guessed, that the command would be similar to the minimization of a production-function. However, now some examples work also on the online-version. But could you be so kind and give me an exact command for maximization in "Mathematica"?

That would be nice, thank you! Manuel

Attachment

Attachment

Attachments:
POSTED BY: Manuel Kerm
2 Replies
Posted 3 years ago

Hi Manuel,

sol = Maximize[{x^(8/10)*y^(5/10), x + y/2 == 460}, {x, y}];

sol // N
(* {1721.59, {x -> 283.077, y -> 353.846}} *)

Use exact numbers y/2 rather than 0.5 y.

POSTED BY: Rohit Namjoshi

You can also keep 0.5y but assume x>0 and y>0:

Maximize[{x^(8/10)*y^(5/10),
  x + 0.5 y == 460 && x > 0 && y > 0},
 {x, y}]
POSTED BY: Gianluca Gorni
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