SDMP User Manual (KOR)
  • 개요
    • SDMP 소개
  • 프로젝트 생성
    • 프로젝트 생성
  • 데이터 핸들링
    • 입력 데이터 로딩
      • 입력 데이터 스키마 정의
      • 입력 데이터 정의
      • 입력 데이터 로딩
    • 데이터 조회
    • 출력 데이터 쓰기
      • 출력 데이터 스키마 정의
      • 출력 데이터 추가
      • 파일 출력
  • General Module
    • 모듈 개요
    • 사용자 컨트롤
      • StateControl
      • ActionControl
      • StateTransitionControl
      • BoundControl
      • ApproximationControl
      • SolverControl
      • EventControl
      • DataControl
      • LogControl
    • 데이터 모델
      • State
    • 활용 사례
      • Car Resequencing Problem
      • Lot Sizing Problem
  • Routing Module
    • 모듈 개요
    • 사용자 컨트롤
      • CustomerControl
      • VehicleControl
    • 데이터 모델
    • 활용 사례
      • Vehicle Routing Problem
  • Scheduling Module
    • 모듈 개요
    • 사용자 컨트롤
    • 데이터 모델
    • 활용 사례
Powered by GitBook
On this page
  • GetRunMaxTime
  • GetObjectiveFunctionType
  • GetProjectName
  • GetOutputDirectoryPath
  1. General Module
  2. 사용자 컨트롤

SolverControl

Solver와 관련된 전반적인 설정 등을 담당하는 컨트롤

GetRunMaxTime

public override int GetRunMaxTime()

정의

Solver의 최대 구동 시간을 설정합니다. (단위: 초)

반환

Type
Description
Default

Integer

Solver의 최대 구동 시간 입니다. (단위: 초)

Int32.MaxValue

예제 (Default Logic)

public override int GetRunMaxTime() 
{
    return Int32.MaxValue;
}

GetObjectiveFunctionType

public override ObjectiveFunctionType GetObjectiveFuntionType(IRunConfig runConfig)

정의

문제의 목적함수 타입을 설정합니다. (Maximize 또는 Minimize)

매개 변수

Type
Description

IRunConfig

구동 정보를 나타내는 IRunConfig 객체입니다.

반환

Type
Description
Default

ObjectiveFunctionType

목적함수 타입입니다.

예제 (Default Logic)

public override ObjectiveFunctionType GetObjectiveFuntionType(IRunConfig runConfig)
{
    ObjectiveFunctionType objectiveFunctionType = UtilityHelper.StringToEnum(runConfig.OBJECTIVE_FUNCTION_TYPE, ObjectiveFunctionType.Minimize);

    return objectiveFunctionType;
}

GetProjectName

public override string GetProjectName()

정의

현재 프로젝트의 이름을 설정합니다.

반환

Type
Description
Default

String

프로젝트 이름입니다.

예시 (Default Logic)

public override string GetProjectName()
{
    return Assembly.GetExecutingAssembly().GetName().Name;
}

GetOutputDirectoryPath

public override string GetOutputDirectoryPath(string solverName)

정의

출력 데이터를 저장할 디렉터리를 설정합니다.

별도로 경로를 설정하지 않을 경우, 현재 프로젝트 경로에 "Output" 디렉터리를 생성하여 저장합니다.

반환

Type
Description
Default

String

출력 데이터를 저장할 디렉터리 경로입니다.

Null

예제 (Default Logic)

public override string GetOutputDirectoryPath(string solverName) 
{
    return null;
}
PreviousApproximationControlNextEventControl

Last updated 1 year ago

Default Logic 참조
Default Logic 참조