I want to use fmincon in C++, then I export the matlab function, fmincon, into C++ source files and dynamic link library. I read the exported source code of C++, but I don't know how to use this function in C++. In matlab, fmincon looks like below:
fmincon(fun,x0,A,b,Aeq,beq,lb,ub,nonlcon,options)
but in the C++ code, fmincon looks like:
void MW_CALL_CONV fmincon(int nargout, mwArray& o0, mwArray& o1, mwArray& o2, mwArray&
o3, mwArray& o4, mwArray& o5, mwArray& o6, const mwArray& i0,
const mwArray& i1, const mwArray& i2, const mwArray& i3, const
mwArray& i4, const mwArray& i5, const mwArray& i6, const
mwArray& i7, const mwArray& i8, const mwArray& i9, const
mwArray& varargin)
the arguments in matlab are not corresponding with the arguments in C++. So how to use fmincon in C++? May someone help me?
