Repository: POptUS/IBCDFO (language: python)

Issue:
Make the APIs of pounders.py and pounders.m agree.
The same arguments should be passed to both. 
Renaming matlab directory to m/



Discussion / hints:

Fix patch:
diff --git a/pounders/matlab/bmpts.m b/pounders/m/bmpts.m
similarity index 100%
rename from pounders/matlab/bmpts.m
rename to pounders/m/bmpts.m
diff --git a/pounders/matlab/boxline.m b/pounders/m/boxline.m
similarity index 100%
rename from pounders/matlab/boxline.m
rename to pounders/m/boxline.m
diff --git a/pounders/matlab/bqmin.m b/pounders/m/bqmin.m
similarity index 100%
rename from pounders/matlab/bqmin.m
rename to pounders/m/bqmin.m
diff --git a/pounders/matlab/checkinputss.m b/pounders/m/checkinputss.m
similarity index 100%
rename from pounders/matlab/checkinputss.m
rename to pounders/m/checkinputss.m
diff --git a/pounders/matlab/formquad.m b/pounders/m/formquad.m
similarity index 100%
rename from pounders/matlab/formquad.m
rename to pounders/m/formquad.m
diff --git a/pounders/matlab/phi2eval.m b/pounders/m/phi2eval.m
similarity index 100%
rename from pounders/matlab/phi2eval.m
rename to pounders/m/phi2eval.m
diff --git a/pounders/matlab/pounders.m b/pounders/m/pounders.m
similarity index 99%
rename from pounders/matlab/pounders.m
rename to pounders/m/pounders.m
index efb36423..ce3a0d14 100644
--- a/pounders/matlab/pounders.m
+++ b/pounders/m/pounders.m
@@ -53,10 +53,8 @@
 % formquad, phi2eval  :  Forms interpolation set and fits quadratic models
 % bmpts, boxline : Generates feasible model-improving points
 function [X,F,flag,xkin] = ...
-    pounders(fun,X0,n,npmax,nfmax,gtol,delta,nfs,m,F0,xkin,L,U,printf)
+    pounders(fun,X0,n,npmax,nfmax,gtol,delta,nfs,m,F0,xkin,L,U,printf,spsolver)
 
-% Choose your solver:
-global spsolver
 %spsolver=1; % Stefan's crappy solver
 if spsolver == 2
     addpath('../../minq/minq5/matlab'); % Arnold Neumaier's minq5


Test patch:
diff --git a/pounders/matlab/tests/benchmark_pounders.m b/pounders/m/tests/benchmark_pounders.m
similarity index 97%
rename from pounders/matlab/tests/benchmark_pounders.m
rename to pounders/m/tests/benchmark_pounders.m
index 3ba24506..e061f7ad 100644
--- a/pounders/matlab/tests/benchmark_pounders.m
+++ b/pounders/m/tests/benchmark_pounders.m
@@ -2,7 +2,7 @@
 % More and Wild SIOPT paper "Benchmarking derivative-free optimization algorithms"
 function [] = benchmark_pounders()
 
-global BenDFO spsolver
+global BenDFO
 
 BenDFO.probtype = 'smooth';
 spsolver = 1;
@@ -56,7 +56,7 @@
     delta = 0.1;
     printf = 0;
 
-    [X,F,flag,xkin] = pounders(@calfun_wrapper,X0,n,npmax,nfmax,gtol,delta,nfs,m,F0,xkin,L,U,printf);
+    [X,F,flag,xkin] = pounders(@calfun_wrapper,X0,n,npmax,nfmax,gtol,delta,nfs,m,F0,xkin,L,U,printf,spsolver);
 
     assert(size(X,1) <= nfmax, "POUNDERs grew the size of X")
     if re_check