|
Pallas Solver
0.1
C++ Global Optimization Algorithms
|
Simple candidate generator that modifies the input by a random amount between +/- step_size.
More...
#include <step_function.h>


Public Member Functions | |
| DefaultStepFunction (double step_size) | |
| Constructor. More... | |
| void | Step (double *x, unsigned int num_parameters) |
Modifies x in place to a new random position. More... | |
Public Member Functions inherited from pallas::StepFunction | |
| virtual | ~StepFunction () |
| Destructor. | |
Simple candidate generator that modifies the input by a random amount between +/- step_size.
| step_size | double. Maximum magnitude a degree of freedom can be changed from its current position. |
| pallas::DefaultStepFunction::DefaultStepFunction | ( | double | step_size | ) |
Constructor.
| step_size | double. Maximum magnitude a degree of freedom can be changed from its current position. |
|
virtual |
Modifies x in place to a new random position.
The maximum difference between the old and new position for each degree of freedom is determined by the step_size.
| x | double*. The current state of the parameters. Modified in place to achieve new state. |
| num_parameters. | unsigned int. The number of parameters to modify in x. |
Implements pallas::StepFunction.
1.8.11