Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rmtfleming committed Nov 7, 2024
1 parent fa2adac commit 2dcefe1
Show file tree
Hide file tree
Showing 7 changed files with 1,518 additions and 306 deletions.
8 changes: 4 additions & 4 deletions src/base/solvers/cardOpt/sparseLP/optimizeCardinality.m
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@
ltp=length(problem.p);
ltq=length(problem.q);
ltr=length(problem.r);
if ltp==1
if ~islogical(problem.p)
if ltp==1 && problem.p~=0
if length(problem.p)~=1 && ~islogical(problem.p)
solution.stat = -1;
error('Error: p should be a logical vector');
end
Expand All @@ -212,7 +212,7 @@
solution.stat = -1;
error('Error: the size/location of vector y is not defined');
else
if ~islogical(problem.q)
if length(problem.q)~=1 && ~islogical(problem.q) && problem.q~=0
solution.stat = -1;
error('Error: q should be a logical vector');
end
Expand All @@ -222,7 +222,7 @@
solution.stat = -1;
error('Error: the size of vector z is not defined');
else
if ~islogical(problem.r)
if length(problem.r)~=1 && ~islogical(problem.r)
solution.stat = -1;
error('Error: r should be a logical vector');
end
Expand Down
4 changes: 2 additions & 2 deletions src/base/solvers/getSetSolver/changeCobraSolver.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%
% USAGE:
%
% [solverOK, solverInstalled] = changeCobraSolver(solverName, solverType, printLevel, validationLevel)
% [solverOK, solverInstalled] = changeCobraSolver(solverName, problemType, printLevel, validationLevel)
%
% INPUTS:
% solverName: Solver name
Expand Down Expand Up @@ -538,7 +538,7 @@
end
try
% Skip the CLP solver until further developments
if ~strcmp(solverType, 'CLP')
if ~strcmp(problemType, 'CLP')
%This is the code that actually tests if a solver is working
if validationLevel>1
%display progress
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
1,002 changes: 837 additions & 165 deletions test/verifiedTests/visualization/testEFMviz/testEFMSubmodel.xml

Large diffs are not rendered by default.

810 changes: 675 additions & 135 deletions test/verifiedTests/visualization/testEFMviz/testEFMSubmodel_woUbMets.xml

Large diffs are not rendered by default.

0 comments on commit 2dcefe1

Please sign in to comment.