SDMP User Manual (ENG)
  • Introduction
    • Introduction to SDMP
  • Getting Started
    • Creating SDMP Project
  • Data Handling
    • Loading Input Data
      • Defining Input Data Schema
      • Creating Input Data
      • Loading Input Data
    • Retriving Data
    • Writing Output Data
      • Defining Output Data Schema
      • Adding Data Row
      • Writing to File
  • General Module
    • Overview
    • User Controls
      • StateControl
      • ActionControl
      • StateTransitionControl
      • BoundControl
      • ApproximationControl
      • SolverControl
      • EventControl
      • DataControl
      • LogControl
    • Data Model
      • State
      • StateActionMap
    • Example Problems
      • Car Resequencing Problem
      • Lot Sizing Problem
  • Routing Module
    • Overview
    • User Controls
      • CustomerControl
      • VehicleControl
    • Data Model
    • Example Problems
      • Vehicle Routing Problem
  • Scheduling Module
    • Overview
    • User Controls
    • Data Model
    • Example Problems
Powered by GitBook
On this page
  • OnBeginSolve
  • OnDataLoad
  • OnVisitState
  • OnVisitToState
  • OnStageChanged
  • OnDoneSolve
  1. General Module
  2. User Controls

EventControl

Controls for functions related to events that occur while performing the solver functions

OnBeginSolve

public override void OnBeginSolve()

Definition

A function called when the solver starts running.

Example (Default Logic)

public override void OnBeginSolve()
{

}

OnDataLoad

public override void OnDataLoad()

Definition

A function called immediately after data is loaded through GetData in DataControl.

Example (Default Logic)

public override void OnDataLoad() 
{

}

OnVisitState

public override void OnVisitState(State state)

Definition

A function that is called when the State is visited.

Parameter

Type
Description

State

The currently visited state.

Example (Default Logic)

public override void OnVisitState(State state)
{
  
}

OnVisitToState

public override void OnVisitToState(State fromState, State toState)

Definition

A function that is called when the state is transitioned through a defined action and visits the state of the next stage for the first time.

Parameters

Type
Description

State

The state before performing the action.

State

The state of the next stage visited after being transitioned through the action.

Example (Default Logic)

public override void OnVisitToState(State fromState, State toState)
{

}

OnStageChanged

public override void OnStageChanged(Stage stage)

Definition

A function that is called when the stage is changed.

Parameter

Type
Description

Stage

The changed stage.

Example (Default Logic)

public virtual void OnStageChanged(Stage stage) 
{
    
}

OnDoneSolve

public override void OnDoneSolve()

Definition

A function called when the solver finishes running.

Example (Default Logic)

public override void OnDoneSolve()
{

}
PreviousSolverControlNextDataControl

Last updated 1 year ago