pyepo.data.tsp ============== .. py:module:: pyepo.data.tsp .. autoapi-nested-parse:: Synthetic data for traveling salesman problem Functions --------- .. autoapisummary:: pyepo.data.tsp.genData Module Contents --------------- .. py:function:: genData(num_data, num_features, num_nodes, deg=1, noise_width=0, seed=135) A function to generate synthetic data and features for travelling salesman :param num_data: number of data points :type num_data: int :param num_features: dimension of features :type num_features: int :param num_nodes: number of nodes :type num_nodes: int :param deg: data polynomial degree :type deg: int :param noise_width: half witdth of data random noise :type noise_width: float :param seed: random seed :type seed: int :returns: data features (np.ndarray), costs (np.ndarray) :rtype: tuple