Global optimization toolbox - GA - Timing

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

 Accepted Answer

tic;
run the solver here
solver_timing = toc;

1 Comment

Thank you for your response. By the way, how to add the code in GUI of Global optimization toolbox?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!