Path: news.mathworks.com!not-for-mail
From: "John D'Errico" <woodchips@rochester.rr.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Problem regarding Maximizing a function
Date: Mon, 30 Mar 2009 00:50:18 +0000 (UTC)
Organization: John D'Errico (1-3LEW5R)
Lines: 29
Message-ID: <gqp50a$i4s$1@fred.mathworks.com>
References: <gqp32v$kum$1@fred.mathworks.com>
Reply-To: "John D'Errico" <woodchips@rochester.rr.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1238374218 18588 172.30.248.35 (30 Mar 2009 00:50:18 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 30 Mar 2009 00:50:18 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869215
Xref: news.mathworks.com comp.soft-sys.matlab:528554

"lovish " <lovishagarwal@gmail.com> wrote in message <gqp32v$kum$1@fred.mathworks.com>...
> Hi guys,
> 
> I am having problems with maximizing a function using optimization tool. I have to maximize
> 
> max f(x)= log (x1) + log (x2) + log (x3)
> 
> with the constraints that x1+x2 <=1 ; x1+x3<=1
> 
> I'm solving it using optimization tool box using fmin solver. The function I have created is 

There is no solver called fmin in the optimization
toolbox. So it will be difficult to help you.


> 
> function f=objfun(x)
> f= log(x1)+log(x2)+ log (x3);
> f=-z;
> 
> I have used f=-z in order to maximize the function as fmin minimizes the function f(x) But  it isn't working. Please guide me as to how should I use the toolbox in order to maximize the function.
> 

What is not working? What is wrong? What has
failed? In what way did it fail?

The crystal ball is cloudy.

John