ml4co_kit.generator.routing.tsp.op

Generator for Orienteering Problem (OP) instances.

Classes

OPGenerator(distribution_type, precision, ...)

Generator for Orienteering Problem (OP) instances.

OP_TYPE(value[, names, module, qualname, ...])

Define the OP types as an enumeration.

class ml4co_kit.generator.routing.tsp.op.OPGenerator(distribution_type: ~ml4co_kit.generator.routing.tsp.op.OP_TYPE = OP_TYPE.UNIFORM, precision: ~numpy.float32 | ~numpy.float64 = <class 'numpy.float32'>, nodes_num: int = 50, max_length: float = 3.0, uniform_scale: tuple = (1, 100))[source]

Bases: RoutingGeneratorBase

Generator for Orienteering Problem (OP) instances.

class ml4co_kit.generator.routing.tsp.op.OP_TYPE(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: str, Enum

Define the OP types as an enumeration.

CONSTANT = 'constant'
DISTANCE = 'distance'
UNIFORM = 'uniform'