tsp

package
Version: v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LIB

func LIB(w io.Writer, n int, weights func(i, j int) int) (err error)

LIB writes to w a the TSP problem with the given integer weights in a TSPLIB compatible format. The number of vertices (also called the dimension) is given by n and the function weights returns the weight of the edge from i to j (which is the same as j to i).

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL