Skip to content

Start using scheptk

framinan edited this page Feb 5, 2022 · 21 revisions

scheptk contains two main packages:

  • scheptk where the main scheduling classes and its methods are included.
  • util contains a number of functions, some employed by the classes internally.

A typical program runs like this:

from scheptk.scheptk import *
from scheptk.scheptk util *

instance = SingleMachine('test_single.txt')
sequence = sorted_index_asc(instance.dd)
print('EDD sequence for the instance is: ', end='')
print(sequence)
completion_time = instance.SumCj(sequence)
print('The completion time of the sequence is {}'.format(completion_time))