chiark / gitweb /
added get/set stochastic_population functions for greater control over stochastic...
[nlopt.git] / api / f77funcs.h
index 87ae76e8849f2a1967b7eec766e2f975ece11b86..045f5b930e8076dcbf00819aad911b37d45b0c1d 100644 (file)
@@ -103,3 +103,12 @@ void F77(nlosls,NLOSLS)(int *ideriv, int *inonderiv, int *maxeval)
      nlopt_algorithm nonderiv = (nlopt_algorithm) *inonderiv;
      nlopt_set_local_search_algorithm(deriv, nonderiv, *maxeval);
 }
+
+void F77(nlogsp,NLOGSP)(int *pop)
+{
+     *pop = nlopt_get_stochastic_population();
+}
+void F77(nlossp,NLOSSP)(const int *pop)
+{
+     nlopt_set_stochastic_population(*pop);
+}