Message Boards Message Boards

GROUPS:

Identifying constants in maximization problem in Wolfram|Alpha

Posted 9 years ago
6450 Views
|
1 Reply
|
0 Total Likes
|

I'm trying to maximize x in the following equation:

x*a - 2*x*y*b + 2*x*c + y^2*d - 2*y*e - f^2 + 2*r^2

where x and y are variables both between -1 and 1, and the rest are given constants. Wolfram Alpha says there is no global maximum when I input "maximize x where xa - 2xyb + 2xc + y^2d - 2ye = f^2 - 2r^2 and x <= 1 and x >= -1 and y <= 1 and y >= -1." From my previous calculations and the problem I'm solving, I know that there is a maximum. I think that Wolfram Alpha is interpreting constants a through f as variables instead of constants. How can I tell Wolfram Alpha to solve it interpreting a through f as constants?

POSTED BY: Tyler Hoyer

Seeking a maximum with respect to all the variables, you would find

In[11]:= FindMaximum[
 x a - 2 x y b + 2 x c + y^2  d - 2 y e - f^2 + 2 r^2, {x, y, a, b, c,
   d, e, f, r}]

During evaluation of In[11]:= FindMaximum::cvmit: Failed to converge to the requested accuracy or precision within 100 iterations. >>

Out[11]= {2.378459115707933*10^309, {x -> 1.23164*10^102, 
  y -> -1.79799*10^103, a -> 6.30468*10^102, b -> -1.4855*10^103, 
  c -> 1.26094*10^103, d -> 9.3925*10^102, e -> -1.39494*10^103, 
  f -> -1.39494*10^103, r -> 2.27695*10^103}}
POSTED BY: S M Blinder
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