From ef66456f46545d936b1154cdb4cdc3ce582f9729 Mon Sep 17 00:00:00 2001 From: Yanjun Date: Wed, 4 Oct 2023 11:31:08 +0100 Subject: [PATCH] mosekParam --- src/base/solvers/entropicFBA/mosekParamSetEFBA.m | 6 +++--- src/base/solvers/entropicFBA/solveCobraEP.m | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/base/solvers/entropicFBA/mosekParamSetEFBA.m b/src/base/solvers/entropicFBA/mosekParamSetEFBA.m index 14e5049439..b0b013cfd6 100644 --- a/src/base/solvers/entropicFBA/mosekParamSetEFBA.m +++ b/src/base/solvers/entropicFBA/mosekParamSetEFBA.m @@ -37,19 +37,19 @@ %Dual feasibility tolerance used by the interior-point optimizer for conic problems. %Default:1.0e-8 %Accepted: [0.0; 1.0] -param.MSK_DPAR_INTPNT_CO_TOL_DFEAS = 1.0e-11; +param.MSK_DPAR_INTPNT_CO_TOL_DFEAS = 1.0e-11; %MSK_DPAR_INTPNT_CO_TOL_PFEAS %Primal feasibility tolerance used by the interior-point optimizer for conic problems. %Default: 1.0e-8 % Accepted: [0.0; 1.0] -param.MSK_DPAR_INTPNT_CO_TOL_PFEAS = 1.0e-11; +param.MSK_DPAR_INTPNT_CO_TOL_PFEAS = 1.0e-10; %was 1e-11 may be too aggressive -RF %MSK_DPAR_INTPNT_CO_TOL_REL_GAP %Relative gap termination tolerance used by the interior-point optimizer for conic problems. %Default:1.0e-8 %Accepted: [0.0; 1.0] -param.MSK_DPAR_INTPNT_CO_TOL_REL_GAP = 1.0e-11; +param.MSK_DPAR_INTPNT_CO_TOL_REL_GAP = 1.0e-9; %was 1e-11 may be too aggressive -RF %useful for ensuring dual feasibility is as good as primal % MSK_IPAR_INTPNT_MAX_ITERATIONS diff --git a/src/base/solvers/entropicFBA/solveCobraEP.m b/src/base/solvers/entropicFBA/solveCobraEP.m index 11dac20329..b3c1cb459b 100644 --- a/src/base/solvers/entropicFBA/solveCobraEP.m +++ b/src/base/solvers/entropicFBA/solveCobraEP.m @@ -630,7 +630,7 @@ Oz1 = sparse(size(A,1),quadCone1); Ox1 = sparse(p,varNotNorm); - Ip = spdiag(ones(p,1)); + Ip = spdiags(ones(p,1)); Opd = sparse(p,nExpCone); Opq = sparse(p,nQuadCone); Op1 = sparse(p,quadCone1);