×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Are you an
Engineering professional?
Join Eng-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

# Unconstrained Maximisation Problem

## Unconstrained Maximisation Problem

(OP)
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:

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:

http://www.mathworks.com/help/stats/multivariate-n...
http://www.mathworks.com/help/matlab/optimization....
http://www.mathworks.com/help/optim/functionlist.h...

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!

### RE: Unconstrained Maximisation Problem

(OP)
Hi, sorry what is this file exchange section? I am new to the forums, apologies if this was posted in the wrong place.

### RE: Unconstrained Maximisation Problem

(OP)
Oh I see, I've searched the mathsworks site, there doesn't appear to be anything similar.

### RE: Unconstrained Maximisation Problem

Check if your version of Matlab has the "optimization toolbox"
If it does, it is relatively easy to set up your problem.

Fe (IronX32)

### RE: Unconstrained Maximisation Problem

(OP)
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:

http://files.engineering.com/getfile.aspx?folder=b...

http://files.engineering.com/getfile.aspx?folder=3...

http://files.engineering.com/getfile.aspx?folder=a...

http://files.engineering.com/getfile.aspx?folder=c...

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

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

#### Resources

Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a partâ€™s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

Close Box

# Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!