Explorar o código

default params for version 8

Former-commit-id: fbf7a33ba75155a104adc4419d3525c05e78c776
Alec Jacobson %!s(int64=7) %!d(string=hai) anos
pai
achega
c7371050fa
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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-8 MOSEK DEFAULT SOLUTION
   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
   //extra threads...
 #if MSK_VERSION_MAJOR >= 7