# Error in Maximize\[ \]?

**URL:** <https://community.wolfram.com/t/error-in-maximize/17534>\
**Category:** Questions\
**Tags:** wolfram-alpha, optimization\
**Created:** [February 1, 2021, 11:55am UTC](https://community.wolfram.com/t/error-in-maximize/17534 "2021-02-01T11:55:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adelsberger10](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@adelsberger10](https://community.wolfram.com/u/adelsberger10)\
**Post date:** [February 1, 2021, 11:55am UTC](https://community.wolfram.com/t/error-in-maximize/17534/1 "2021-02-01T11:55:39Z")

</div>

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

 ![1.PNG](https://global.discourse-cdn.com/wolfram/original/3X/1/d/1d447179255c07f9ffa02b0489bb44df20a0bdae.png)  
 ![2.PNG](https://global.discourse-cdn.com/wolfram/original/3X/9/8/98c50603c3d0dd9cbf923a1f191e64afd79324b1.png)

---

<div class="post-metadata">

**Author:** ![rohitnamjoshi](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@rohitnamjoshi](https://community.wolfram.com/u/rohitnamjoshi)\
**Post date:** [February 1, 2021, 3:38pm UTC](https://community.wolfram.com/t/error-in-maximize/17534/2 "2021-02-01T15:38:26Z")

</div>

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`.

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [February 1, 2021, 5:19pm UTC](https://community.wolfram.com/t/error-in-maximize/17534/3 "2021-02-01T17:19:27Z")

</div>

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}]

```
