org.akutan.optimization.test
Class SimulatedAnnealingTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.akutan.optimization.test.SimulatedAnnealingTest
All Implemented Interfaces:
junit.framework.Test

public class SimulatedAnnealingTest
extends junit.framework.TestCase


Field Summary
protected  int _n
          Number of assets for tests
protected  int _order
          Number of assets in solution
protected  SASolution _sln
          Solution to setup and teardown
 
Constructor Summary
SimulatedAnnealingTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testAddAsset()
           
 void testCase()
           
 void testCase2()
           
 void testMove()
           
 void testRemoveAsset()
           
 void testRescale()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_sln

protected SASolution _sln
Solution to setup and teardown


_n

protected final int _n
Number of assets for tests

See Also:
Constant Field Values

_order

protected final int _order
Number of assets in solution

See Also:
Constant Field Values
Constructor Detail

SimulatedAnnealingTest

public SimulatedAnnealingTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testAddAsset

public void testAddAsset()

testRemoveAsset

public void testRemoveAsset()

testRescale

public void testRescale()

testMove

public void testMove()

testCase

public void testCase()
              throws java.lang.Exception
Throws:
java.lang.Exception

testCase2

public void testCase2()
               throws java.lang.Exception
Throws:
java.lang.Exception