Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

Unconstrained Maximisation Problem

Status
Not open for further replies.

truetears

Industrial
Mar 30, 2013
6
0
0
AU
Hi everyone, essentially my aim is to maximise the unconstrained equation (1) with respect to lambda_i's for i = 0, 1, ..., 10. These lambda_i's can take on any REAL value, including 0. All other variables and functions are defined as follows:

95494871.jpg


56716344.jpg


I wish to solve for these lambda_i's in matlab, I have quite a limited knowledge with matlab, however I realise I have to use these three functions:


However due to my limited experience with matlab I am not sure about how to write the code, could anyone please give me a hand?

Any help will be much appreciated!
 
Replies continue below

Recommended for you

And there's nothing in the file exchange section for this?

TTFN
faq731-376
7ofakss

Need help writing a question or understanding a reply? forum1529
 
Check if your version of Matlab has the "optimization toolbox"
If it does, it is relatively easy to set up your problem.

[peace]
Fe (IronX32)
 
Yup I do have the optimization toolbox, in fact, I think I've got the code, however the problem is that I've been running it since last night and it still hasn't finished, how do I know when a script has finished running? And how can I make it run faster? The code + data file is attached below:





The first 3 files are my codes, last file is the data file.

Many thanks for your help!
 
Status
Not open for further replies.
Back
Top