Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
igl::mosek::MosekData Struct Reference

#include <src/libigl/igl/mosek/mosek_quadprog.h>

+ Collaboration diagram for igl::mosek::MosekData:

Public Member Functions

IGL_INLINE MosekData ()
 

Public Attributes

std::map< MSKiparame, int > intparam
 
std::map< MSKdparame, double > douparam
 

Detailed Description

Constructor & Destructor Documentation

◆ MosekData()

igl::mosek::MosekData::MosekData ( )
21{
22 // These are the default settings that worked well for BBW. Your miles may
23 // very well be kilometers.
24
25 // >1e0 NONSOLUTION
26 // 1e-1 artifacts in deformation
27 // 1e-3 artifacts in isolines
28 // 1e-4 seems safe
29 // 1e-8 MOSEK DEFAULT SOLUTION
30 douparam[MSK_DPAR_INTPNT_TOL_REL_GAP]=1e-8;
31#if MSK_VERSION_MAJOR >= 8
32 douparam[MSK_DPAR_INTPNT_QO_TOL_REL_GAP]=1e-12;
33#endif
34 // Force using multiple threads, not sure if MOSEK is properly destroying
35 //extra threads...
36#if MSK_VERSION_MAJOR >= 7
37 intparam[MSK_IPAR_NUM_THREADS] = 6;
38#elif MSK_VERSION_MAJOR == 6
39 intparam[MSK_IPAR_INTPNT_NUM_THREADS] = 6;
40#endif
41#if MSK_VERSION_MAJOR == 6
42 // Force turn off data check
43 intparam[MSK_IPAR_DATA_CHECK]=MSK_OFF;
44#endif
45 // Turn off presolving
46 // intparam[MSK_IPAR_PRESOLVE_USE] = MSK_PRESOLVE_MODE_OFF;
47 // Force particular matrix reordering method
48 // MSK_ORDER_METHOD_NONE cuts time in half roughly, since half the time is
49 // usually spent reordering the matrix
50 // !! WARNING Setting this parameter to anything but MSK_ORDER_METHOD_FREE
51 // seems to have the effect of setting it to MSK_ORDER_METHOD_NONE
52 // *Or maybe Mosek is spending a bunch of time analyzing the matrix to
53 // choose the right ordering method when really any of them are
54 // instantaneous
55 intparam[MSK_IPAR_INTPNT_ORDER_METHOD] = MSK_ORDER_METHOD_NONE;
56 // 1.0 means optimizer is very lenient about declaring model infeasible
57 douparam[MSK_DPAR_INTPNT_TOL_INFEAS] = 1e-8;
58 // Hard to say if this is doing anything, probably nothing dramatic
59 douparam[MSK_DPAR_INTPNT_TOL_PSAFE]= 1e2;
60 // Turn off convexity check
61 intparam[MSK_IPAR_CHECK_CONVEXITY] = MSK_CHECK_CONVEXITY_NONE;
62}
std::map< MSKiparame, int > intparam
Definition mosek_quadprog.h:27
std::map< MSKdparame, double > douparam
Definition mosek_quadprog.h:29

References douparam, and intparam.

Member Data Documentation

◆ douparam

std::map<MSKdparame,double> igl::mosek::MosekData::douparam

◆ intparam

std::map<MSKiparame,int> igl::mosek::MosekData::intparam

The documentation for this struct was generated from the following files: