Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::scheduling::jssp::JsspParser Class Reference

#include <jobshop_scheduling_parser.h>

Public Types

enum  ProblemType {
  UNDEFINED , JSSP , TAILLARD , FLEXIBLE ,
  SDST , TARDINESS , PSS , EARLY_TARDY
}
 
enum  ParserState {
  START , JOB_COUNT_READ , MACHINE_COUNT_READ , SEED_READ ,
  JOB_ID_READ , JOB_LENGTH_READ , JOB_READ , NAME_READ ,
  JOBS_READ , SSD_READ , MACHINE_READ , PARSING_ERROR ,
  DONE
}
 

Public Member Functions

 ~JsspParser ()=default
 
bool ParseFile (absl::string_view filename)
 
const JsspInputProblem & problem () const
 Returns the loaded problem.
 

Detailed Description

Definition at line 29 of file jobshop_scheduling_parser.h.

Member Enumeration Documentation

◆ ParserState

Enumerator
START 
JOB_COUNT_READ 
MACHINE_COUNT_READ 
SEED_READ 
JOB_ID_READ 
JOB_LENGTH_READ 
JOB_READ 
NAME_READ 
JOBS_READ 
SSD_READ 
MACHINE_READ 
PARSING_ERROR 
DONE 

Definition at line 42 of file jobshop_scheduling_parser.h.

◆ ProblemType

Enumerator
UNDEFINED 
JSSP 
TAILLARD 
FLEXIBLE 
SDST 
TARDINESS 
PSS 
EARLY_TARDY 

Definition at line 31 of file jobshop_scheduling_parser.h.

Constructor & Destructor Documentation

◆ ~JsspParser()

operations_research::scheduling::jssp::JsspParser::~JsspParser ( )
default

Member Function Documentation

◆ ParseFile()

bool operations_research::scheduling::jssp::JsspParser::ParseFile ( absl::string_view filename)

Parses a file to load a jobshop problem. Tries to auto detect the file format.

Try to detect the type of the data file.

  • fjs suffix -> Flexible Jobshop
  • txt suffix -> Taillard or time dependent scheduling.

We use a temporary string as open source protobufs do not accept set(string_view).

Definition at line 60 of file jobshop_scheduling_parser.cc.

◆ problem()

const JsspInputProblem & operations_research::scheduling::jssp::JsspParser::problem ( ) const
inline

Returns the loaded problem.

Definition at line 65 of file jobshop_scheduling_parser.h.


The documentation for this class was generated from the following files: