specless.specification.timed_partial_order.generate_random_constraints

specless.specification.timed_partial_order.generate_random_constraints(nodes: ~typing.List[int], initial_nodes: ~typing.List[int], edge_costs: ~typing.List[~typing.List[float]], num_constraint: int | float, node_costs: ~typing.List[float] | None = None, time_gap_callback: ~typing.Callable = <function fixed_time_gap>)[source]

Generate random constraints to generate a TPO Assume nodes includes the “initial nodes (depot)” which starts from 0.