starling_sim.basemodel.algorithms.pal_zhang_GCH

Module Contents

Classes

PalZhangGCH

This class describes a generic structure for the algorithms of the simulation

class starling_sim.basemodel.algorithms.pal_zhang_GCH.PalZhangGCH(simulation_model, operator, verb=False)

Bases: starling_sim.basemodel.algorithms.algorithm.Algorithm

This class describes a generic structure for the algorithms of the simulation

NAME = 'PalZhangGCH'
SCHEMA
setup_new_run()
run()

Core method of the Algorithm class, called to run the algorithm.

This method must be implemented for all algorithms.

Algorithm inputs are accessed in the class attributes.

Returns:

None, the algorithm result is stored in self.result

breaking_condition(end_time)
compute_operations_needed()
compute_station_target_stock(station_id)
compute_station_variation(station_id)
maximum_operations()
select_next_neighbor(current_station_id, max_operations)
append_depot_to_planning()
init_demand_dict()