示例#1
0
        private void createAdvancedParametersFor(ImportPopulation importPopulation)
        {
            foreach (var parameterPath in importPopulation.IndividualPropertiesCache.AllParameterPaths())
            {
                if (_allCreateIndividualParameters.Contains(parameterPath))
                {
                    continue;
                }

                var advancedParameter = _advancedParameterFactory.Create(_allParameters[parameterPath], DistributionTypes.Unknown);

                //do not generate random values as these were loaded from files
                importPopulation.AddAdvancedParameter(advancedParameter, generateRandomValues: false);
            }
        }
示例#2
0
 private void mergeImportedIndividualsInPopulation(ImportPopulation importPopulation, IndividualPropertiesCache individualValues)
 {
     importPopulation.IndividualPropertiesCache.Merge(individualValues, _allParameters);
 }