()
| 65 | |
| 66 | |
| 67 | public void testNormV() { |
| 68 | // norm penalty should put max at 0 (and max value should be 0) |
| 69 | final int dim = 3; |
| 70 | final VectorFn f = new NormPenalty(dim,1.0e-2); |
| 71 | final double[] x = new double[dim]; |
| 72 | final VEval f0 = f.eval(x,false,false); |
| 73 | assertTrue(Math.abs(f0.fx)<1.0e-12); |
| 74 | } |
| 75 | |
| 76 | public void testNormV2() { |
| 77 | // norm penalty should put max at 0 (and max value should be 0) |