// optmn_run.java initial tests, debug set to true public class optmn_run { 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 optmn_run() { System.out.println("optmn_run.java running, debug=true"); optmn OPT = new optmn(); System.out.println("OPT instantiated"); 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