specless.factory.tspbuilder.AircraftTurnaroundTSPBuilder

class specless.factory.tspbuilder.AircraftTurnaroundTSPBuilder(T, initial_locations, services, position_label_to_location, ignoring_obs_keys=[])[source]

Bases: Builder

Build a TSP Problem from Aircraft Turnaround Minigrid

Methods

get_all_pair_shortest_paths

Must Compute the Cost Between Services & Service Cost.

get_all_pair_state_shortest_paths

load_YAML_config_data

reads in the object configuration parameters from a YAML config file

location_to_state

service_position_label_to_state

state_to_location

to_controls

to_tsp_nodes_and_costs

tour_to_services

Attributes

ignoring_obs_keys

Service to TSP Node

service_name_to_node

Uncontrollable

uncontrollables

TS Nodes Service Time

service_path

all pair shortest paths

all_pair_shortest_paths

Between States

all_pair_state_shortest_paths

For convenience

__call__(T: MinigridTransitionSystem, specification: TimedPartialOrder, initial_states=None, ignoring_obs_keys: List[str] = [], uniquelabel: bool = True, **kwargs) TSPWithTPO[source]

Translate a MiniGrid Transition System to a TSP with

Returns:

_description_

Return type:

_type_

all_pair_shortest_paths

Between States

all_pair_state_shortest_paths

For convenience

get_all_pair_shortest_paths(weight_key: str = 'weight')[source]

Must Compute the Cost Between Services & Service Cost.

Parameters:

weight_key (str, optional) – _description_. Defaults to ‘weight’.

ignoring_obs_keys

Service to TSP Node

static load_YAML_config_data(config_file_name: str) dict

reads in the object configuration parameters from a YAML config file

Parameters:

config_file_name ((filepath) string) – The YAML configuration file name

Returns:

configuration data dictionary for the simulation

Return type:

dict

service_name_to_node

Uncontrollable

service_path

all pair shortest paths

uncontrollables

TS Nodes Service Time