I'm Having a problem maximizing this function in mathematica:
Maximize[a + 0.3 * b, 0 < b < 10, a]
I just get the above back again as output when I run the code, Not helpfull
However when I maximize the equivalent function:
Maximize[a + (3/10) * b, 0 < b < 10, a]
I get a solution?!?
What is going on here? why does mathematica do this?
If you compare these results you see that the first one switches to use
NMaximizedue to0.3beingReal, whereas the second attempts to solve symbolically usingMaximisedue to3/10beingRational. This accounts for the different behaviour.