|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.akutan.optimization.test.PortOptTest
public class PortOptTest
This JUnit test uses a simple test case from Fabozzi's book on Robust Optimization, p353, to test my ActiveSet and InteriorPoint solvers.
| Constructor Summary | |
|---|---|
PortOptTest(java.lang.String name)
Constructs |
|
| Method Summary | |
|---|---|
protected cern.colt.matrix.DoubleMatrix1D |
getReturns()
Returns the test case asset mean returns |
protected cern.colt.matrix.DoubleMatrix2D |
getVariances()
Returns the test case asset covariance matrix |
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testActiveSet()
Test case for the active set target return optimizer |
void |
testActiveSetUtility()
This test case for the Active Set fixed utility optimization code. |
void |
testInteriorPoints()
Test case for my quadratix interior points optimization |
void |
testInteriorPointUtility()
This test case from the Fabozzi book on Robust Optimization, p353, but needed to be modified so that we solve for a fixed utility - 5.061 |
| 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 |
| Constructor Detail |
|---|
public PortOptTest(java.lang.String name)
name - The name of the JUnit tests| Method Detail |
|---|
protected void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exception
protected void tearDown()
throws java.lang.Exception
tearDown in class junit.framework.TestCasejava.lang.Exceptionprotected cern.colt.matrix.DoubleMatrix1D getReturns()
protected cern.colt.matrix.DoubleMatrix2D getVariances()
public void testActiveSet()
public void testActiveSetUtility()
public void testInteriorPoints()
public void testInteriorPointUtility()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||