chiark / gitweb /
rename subspace_dim to vector_storage, since not necessarily a subspace (and can...
[nlopt.git] / api / optimize.c
index 8c8612c3cdd86da6f9ac8d1673d07b45fc8038c2..e36d9e306f3c3d361e5b4bde1c4d381541420991 100644 (file)
@@ -350,12 +350,12 @@ static nlopt_result nlopt_optimize_(nlopt_opt opt, double *x, double *minf)
 
         case NLOPT_LD_LBFGS: 
              return luksan_plis(ni, f, f_data, lb, ub, x, minf, 
-                                &stop, opt->subspace_dim);
+                                &stop, opt->vector_storage);
 
         case NLOPT_LD_VAR1: 
         case NLOPT_LD_VAR2: 
              return luksan_plip(ni, f, f_data, lb, ub, x, minf, 
-                                &stop, opt->subspace_dim,
+                                &stop, opt->vector_storage,
                                 algorithm == NLOPT_LD_VAR1 ? 1 : 2);
 
         case NLOPT_LD_TNEWTON: 
@@ -363,7 +363,7 @@ static nlopt_result nlopt_optimize_(nlopt_opt opt, double *x, double *minf)
         case NLOPT_LD_TNEWTON_PRECOND: 
         case NLOPT_LD_TNEWTON_PRECOND_RESTART: 
              return luksan_pnet(ni, f, f_data, lb, ub, x, minf,
-                                &stop, opt->subspace_dim,
+                                &stop, opt->vector_storage,
                                 1 + (algorithm - NLOPT_LD_TNEWTON) % 2,
                                 1 + (algorithm - NLOPT_LD_TNEWTON) / 2);