Instance Generator

The instance generator is a tool that generates JSP instances. The instances are generated based on the parameters provided to the generator function.

jsp_instance_utils.jsp_instance_generator.generate_jsp_instance(n_jobs: int, n_machines: int, min_processing_time: int = 2, max_processing_time: int = 20) -> (<built-in function array>, <built-in function array>)

generates a singe jsp instance and saves it in Taillard-specification (http://jobshop.jjvh.nl/explanation.php) and saves it in a subdirectory (according to the size of the jsp) in the custom instance folder. See jss_utils.PATHS

the order of the machines for the jobs and the duration of the task within a job are chosen randomly.

the name is generated by the jss_util.name_generator.generate_name-fuction.

Parameters:
  • n_jobs – number of jobs

  • n_machines – number of machines

  • min_processing_time – minimal duration of a task within a job

  • max_processing_time – maximal duration of a task within a job

Returns:

jsp as numpy array, Taillard style jsp numpy array