org.encog.examples.neural.boltzmann
Class BoltzTSP

java.lang.Object
  extended by 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


Field Summary
static int NEURON_COUNT
           
static int NUM_CITIES
           
 
Constructor Summary
BoltzTSP()
           
 
Method Summary
 void calculateWeights(org.encog.neural.thermal.BoltzmannMachine logic)
           
 void createCities()
           
 boolean isValidTour(org.encog.ml.data.specific.BiPolarNeuralData data)
           
 double lengthOfTour(org.encog.ml.data.specific.BiPolarNeuralData data)
           
static void main(String[] args)
           
 void run()
           
 double sqr(double x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

BoltzTSP

public BoltzTSP()
Method Detail

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.