File Exchange

image thumbnail

Calculate T0 for your hardware and programming language accroding to CEC

version (1.35 KB) by Reza Ahmadzadeh
Standard code provided by Congress on Evolutionary Computation (CEC)


Updated 23 May 2016

View License

This is the standard code provided by Congress on Evolutionary Computation (CEC) in order to provide the computational time based on the hardware and programming language used for an algorithm.
Test program generates T0 for evaluating the complexity of an algorithm. T0 is used to estimate the power of your machine and the language you are coding in. Usually you calculate T1 based on the performance of your algorithm and comparing T1 to T0 makes the results independent from the CPU power and the language.
% This technique has been used in CEC competitions. For instance take look at this reference:
"Problem Definition and Evaluation Criteria for the CEC 2013 Special Session on real-parameter optimization"
n: is the number of time the test is repeated and then the result is
averaged. Using n=100 is sufficient.
T0 = MachineTimeTest(100)

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2011a
Compatible with any release
Platform Compatibility
Windows macOS Linux