Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unconstrained Maximisation Problem

Status
Not open for further replies.

truetears

Industrial
Mar 30, 2013
6
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
 
Hi, sorry what is this file exchange section? I am new to the forums, apologies if this was posted in the wrong place.
 
no, on the Mathworks site

TTFN
faq731-376
7ofakss

Need help writing a question or understanding a reply? forum1529
 
Oh I see, I've searched the mathsworks site, there doesn't appear to be anything similar.
 
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.

Part and Inventory Search

Sponsor