- Timestamp:
- 07/29/09 13:43:16 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Modeling Database Backend/sources/HeuristicLab.GP.StructureIdentification/3.3/AlgorithmBase.cs
r2201 r2206 73 73 } 74 74 75 private IModel model; 75 76 public virtual IModel Model { 76 77 get { 77 78 if (!engine.Terminated) throw new InvalidOperationException("The algorithm is still running. Wait until the algorithm is terminated to retrieve the result."); 78 IScope bestModelScope = engine.GlobalScope.GetVariableValue<IScope>("BestValidationSolution", false); 79 return CreateGPModel(bestModelScope); 79 if (model == null) { 80 IScope bestModelScope = engine.GlobalScope.GetVariableValue<IScope>("BestValidationSolution", false); 81 model = CreateGPModel(bestModelScope); 82 } 83 return model; 80 84 } 81 85 }
Note: See TracChangeset
for help on using the changeset viewer.