Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Maximization with unknown parameters' topicStudent Support Forum > General > "Maximization with unknown parameters"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Bill Simpson
06/20/13 02:30am

From the way the question is posed I am uncertain whether this will be acceptable.

In[1]:= x /. Rest[
Assuming[a > 0,
Simplify[Maximize[{a*x^2, -1 <= x <= 1}, x]]
]
]

Out[1]= {-1}

In[2]:= x /. Rest[
Assuming[a < 0,
Simplify[Maximize[{a*x^2, -1 <= x <= 1}, x]]
]
]

Out[2]= {0}

That does attempt to pass your constraints to Mathematica via Assuming before invoking Maximize and does attempt to return just the result of the Maximize as a value rather than a set of rules, but again I question whether this will be acceptable to you.

URL: ,

Subject (listing for 'Maximization with unknown parameters')
Author Date Posted
Maximization with unknown parameters Mike 06/19/13 2:16pm
Re: Maximization with unknown parameters Bill Simpson 06/20/13 02:30am
Re: Re: Maximization with unknown parameters Mike 06/20/13 12:01pm
Re: Re: Re: Maximization with unknown parameters Bill Simpson 06/20/13 3:12pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic