C# Class SwarmOps.Optimizers.MESH

Optimizer that iterates over all possible combinations of parameters fitting a mesh of a certain size. This is particularly useful for displaying performance landscapes from meta-optimization, relating choices of control parameters to the performance of the optimizer.
Inheritance: Optimizer
Mostrar archivo Open project: DanWBR/dwsim3

Public Methods

Method Description
GetNumIterationsPerDim ( double parameters ) : int

Get parameter, Number of iterations per dimension.

MESH ( ) : System.Diagnostics

Construct the object.

MESH ( double mask, Problem problem ) : System.Diagnostics

Construct the object.

Optimize ( double parameters ) : Result

Perform one optimization run and return the best found solution.

Private Methods

Method Description
Recursive ( int curDim, int numIterationsPerDim, double delta, double &x, double &g, double &gFitness, bool &gFeasible ) : void

Helper function for recursive traversal of the mesh in a depth-first order.

RecursiveInner ( int curDim, int numIterationsPerDim, double delta, double &x, double &g, double &gFitness, bool &gFeasible ) : void

Helper function for recursive traversal of the mesh in a depth-first order.

Method Details

GetNumIterationsPerDim() public method

Get parameter, Number of iterations per dimension.
public GetNumIterationsPerDim ( double parameters ) : int
parameters double Optimizer parameters.
return int

MESH() public method

Construct the object.
public MESH ( ) : System.Diagnostics
return System.Diagnostics

MESH() public method

Construct the object.
public MESH ( double mask, Problem problem ) : System.Diagnostics
mask double Fix certain parameters or leave null.
problem Problem Problem to optimize.
return System.Diagnostics

Optimize() public method

Perform one optimization run and return the best found solution.
public Optimize ( double parameters ) : Result
parameters double Control parameters for the optimizer.
return Result