MATLAB: Global optimization toolbox – GA – Timing

Global Optimization Toolbox

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

Best Answer

tic;
run the solver here
solver_timing = toc;