.. This file is part of Culebra is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Culebra is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Culebra. If not, see . This work is supported by projects PGC2018-098813-B-C31 and PID2022-137461NB-C31, both funded by the Spanish "Ministerio de Ciencia, Innovación y Universidades" and by the European Regional Development Fund (ERDF). :class:`culebra.fitness_func.tsp.PathLength` class ================================================== .. autoclass:: culebra.fitness_func.tsp.PathLength Class methods ------------- .. automethod:: culebra.fitness_func.tsp.PathLength.from_path .. automethod:: culebra.fitness_func.tsp.PathLength.from_tsplib .. automethod:: culebra.fitness_func.tsp.PathLength.load Properties ---------- .. autoproperty:: culebra.fitness_func.tsp.PathLength.distance .. autoproperty:: culebra.fitness_func.tsp.PathLength.fitness_cls .. autoproperty:: culebra.fitness_func.tsp.PathLength.heuristic .. autoproperty:: culebra.fitness_func.tsp.PathLength.index .. autoproperty:: culebra.fitness_func.tsp.PathLength.num_nodes .. autoproperty:: culebra.fitness_func.tsp.PathLength.num_obj .. autoproperty:: culebra.fitness_func.tsp.PathLength.obj_names .. autoproperty:: culebra.fitness_func.tsp.PathLength.obj_thresholds .. autoproperty:: culebra.fitness_func.tsp.PathLength.obj_weights Private properties ------------------ .. autoproperty:: culebra.fitness_func.tsp.PathLength._default_index .. autoproperty:: culebra.fitness_func.tsp.PathLength._default_similarity_threshold Methods ------- .. automethod:: culebra.fitness_func.tsp.PathLength.dump .. automethod:: culebra.fitness_func.tsp.PathLength.evaluate .. automethod:: culebra.fitness_func.tsp.PathLength.greedy_solution .. automethod:: culebra.fitness_func.tsp.PathLength.is_evaluable