org.encog.examples.neural.boltzmann
Class BoltzTSP
java.lang.Object
org.encog.examples.neural.boltzmann.BoltzTSP
public class BoltzTSP
- extends Object
Use a Boltzmann machine to solve the Traveling Salesman Problem.
This is based on a an example by Karsten Kutza,
written in C on 1996-01-24.
http://www.neural-networks-at-your-fingertips.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NUM_CITIES
public static final int NUM_CITIES
- See Also:
- Constant Field Values
NEURON_COUNT
public static final int NEURON_COUNT
- See Also:
- Constant Field Values
BoltzTSP
public BoltzTSP()
sqr
public double sqr(double x)
createCities
public void createCities()
isValidTour
public boolean isValidTour(org.encog.ml.data.specific.BiPolarNeuralData data)
lengthOfTour
public double lengthOfTour(org.encog.ml.data.specific.BiPolarNeuralData data)
calculateWeights
public void calculateWeights(org.encog.neural.thermal.BoltzmannMachine logic)
run
public void run()
main
public static void main(String[] args)
Copyright © 2011. All Rights Reserved.