Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
optimization

Subject: optimization

From: rsch tosh

Date: 23 May, 2010 23:48:05

Message: 1 of 5

Hi

I have a optimization program(.m file) in which few commands are used such as

options=psoptimset; (direct search algorithm)
syms x; (symbolic)
[x fval] = patternsearch(@objfun1,x0,[],[],[],[],LB,UB,@confun1,options);
    [c, ceq] = confun1(x);

My question is, to run such a program is it necessary for the matlab version to have
1. optimization toolbox
2. symbolic math toolbox
3. genetic algorithm and direct search toolbox

all these 3 toolboxes?

Subject: optimization

From: Walter Roberson

Date: 24 May, 2010 00:35:54

Message: 2 of 5

rsch tosh wrote:

> I have a optimization program(.m file) in which few commands are used
> such as
>
> options=psoptimset; (direct search algorithm)
> syms x; (symbolic)
> [x fval] = patternsearch(@objfun1,x0,[],[],[],[],LB,UB,@confun1,options);
> [c, ceq] = confun1(x);
>
> My question is, to run such a program is it necessary for the matlab
> version to have 1. optimization toolbox
> 2. symbolic math toolbox
> 3. genetic algorithm and direct search toolbox
>
> all these 3 toolboxes?

There does not appear to be any point in declaring syms x, as x is not
used as an argument to the next line and the next line overwrites the
value of x with a new (numeric) value. The symbolic toolbox is thus not
needed for the 3rd line, and if the x in the 4th line is the value
returned by the 3rd line then the symbolic toolbox is not needed for the
4th line.

The Genetic Algorithm and Direct Search Toolbox (GADS) was renamed in
2010a to the Global Optimization Toolbox. It requires the Optimization
Toolbox as a base:
http://www.mathworks.com/products/global-optimization/requirements.html

Thus at least two of the toolboxes are required. The symbolic toolbox
would be required in order to execute the syms command, but you do not
otherwise use any symbolic toolbox facilities in what you show.

Subject: optimization

From: Marcus M. Edvall

Date: 24 May, 2010 19:59:20

Message: 3 of 5

Hi,

If you use the TOMLAB Base Module you cover all 3 toolboxes mentioned.
There is a symbolic modeling engine called tomSym - it can generate
1st and 2nd order derivatives as needed. You also have a set of local
solvers, global solvers and support for binary/integer variables.

The solvers you can find here: http://tomopt.com/tomlab/products/base/solvers/

For special large-scale problems you may need an add-on toolbox.

Best wishes, Marcus
http://tomsym.com/
http://tomdyn.com/

Subject: optimization

From: bgnr

Date: 24 May, 2010 21:59:05

Message: 4 of 5

"rsch tosh" <destination_nywhere@yahoo.com> wrote in message <htcerl$b0b$1@fred.mathworks.com>...
> Hi
>
> I have a optimization program(.m file) in which few commands are used such as
>
> options=psoptimset; (direct search algorithm)
> syms x; (symbolic)
> [x fval] = patternsearch(@objfun1,x0,[],[],[],[],LB,UB,@confun1,options);
> [c, ceq] = confun1(x);
>
> My question is, to run such a program is it necessary for the matlab version to have
> 1. optimization toolbox
> 2. symbolic math toolbox
> 3. genetic algorithm and direct search toolbox
>
> all these 3 toolboxes?

Thank you for your detailed replies. This answers lot of questions.

Subject: optimization

From: rsch tosh

Date: 24 May, 2010 22:03:05

Message: 5 of 5

"rsch tosh" <destination_nywhere@yahoo.com> wrote in message <htcerl$b0b$1@fred.mathworks.com>...
> Hi
>
> I have a optimization program(.m file) in which few commands are used such as
>
> options=psoptimset; (direct search algorithm)
> syms x; (symbolic)
> [x fval] = patternsearch(@objfun1,x0,[],[],[],[],LB,UB,@confun1,options);
> [c, ceq] = confun1(x);
>
> My question is, to run such a program is it necessary for the matlab version to have
> 1. optimization toolbox
> 2. symbolic math toolbox
> 3. genetic algorithm and direct search toolbox
>
> all these 3 toolboxes?

Thank you for the reply.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us