()
| 85 | } |
| 86 | |
| 87 | public void testNormGH() { |
| 88 | // norm penalty should put max at 0 (and max value should be 0) |
| 89 | final int dim = 3; |
| 90 | final VectorFn f = new NormPenalty(dim,1.0e-2); |
| 91 | final double[] x = new double[dim]; |
| 92 | x[1] = 0.1; |
| 93 | x[2] = -0.1; |
| 94 | testGradAndHessian(f,x,1.0e-6,1.0e-5); |
| 95 | } |
| 96 | |
| 97 | public void testNormOpt() { |
| 98 | // norm penalty should put max at 0 (and max value should be 0) |
nothing calls this directly
no test coverage detected