Skip to content

Python parser for PSPLIB files (for resource constrained project scheduling problems)

Notifications You must be signed in to change notification settings

timotheehenry/PSPLIB_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PSPLIB_parser

PSPLIB is a library a standard way to define RCPSP (resource constrained project scheduling problems). More information here: https://www.om-db.wi.tum.de/psplib/library.html

Data files can be found here: https://www.om-db.wi.tum.de/psplib/data.html

How to use the PSPLIB_parser:

# read the parser code
filename = "PSPLIB_parser.py"
exec(open(filename).read())

# get path to the PSPLIB input file
filepath = "j301_1.sm"
njobs, nres, nperiods, jobs, res, periods, succs, durations, demands, capacities = PSPLIB_parser(filepath)

print(njobs, nperiods)
print(jobs, res, periods)
print(succs, durations, demands, capacities)

About

Python parser for PSPLIB files (for resource constrained project scheduling problems)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages