I'm working with Maximize
and it does not generate any result but simply reproduces the same code. My object function is rather complex which is:
$0.18 k-0.36 + \frac{k^2 r (c (0.018\, -0.036 q)+0.0036)+c (-0.02304 q-0.03456)+0.07632}{r}+0.06 (-2 + k) (-5.92 + (-4 + (2 - 0.1 k) k) r + c (0.96 - 0.5 k^2 r + q (0.64 + k^2 r)))$
I would like to find the optimal $r\in [0,1]$ and $k\in [0,1]$ given $q\in [1,2]$ and $c\in [0,1]$. My Mathematica code is as follows:
Maximize[{-0.36 + 0.18 k + (0.07632 + c (-0.03456 - 0.02304 q) + k^2 (0.0036 + c (0.018 - 0.036 q)) r)/r + 0.06 (-2. + k) (-5.92 + (-4. + (2. - 0.1 k) k) r + c (0.96 - 0.5 k^2 r + q (0.64 + k^2 r))), 1<=q <=2, 0 <= c <= 1}, {r, k}]
Can any one help?