Optimization : Optimization.Dispatcher.Internal Namespace

Dispatcher Class

Internal dispatcher base class.

public abstract class Dispatcher

Remarks

The internal dispatcher base class. Internal dispatchers are derived from this base class. The internal dispatcher can be used to dispatch simple tasks locally without going through the whole framework. The optimization will be run entirely within the application. This can be useful for evaluating algorithms on numerical problems for example. See for a generic implementation of an internal dispatcher see Optimization.Dispatcher.Internal.Internal. Implementations need to implement at least Optimization.Dispatcher.Internal.Evaluate.

Requirements

Namespace: Optimization.Dispatcher.Internal
Assembly: Optimization (in Optimization.dll)

Members

See Also: Inherited members from object.

Public Constructors

Default constructor.

Public Properties

[read-only]
Job Job . The job.

Public Methods

abstract
Evaluate (Solution) : Dictionary<string, double>
Evaluate solution.
static
GetDescription (Type) : string
Dispatcher description.
static
GetName (Type) : string
Dispatcher name.
Initialize (Job)
Initialize dispatcher.

Member Details

Dispatcher Constructor

Default constructor.

public Dispatcher ()

Remarks

Default constructor.

Requirements

Namespace: Optimization.Dispatcher.Internal
Assembly: Optimization (in Optimization.dll)

Evaluate Method

Evaluate solution.

public abstract Dictionary<string, double> Evaluate (Optimization.Solution solution)

Parameters

solution
The solution.

Returns

A dictionary of fitness values.

Remarks

Evaluate a solution. This is the main method that needs to be implemented by all internal dispatchers. The result is a dictionary containing one or more fitness values.

Requirements

Namespace: Optimization.Dispatcher.Internal
Assembly: Optimization (in Optimization.dll)

GetDescription Method

Dispatcher description.

public static string GetDescription (Type type)

Parameters

type
The dispatcher type.

Returns

Dispatcher description.

Remarks

Get the dispatcher description.

Requirements

Namespace: Optimization.Dispatcher.Internal
Assembly: Optimization (in Optimization.dll)

GetName Method

Dispatcher name.

public static string GetName (Type type)

Parameters

type
Dispatcher type.

Returns

Dispatcher name.

Remarks

Get the dispatcher name.

Requirements

Namespace: Optimization.Dispatcher.Internal
Assembly: Optimization (in Optimization.dll)

Initialize Method

Initialize dispatcher.

public virtual void Initialize (Optimization.Job job)

Parameters

job
The job.

Remarks

Initialize the dispatcher for the given job.

Requirements

Namespace: Optimization.Dispatcher.Internal
Assembly: Optimization (in Optimization.dll)

Job Property

The job.

public Optimization.Job Job { get; }

Value

The job.

Remarks

Get the job.

Requirements

Namespace: Optimization.Dispatcher.Internal
Assembly: Optimization (in Optimization.dll)