| 1923 | */ |
| 1924 | |
| 1925 | void initCommonVars( CBiteRnd& rnd ) |
| 1926 | { |
| 1927 | getMinValues( MinValues ); |
| 1928 | getMaxValues( MaxValues ); |
| 1929 | updateDiffValues(); |
| 1930 | |
| 1931 | resetCurPopPos(); |
| 1932 | |
| 1933 | UseStartParams = false; |
| 1934 | StartSD = 0.25; |
| 1935 | BestCost = 1e300; |
| 1936 | LastCosts = NewCosts; |
| 1937 | LastValues = NewValues; |
| 1938 | DoInitEvals = true; |
| 1939 | StallCount = 0; |
| 1940 | HiBound = 1e300; |
| 1941 | AvgCost = 0.0; |
| 1942 | ApplySelsCount = 0; |
| 1943 | |
| 1944 | int i; |
| 1945 | |
| 1946 | for( i = 0; i < SelCount; i++ ) |
| 1947 | { |
| 1948 | Sels[ i ] -> reset( rnd, ParamCount ); |
| 1949 | } |
| 1950 | } |
| 1951 | |
| 1952 | /** |
| 1953 | * Function updates values in the DiffValues array, based on values in the |