MCPcopy Create free account
hub / github.com/WinVector/Logistic / testLinMax

Method testLinMax

test/com/winvector/opt/imp/TestOpt.java:32–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 }
31
32 public void testLinMax() {
33 final LinFun f = new LinFun(3.2,-1.0);
34 final LinMax solver = new LinMax();
35 final double soln = solver.maximize(f,Double.NaN, 1.0,100);
36 assertTrue(Math.abs(f.x0-soln)<1.0e-2);
37 }
38
39 public void testLinMin() {
40 final LinFun f = new LinFun(3.2,01.0);

Callers

nothing calls this directly

Calls 1

maximizeMethod · 0.95

Tested by

no test coverage detected