Message Boards Message Boards

0
|
3423 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Compute the maximum value of a multivariable function?

Posted 3 years ago

Hi, I'm new to Mathematica. I have the function:

f[x_,y_] =  a1 (1 - (b1/(b1 + c f1 x))^(r1/r2)) + 
 a3 (1 - (b3/(b3 + c f3 (1 - x - y)))^(r5/r6)) + 
 a2 (1 - (b2/(b2 + c f2 y))^(r3/r4))

enter image description here

The unknowns are x and y, where the rest (a1, a2, ..., b1, ... ) are known variables, greater than 0, in the domain of Real numbers. I need a way to find x and y, for which (given we know the other variables) f(x,y) will have the maximum value. When I use the function maximize it takes forever to compute or sometimes it won't even execute. Finding derivatives works but then I need to express x and y in terms of the known variables, however using solve for solving the system of dfdx and dfdy yet again takes forever or doesn't execute at all. Am I approaching this in the wrong way?

POSTED BY: Alex Vit
Posted 3 years ago

I see I made a mistake. Sorry. If I can see a way to fix that I'll edit this again.

POSTED BY: Bill Nelson
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