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:
Global optimization toolbox - GA - Timing

Subject: Global optimization toolbox - GA - Timing

From: Sata

Date: 11 Dec, 2012 06:20:08

Message: 1 of 2

How to set timing in global optimization toolbox, GA solver? Which is to record how long it takes to achieve the objective function value.

Subject: Global optimization toolbox - GA - Timing

From: Alan_Weiss

Date: 11 Dec, 2012 18:51:57

Message: 2 of 2

On 12/11/2012 1:20 AM, Sata wrote:
> How to set timing in global optimization toolbox, GA solver? Which is
> to record how long it takes to achieve the objective function value.

I do not really understand what you are asking. You can see how long an
optimization took using tic-toc statements:

tic
x = patternsearch(...);
toc

If you are asking about time limits, see
http://www.mathworks.com/help/gads/pattern-search-options.html#f11312
or look in the Options section for the solver that interests you.

Alan Weiss
MATLAB mathematical toolbox documentation

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