![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
Definition at line 29 of file jobshop_scheduling_parser.h.
#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. | |
| 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.
| Enumerator | |
|---|---|
| UNDEFINED | |
| JSSP | |
| TAILLARD | |
| FLEXIBLE | |
| SDST | |
| TARDINESS | |
| PSS | |
| EARLY_TARDY | |
Definition at line 31 of file jobshop_scheduling_parser.h.
|
default |
| 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.
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.
|
inline |
Returns the loaded problem.
Definition at line 65 of file jobshop_scheduling_parser.h.