For a detailed description of the test functions, the parameters used, and the computational experiments please refer to the paper A new class of test functions for global optimization
The aim of this documentation is to give a complete description of the class implementing our test function generator.
The basic use, that is generation of the test function, evalutation of function and gradient at a given point, printing of paramenters, is presented through two examples.
shortExample::cpp shows the three standard methods that can be used to generate a test function (from standard input, setting parameter in the source code and from file) and how to to save parameters in a standard format file (in this way also the random parameters can be kept and used for several different tests).
shortExample_dim::cpp shows the two standard methods that can be used to generate a test function (from standard input and setting parameter in the source code) and how to to save parameters in a standard format file (in this way also the random parameters can be kept and used for several different tests).
The difference with respect to shortExample::cpp is that the overall dimension
of the test function is required as a parameter in place of the number of basic variables
.
RandomSearch::cpp is a simple Random Search applied to a test function generated from file Input.dat.
The code can be compiled with different versions of gcc. In particular test were made with gcc 3.0 up to 4.0. Any compiler compliant with the current C++ standard can now be used.
. It can be seen that increasing the number of local minima (i.e. increasing parameter
from 10 to 20) only slightly worsens the performance of MBH, while different scaling, due to random selection (within the interval
) of the
values, is a more serious source of difficulty.
and
are increased, we observe a clear decrease of the performance of MBH (MBH gets trapped at a local minimum at level 2 and is unable to escape from it when this is not the global minimum). Notice that MBH reaches in a relativey fast time a local minimum at level 2 (it has been observed that MBH always stops at a local minimum at level 2 and the number of local searches per run is never very large) but then is unable to escape from it.
| Function
| AMPL
| n | K_i | H | L2 | L3 | succ. | av. LS |
| Test 1
| data 1
| 50 | 10 | 10 | 1 | 1 | 1000 | 1517 |
| Test 2
| data 2
| 50 | 20 | 10 | 1 | 1 | 1000 | 2393 |
| Test 3
| data 3
| 50 | Random | 10 | 1 | 1 | 1000 | 5271 |
| Test 4
| data 4
| 30 | 10 | 10 | 10 | 1 | 82 | 1444 |
| Test 5
| data 5
| 30 | 10 | 10 | 25 | 1 | 30 | 1810 |
| Test 6
| data 6
| 30 | 10 | 10 | 25 | 4 | 17 | 1781 |
| Test 7
| data 7
| 30 | 10 | 10 | 100 | 4 | 3 | 1867 |
addis at dii.unisi.it
locatell at di.unito.it
The site will be continuously updated.
1.4.7