Parcourir la source

default params for version 8

Former-commit-id: fbf7a33ba75155a104adc4419d3525c05e78c776
Alec Jacobson il y a 7 ans
Parent
commit
c7371050fa
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      include/igl/mosek/mosek_quadprog.cpp

+ 3 - 0
include/igl/mosek/mosek_quadprog.cpp

@@ -28,6 +28,9 @@ igl::mosek::MosekData::MosekData()
   // 1e-4 seems safe
   // 1e-4 seems safe
   // 1e-8 MOSEK DEFAULT SOLUTION
   // 1e-8 MOSEK DEFAULT SOLUTION
   douparam[MSK_DPAR_INTPNT_TOL_REL_GAP]=1e-8;
   douparam[MSK_DPAR_INTPNT_TOL_REL_GAP]=1e-8;
+#if MSK_VERSION_MAJOR >= 8
+  douparam[MSK_DPAR_INTPNT_QO_TOL_REL_GAP]=1e-12;
+#endif
   // Force using multiple threads, not sure if MOSEK is properly destorying
   // Force using multiple threads, not sure if MOSEK is properly destorying
   //extra threads...
   //extra threads...
 #if MSK_VERSION_MAJOR >= 7
 #if MSK_VERSION_MAJOR >= 7