StateControl

Controls for functions related to state

GetIntitialState

public override State GetInitialState()

Definition

Define the initial state.

Return

Type
Description
Default

The initial state.

Null

Example

public override State GetInitialState()
{
    CRPData data = DataManager.Instance.Data as CRPData;
    CRPState initState = new CRPState();

    initState.SetStateInfo(data.CRPFactory.Conveyors);

    return initState;
}

GetKey

Definition

Defines the key for the state.

Parameters

Type
Description

The state to define the key.

Return

Type
Description
Default

String

The key of the state.

Example (Default Logic)

GetFeasibleSolution

Definition

Define the logic to find a feasible solution based on a given State.

Parameters

Type
Description

The state to find a feasible solution.

Return

Type
Description
Default

Solution

The feasible solution.

Null

Example

CanPruneByOptimality

Definition

Determines whether a given state can be pruned without loss of optimality. If the state satisfies the prune conditions, it is excluded.

Parameters

Type
Description

The state to be judged.

ObjectiveFunctionType

The type of objective function in the problem.

Double

The tolerance used for the comparison condition when determining the optimal condition.

Type
Description
Default

Boolean

True: Prunes the state. False: Do not prune the state.

Example (Default Logic)

Last updated