* @return the corresponding (parameter-) configuration
*/
private Configuration extractConfigurationFromSimulationConfiguration(
TaskConfiguration simConfig) {
Configuration config;
try {
config = optimizationProblem.createFactors();
} catch (CloneNotSupportedException e) {
SimSystem.report(e);
return null;
}
for (BaseVariable<?> factor : config.values()) {
BaseVariable<?> temp =
(BaseVariable<?>) simConfig.getParameters().get(factor.getName());
config.put(factor.getName(), temp);
}
return config;
}