chiark / gitweb /
add get/set subspace dimension for low-storage quasi-Newton methods
[nlopt.git] / octave / nlopt_optimize-mex.c
index 56ca0d98164b82e3d682ac3051646d63e7206a77..40af9011fe892fd8d55b580c450d7eec5e229ccb 100644 (file)
@@ -151,6 +151,7 @@ nlopt_opt make_opt(const mxArray *opts, unsigned n)
      nlopt_set_maxtime(opt, struct_val_default(opts, "maxtime", 0.0));
 
      nlopt_set_population(opt, struct_val_default(opts, "population", 0));
+     nlopt_set_subspace_dim(opt, struct_val_default(opts, "subspace_dim", 0));
 
      if (struct_arrval(opts, "initial_step", n, NULL))
          nlopt_set_initial_step(opt,