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

Method testLinMin

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

Source from the content-addressed store, hash-verified

37 }
38
39 public void testLinMin() {
40 final LinFun f = new LinFun(3.2,01.0);
41 final LinMax solver = new LinMax();
42 final double soln = solver.minimize(f,Double.NaN, 1.0,100);
43 assertTrue(Math.abs(f.x0-soln)<1.0e-2);
44 }
45
46 private static final class QuadFun implements VectorFn {
47 public final double sign;

Callers

nothing calls this directly

Calls 1

minimizeMethod · 0.95

Tested by

no test coverage detected