Changeset 6055 for branches/histogram/HeuristicLab.Problems.TestFunctions
- Timestamp:
- 04/27/11 09:22:20 (14 years ago)
- Location:
- branches/histogram
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/histogram
- Property svn:mergeinfo changed
/trunk/sources merged: 6047-6048,6051-6054
- Property svn:mergeinfo changed
-
branches/histogram/HeuristicLab.Problems.TestFunctions/3.3/Analyzers/BestSingleObjectiveTestFunctionSolutionAnalyzer.cs
r5445 r6055 85 85 Parameters.Add(new ValueLookupParameter<ISingleObjectiveTestFunctionProblemEvaluator>("Evaluator", "The evaluator with which the solution is evaluated.")); 86 86 Parameters.Add(new LookupParameter<DoubleMatrix>("Bounds", "The bounds of the function.")); 87 88 MaximizationParameter.Hidden = true; 89 RealVectorParameter.Hidden = true; 90 QualityParameter.Hidden = true; 91 BestSolutionParameter.Hidden = true; 92 BestKnownSolutionParameter.Hidden = true; 93 BestKnownQualityParameter.Hidden = true; 94 ResultsParameter.Hidden = true; 95 EvaluatorParameter.Hidden = true; 96 BoundsParameter.Hidden = true; 87 97 } 88 98 -
branches/histogram/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs
r6046 r6055 379 379 private void ParameterizeSolutionCreator() { 380 380 SolutionCreator.LengthParameter.Value = new IntValue(ProblemSize.Value); 381 SolutionCreator.LengthParameter.Hidden = true; 382 SolutionCreator.BoundsParameter.ActualName = BoundsParameter.Name; 383 SolutionCreator.BoundsParameter.Hidden = true; 381 384 } 382 385 private void ParameterizeEvaluator() { 383 386 Evaluator.PointParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 387 Evaluator.PointParameter.Hidden = true; 384 388 BestKnownSolutionParameter.Value = Evaluator.GetBestKnownSolution(ProblemSize.Value); 385 389 } … … 387 391 foreach (IRealVectorCrossover op in Operators.OfType<IRealVectorCrossover>()) { 388 392 op.ParentsParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 393 op.ParentsParameter.Hidden = true; 389 394 op.ChildParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 395 op.ChildParameter.Hidden = true; 390 396 op.BoundsParameter.ActualName = BoundsParameter.Name; 397 op.BoundsParameter.Hidden = true; 391 398 } 392 399 foreach (IRealVectorManipulator op in Operators.OfType<IRealVectorManipulator>()) { 393 400 op.RealVectorParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 401 op.RealVectorParameter.Hidden = true; 394 402 op.BoundsParameter.ActualName = BoundsParameter.Name; 403 op.BoundsParameter.Hidden = true; 395 404 } 396 405 foreach (IRealVectorMoveOperator op in Operators.OfType<IRealVectorMoveOperator>()) { 397 406 op.RealVectorParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 407 op.RealVectorParameter.Hidden = true; 398 408 } 399 409 foreach (IRealVectorMoveGenerator op in Operators.OfType<IRealVectorMoveGenerator>()) { 400 410 op.BoundsParameter.ActualName = BoundsParameter.Name; 411 op.BoundsParameter.Hidden = true; 401 412 } 402 413 foreach (ISingleObjectiveTestFunctionAdditiveMoveEvaluator op in Operators.OfType<ISingleObjectiveTestFunctionAdditiveMoveEvaluator>()) { 403 414 op.QualityParameter.ActualName = Evaluator.QualityParameter.ActualName; 404 op.RealVectorParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 415 op.QualityParameter.Hidden = true; 416 op.RealVectorParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 417 op.RealVectorParameter.Hidden = true; 405 418 } 406 419 foreach (IRealVectorParticleCreator op in Operators.OfType<IRealVectorParticleCreator>()) { 407 420 op.RealVectorParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 421 op.RealVectorParameter.Hidden = true; 408 422 op.BoundsParameter.ActualName = BoundsParameter.Name; 423 op.BoundsParameter.Hidden = true; 409 424 op.ProblemSizeParameter.ActualName = ProblemSizeParameter.Name; 425 op.ProblemSizeParameter.Hidden = true; 410 426 } 411 427 foreach (IRealVectorParticleUpdater op in Operators.OfType<IRealVectorParticleUpdater>()) { 412 428 op.RealVectorParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 429 op.RealVectorParameter.Hidden = true; 413 430 op.BoundsParameter.ActualName = BoundsParameter.Name; 431 op.BoundsParameter.Hidden = true; 414 432 } 415 433 foreach (IRealVectorSwarmUpdater op in Operators.OfType<IRealVectorSwarmUpdater>()) { 416 434 op.RealVectorParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 435 op.RealVectorParameter.Hidden = true; 417 436 op.MaximizationParameter.ActualName = MaximizationParameter.Name; 418 } 419 foreach (var op in Operators.OfType<IRealVectorMultiNeighborhoodShakingOperator>()) 420 op.RealVectorParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 437 op.MaximizationParameter.Hidden = true; 438 } 439 foreach (var op in Operators.OfType<IRealVectorMultiNeighborhoodShakingOperator>()) { 440 op.RealVectorParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 441 op.RealVectorParameter.Hidden = true; 442 } 421 443 } 422 444 private void UpdateStrategyVectorBounds() {
Note: See TracChangeset
for help on using the changeset viewer.