the conic optimiser MOSEK

Asked by weijie

Hello,all
I have trouble with MOSEK,How can I use it as external library in cpp files.
Thanks in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Vasileios Angelidakis
Solved:
Last query:
Last reply:
Revision history for this message
Jan Stránský (honzik) said :
#1

Hi,

> I have trouble

please be (much) more specific

> How can I use it as external library in cpp files.

include the external header files wherever you want to use the external code.
If the external library is header only, you are done.
If not, either add implementation files to the compilation or tell compiler to link a pre-compiled external library.

For better answer, please provide a better question

cheers
Jan

Revision history for this message
Best Vasileios Angelidakis (vsangelidakis) said :
#2

 Hi,

You can find an example of invoking MOSEK in [1], [2], where it was used in the past to solve a conic optimisation problem.
The MOSEK code in the Ig2_PP_PP_ScGeom scripts has been replaced by an in-house code now.

[1] https://gitlab.com/yade-dev/trunk/blob/db8b1b3eb2677828264471d28996d3f2f65569c4/pkg/dem/Ig2_PP_PP_ScGeom.cpp
[2] https://gitlab.com/yade-dev/trunk/blob/db8b1b3eb2677828264471d28996d3f2f65569c4/pkg/dem/Ig2_PP_PP_ScGeom.hpp

All the best,
Vasileios

Revision history for this message
weijie (amandajoe) said :
#3

Thank you.

Revision history for this message
weijie (amandajoe) said :
#4

Thanks Vasileios Angelidakis, that solved my question.