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
  1. General Module
  2. User Controls

DataControl

Controls for functions related to data processing

PreviousEventControlNextLogControl

Last updated 1 year ago

GetData

public override IData GetData()

Definition

Define the data required to run the solver.

Return

Type
Description
Default

IData

Data required during the process of running the solver.

Null

Example

public override IData GetData()
{
    IData data = DataHelper.CreateData();

    return data;
}

See CreateData function in DataHelper below.

public static IData CreateData() 
{
    CRPData data = new CRPData();

    data.SetupCostMatrix = GetSetupCostMatrix();

    List<CRPJob> jobs = CreateJobs();
    Dictionary<int, CRPConveyor> conveyors = CreateConveyors(jobs);
    CRPFactory factory = CreateFactory(conveyors);
    
    data.CRPFactory = factory;
    return data;
}
⭐