Skip to content

Commit

Permalink
Merge pull request #2381 from farid-zare/debug_optimizeCbModel
Browse files Browse the repository at this point in the history
Debug optimizeCbModel
  • Loading branch information
farid-zare authored Jan 8, 2025
2 parents 24a7b5b + 5519dc8 commit 891a9b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/analysis/FBA/optimizeCbModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,9 @@
allowLoops=1;
end
end
else
% Handle osenseStr when it's a string (e.g., 'min' or 'max')
model.osenseStr = osenseStr;
end
end
% % override if osenseStr already in the model
Expand Down Expand Up @@ -635,8 +638,8 @@
optProblem2.ub = [optProblem.ub;Inf*ones(2*nRxns,1)];
if isempty(objectiveLP)
objectiveLP = 0;
optProblem2.b = [optProblem.b;zeros(2*nRxns,1);objectiveLP];
end
optProblem2.b = [optProblem.b;zeros(2*nRxns,1);objectiveLP];

%csense for 3 & 4 above
optProblem2.csense = [optProblem.csense; repmat('G',2*nRxns,1)];
Expand Down

0 comments on commit 891a9b4

Please sign in to comment.