// test_optmn.java initial tests, debug set to true public class test_optmn_dev { int n2 = 2; double xmin[] = {-1.0, -1.0}; double xmax[] = { 1.0, 1.0}; double x[] = {0.0, 0.0}; int maxcnt; double tol = 0.001; double yfinal = -1000.0; double step[] = new double[n2]; double y; int i; public test_optmn_dev() { System.out.println("test_optmn_dev.java running, debug=true"); optmn_dev OPT = new optmn_dev(); System.out.println("OPT instantiated"); maxcnt = 20; y = OPT.srchn( n2, // number of parameters x, // returned best found maxcnt, // maximum number of tries xmin, // minimum value for each x xmax); // maximum value for each x // f2); // optional future function to be evaluated System.out.println("f2 search value = "+y+" at:"); for(i=0; i