From c864e8af6eb5af053464c15e22064d63db0e9d0d Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Thu, 6 Mar 2014 16:41:51 -0500 Subject: [PATCH] update defunct test program tst.c --- direct/tstc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/direct/tstc.c b/direct/tstc.c index 2d97491..6d441cd 100644 --- a/direct/tstc.c +++ b/direct/tstc.c @@ -23,6 +23,7 @@ int main(int argc, char **argv) long int maxits = 0; int info; double minf; + int force_stop = 0; maxits = argc < 2 ? 100 : atoi(argv[1]); @@ -31,7 +32,10 @@ int main(int argc, char **argv) info = direct_optimize(tst_obj, NULL, n, l, u, x, &minf, maxits, 500, - 0, 0, 0, 0, DIRECT_UNKNOWN_FGLOBAL, 0, + 0, 0, 0, 0, + 0.0, -1.0, + &force_stop, + DIRECT_UNKNOWN_FGLOBAL, 0, stdout, DIRECT_GABLONSKY); printf("min f = %g at (%g,%g) after %d evals, return value %d\n", -- 2.30.2