Home How to use fmincon in C++
Reply: 0

How to use fmincon in C++

user1082
1#
user1082 Published in May 24, 2018, 11:22 pm

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?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.347333 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO