Changes between Version 4 and Version 5 of Documentation/Howto/Implement a Basic Algorithm
- Timestamp:
- 03/21/12 14:05:45 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Documentation/Howto/Implement a Basic Algorithm
v4 v5 6 6 7 7 == A random algorithm == 8 We will now implement an algorithm for !HeuristicLab which does nothing more then just create a random number. To give you an overview of how the structure of the algorithm should look like, have a look onthe operator graph of the algorithm:8 We will now implement an algorithm for !HeuristicLab which does nothing more then just create a random number. To give you an overview of how the structure of the algorithm should look like, have a look at the operator graph of the algorithm: 9 9 10 10 [[Image(randomAlgorithm.PNG)]] 11 11 12 12 !RandomCreator is the initial operator which gets executed (therefore the green color). The !RandomCreator creates a random number generator. It can be configured to have a fixed seed as well as the type of the random number generator. 13 The second operator is the !VariableCreator which can be parameterized to create variables. In this case one variable (!ResultValue) is configured in which the !UniformRandomizer will save it's result. !UniformRandomizer samples random numbers between Min and Max with the random number generator created by !RandomCreator.13 The second operator is the !VariableCreator which can be parameterized to create variables. In this case one variable (!ResultValue) is configured to be created. The !UniformRandomizer will later save it's result into this variable. !UniformRandomizer samples random numbers between Min and Max with the random number generator created by !RandomCreator. 14 14 The last operator is the !ResultsCollector which collects the value of our !ResultValue. This value can then be viewed in !HeuristicLab Optimizer in the results tab. 15 15