Pallas Solver  0.1
C++ Global Optimization Algorithms
Public Member Functions | List of all members
pallas::DefaultStepFunction Class Reference

Simple candidate generator that modifies the input by a random amount between +/- step_size. More...

#include <step_function.h>

Inheritance diagram for pallas::DefaultStepFunction:
Inheritance graph
[legend]
Collaboration diagram for pallas::DefaultStepFunction:
Collaboration graph
[legend]

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.
 

Detailed Description

Simple candidate generator that modifies the input by a random amount between +/- step_size.

Parameters
step_sizedouble. Maximum magnitude a degree of freedom can be changed from its current position.

Constructor & Destructor Documentation

pallas::DefaultStepFunction::DefaultStepFunction ( double  step_size)

Constructor.

Parameters
step_sizedouble. Maximum magnitude a degree of freedom can be changed from its current position.

Member Function Documentation

void pallas::DefaultStepFunction::Step ( double *  x,
unsigned int  num_parameters 
)
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.

Parameters
xdouble*. 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.


The documentation for this class was generated from the following files: