Changeset 5381 for trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs
- Timestamp:
- 01/26/11 18:39:49 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs
r5287 r5381 403 403 op.RealVectorParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 404 404 } 405 foreach (IRealVectorPSOEncoder op in Operators.OfType<IRealVectorPSOEncoder>()) {406 ((ILookupParameter)op.OriginalRealVectorParameter).ActualName = SolutionCreator.RealVectorParameter.ActualName;407 op.BoundsParameter.Value = (DoubleMatrix)BoundsParameter.Value.Clone();408 op.BoundsParameter.ActualName = "ParticleBounds";409 }410 405 } 411 406 private void UpdateStrategyVectorBounds() { 412 407 DoubleMatrix strategyBounds = (DoubleMatrix)Bounds.Clone(); 413 for (int i = 0; i < strategyBounds.Rows; i++) 408 for (int i = 0; i < strategyBounds.Rows; i++) { 414 409 if (strategyBounds[i, 0] < 0) strategyBounds[i, 0] = 0; 410 strategyBounds[i, 1] = 0.1 * (Bounds[i, 1] - Bounds[i, 0]); 411 } 415 412 strategyVectorCreator.BoundsParameter.Value = strategyBounds; 416 413 }
Note: See TracChangeset
for help on using the changeset viewer.