Changeset 2045 for trunk/sources/HeuristicLab.Modeling
- Timestamp:
- 06/15/09 17:30:45 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Modeling/3.2/Model.cs
r2041 r2045 122 122 public double GetVariableQualityImpact(string variableName) { 123 123 if (variableQualityImpacts.ContainsKey(variableName)) return variableQualityImpacts[variableName]; 124 else return 1.0;124 else throw new ArgumentException("Impact of variable "+variableName+" is not available."); 125 125 } 126 126 127 127 public double GetVariableEvaluationImpact(string variableName) { 128 128 if (variableEvaluationImpacts.ContainsKey(variableName)) return variableEvaluationImpacts[variableName]; 129 else return 0.0;129 else throw new ArgumentException("Impact of variable " + variableName + " is not available."); 130 130 } 131 131
Note: See TracChangeset
for help on using the changeset viewer.