Source

BayesOpt / matlab / bayesoptextras.h

Diff from to

matlab/bayesoptextras.h

 
   if (val) {
     if( mxIsChar(val) ) {
-      if ( mxGetString(val, result, 1+(mxGetM(val) * mxGetN(val)))) {
-	  mexErrMsgTxt("Error loading string.");
-	}
+      result = mxArrayToString(val);
     } else {
       mexErrMsgTxt("Method name must be a string");
     }
   struct_size(params,"n_inner_iterations", &parameters.n_inner_iterations);
   struct_size(params, "n_init_samples", &parameters.n_init_samples);
   struct_size(params, "n_iter_relearn", &parameters.n_iter_relearn);
+  struct_size(params, "init_method", &parameters.init_method);
   
   struct_size(params, "verbose_level", &parameters.verbose_level);
   struct_string(params, "log_filename", parameters.log_filename);
-
+  
   struct_string(params, "surr_name", parameters.surr_name);
 
   struct_value(params, "sigma_s", &parameters.sigma_s);