Skip to content

Commit

Permalink
update back
Browse files Browse the repository at this point in the history
  • Loading branch information
LongxingTan committed Sep 16, 2023
1 parent 5b9dbb2 commit 5f6079f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lekin/solver/construction_heuristics/backward.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from lekin.lekin_struct.resource import ResourceCollector
from lekin.lekin_struct.route import RouteCollector
from lekin.lekin_struct.timeslot import TimeSlot

from lekin.solver.construction_heuristics.base import BaseScheduler


Expand All @@ -20,7 +19,6 @@ def __init__(
route_collector: RouteCollector = None,
**kwargs,
) -> None:

self.job_collector = job_collector
self.resource_collector = resource_collector
self.route_collector = route_collector
Expand Down Expand Up @@ -51,7 +49,7 @@ def scheduling_job(self, job: Job, resource_collector, route_collector: RouteCol

op_earliest_start = 0 # forward constraint
op_latest_end = 150 # backward constraint

for operation in job.operations[::-1]: # inverse for backward
logging.info(f"\tAssign Operation {operation.operation_id} of Job {job.job_id}")
chosen_resource, chosen_timeslot_hour = self.find_best_resource_and_timeslot_for_operation(
Expand Down

0 comments on commit 5f6079f

Please sign in to comment.