Scheduling Problems¶
Flexible Flow Shop Problem (FFSP)¶
- class rl4co.envs.ffsp.FFSPEnv(num_stage, num_machine, num_job, min_time=0.1, max_time=1.0, batch_size=[50], **kwargs)[source]¶
Bases:
RL4COEnvBaseFlexible Flow Shop Problem (FFSP) environment. The goal is to schedule a set of jobs on a set of machines such that the makespan is minimized.
- Parameters:
Note
[IMPORTANT] This version of ffsp requires the number of machines in each stage to be the same
Initializes internal Module state, shared by both nn.Module and ScriptModule.
- get_reward(td, actions)[source]¶
Function to compute the reward. Can be called by the agent to compute the reward of the current state This is faster than calling step() and getting the reward from the returned TensorDict at each time for CO tasks
- Return type:
TensorDict
- name = 'ffsp'¶