read_psplib_file

Read the project and schedule data from a file in the PSPLIB format.

The PSPLIB format contains information for project activities, precedence relations, renewable and nonrenewable resources, and more. Note that only information for project activity durations, precedence relations and renewable resources is read (similar to the Patterson format reader in the P2Reader:read_patterson_file function) while the rest is ignored. More information on the data format structure can be found here. This function returns 0/1 if the file read was a failure/successful.

Parameters: 
I/O Type Name Description
input string filename Name of the psplib file
output integer success 0 (failure) or 1 (successful)
Example: 
function ()
        io.write('\n')
end
Class: 
P2Reader