Skip to content

Commit

Permalink
mosekParam
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanjun2021 committed Oct 4, 2023
1 parent 142c241 commit ef66456
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/base/solvers/entropicFBA/mosekParamSetEFBA.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/base/solvers/entropicFBA/solveCobraEP.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ef66456

Please sign in to comment.