Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Newbie optimization problem
Date: Sun, 16 Mar 2008 18:05:04 +0000 (UTC)
Organization: Broadcom Inc.
Lines: 60
Message-ID: <frjngg$3f5$1@fred.mathworks.com>
References: <fri572$lk7$1@fred.mathworks.com> <13tp8b2q5pgnv23@corp.supernews.com> <fric8o$f0k$1@fred.mathworks.com> <13tqkhhkb17re38@corp.supernews.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1205690704 3557 172.30.248.37 (16 Mar 2008 18:05:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 16 Mar 2008 18:05:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 75773
Xref: news.mathworks.com comp.soft-sys.matlab:457499



"D. Ismay" 
<nospam@WooHoo.WooHooHoo.WooHoo.WooHooHoo.HOOHOO.hoohoo.Woo
Hoo.WooHooHoo> wrote in message 
<13tqkhhkb17re38@corp.supernews.com>...
> Barry wrote on 15-Mar-08 21:47 :
> > "D. Ismay"  wrote 
> > 
> >>> I am completely new to MatLab, and I have never 
actually
> >>> taken  a class in linear algebra, either  <snip>
> >> Google:
> >> Results 1 - 10 of about 407,000 for Linear Algebra 
and its
> > applications. (0.20 seconds)
> >> Help -- Matlab -- Getting Started
> >>
> >> HTH, HAND
> > 
> > I'm sorry, I should have been more clear about my 
situation
> > because I am a dumbass. <snip>
> 
> Edited, for the sake of TRUVTH! in usenet.
> 

I honestly think Barry put good effort in describing his 
problem, and it is a little harsh to direct him to google 
search.

Anyway, from my understanding of your problem, I think you 
need to write a matlab function to be optimized and 
passing to it the unkonwn values (Note I did not pay 
attnetion to dimensions, so this needs to be rewritten 
with desired dimnsions ....etc):

function r=myfunc(T1, T2, T3, logX1, logX2, logX3)
T=[1 2 3 T1 T2 T3];
logX=[5 6 7 logX1 logX2 logX3];
logC=A*logX + logK;
C=exp(logC); % I am assuming your log is natural logrithm
r=B*C-T; %return result of this target function to be 
minimized


Then use (pass) this function as an optimization target 
function in one of Matlab's optimization routines, like:
fminunc 
like this:
x0=[1 1 1 1 1 1]; %initial values for T1 T2 T3 logX1 logX2 
logX3
x = fminunc(fun,x0)

(All optimization functions are similar in usage, so 
knwing one will help you use the others).

Now you can proceed and read more in the help of this 
function and general usage of optimization in Matlab.

-Amir