chiark / gitweb /
more nlopt_opt introspection
authorstevenj <stevenj@alum.mit.edu>
Mon, 5 Apr 2010 01:34:43 +0000 (21:34 -0400)
committerstevenj <stevenj@alum.mit.edu>
Mon, 5 Apr 2010 01:34:43 +0000 (21:34 -0400)
darcs-hash:20100405013443-c8de0-811bb252f87584b2af1919a53eab9566096b5829.gz

api/nlopt.h
api/options.c

index 3a9117738a01c72e19789f73dd86a3824bb94b6e..6d19f14c2474a660298606ad796f363a375e762e 100644 (file)
@@ -174,6 +174,9 @@ NLOPT_EXTERN nlopt_result nlopt_optimize(nlopt_opt opt, double *x,
 NLOPT_EXTERN nlopt_result nlopt_set_min_objective(nlopt_opt opt, nlopt_func f, 
                                                  void *f_data);
 
+NLOPT_EXTERN nlopt_algorithm nlopt_get_algorithm(const nlopt_opt opt);
+NLOPT_EXTERN int nlopt_get_dimension(const nlopt_opt opt);
+
 /* constraints: */
 
 NLOPT_EXTERN nlopt_result nlopt_set_lower_bounds(nlopt_opt opt, 
index 6474c44a373b2e26d4783e57a2170656308f3263..50fcfa42d55b6ec6e66939a2754aa8b15e30e61b 100644 (file)
@@ -344,6 +344,11 @@ GETSET(maxtime, double, maxtime)
 
 /*************************************************************************/
 
+GET(algorithm, nlopt_algorithm, algorithm)
+GET(dimension, int, n)
+
+/*************************************************************************/
+
 nlopt_result nlopt_set_local_optimizer(nlopt_opt opt,
                                       const nlopt_opt local_opt)
 {