The Math Forum

Search All of the Math Forum:

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

Math Forum » Discussions » Software » comp.soft-sys.matlab

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

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Alan Weiss

Posts: 1,430
Registered: 11/27/08
Re: Maximizing objective function
Posted: Sep 23, 2013 9:26 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic 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

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

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