Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Maximizing objective function
Replies: 1   Last Post: Sep 23, 2013 9:26 AM

 Search Thread: Advanced Search

 Messages: [ Previous | Next ]
 Alan Weiss Posts: 1,430 Registered: 11/27/08
Re: Maximizing objective function
Posted: Sep 23, 2013 9:26 AM
 Plain Text Reply

On 9/22/2013 10:21 AM, El wrote:
> Dear all,
>
> I have to find the values of two different variables sigma_u and
> sigma_v which maximize the objective function C(sigma_u,sigma_v) and
> fulfil the following constraint: sigma_u+sigma_v=P, where the value of
> P is given. I need some help because I don't know how to formulate the
> problem.
> Thank you in advance

I would eliminate the constraint by setting
sigma_v = P - sigma_u
Now you have an unconstrained problem in one variable, sigma_u.
Write C in terms of sigma_u alone.
Then you can use fminbnd to minimize the function -C(sigma_u) (minimize
the negative to maximize the function).

Just one more thing: fminbnd needs a bounded region to search. So you
will somehow need to come up with a bounded region where the maximum is.

Good luck,

Alan Weiss
MATLAB mathematical toolbox documentation

Date Subject Author
9/22/13 Anja
9/23/13 Alan Weiss

© The Math Forum at NCTM 1994-2018. All Rights Reserved.