printConstraints

PURPOSE ^

printConstraints Print all network constraints that are not -Inf (minInf)

SYNOPSIS ^

function printConstraints(model,minInf, maxInf)

DESCRIPTION ^

printConstraints Print all network constraints that are not -Inf (minInf)
or +Inf (maxInf)

 printConstraints(model,minInf, maxInf)

INPUTS
 model     COBRA model structure
 minInf    value that is considered as -Inf (or desired minimum cutoff value)
 maxInf    value that is considered as +Inf (or desired maximum cutoff value)

 Ines Thiele 02/09

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function printConstraints(model,minInf, maxInf)
0002 %printConstraints Print all network constraints that are not -Inf (minInf)
0003 %or +Inf (maxInf)
0004 %
0005 % printConstraints(model,minInf, maxInf)
0006 %
0007 %INPUTS
0008 % model     COBRA model structure
0009 % minInf    value that is considered as -Inf (or desired minimum cutoff value)
0010 % maxInf    value that is considered as +Inf (or desired maximum cutoff value)
0011 %
0012 % Ines Thiele 02/09
0013 
0014 minConstraints = intersect(find(model.lb>minInf),find(model.lb));
0015     fprintf('MinConstraitns:');
0016     fprintf('\n');
0017 for i = 1:length(minConstraints)
0018     fprintf('%s',model.rxns{minConstraints(i)});
0019     fprintf('\t');
0020     fprintf('%e',model.lb(minConstraints(i)));
0021     fprintf('\n');
0022 end
0023 
0024 
0025 maxConstraints =intersect(find(model.ub<maxInf),find(model.ub));
0026     fprintf('maxConstraints:');
0027     fprintf('\n');
0028 for i = 1:length(maxConstraints)
0029     fprintf('%s',model.rxns{maxConstraints(i)});
0030     fprintf('\t');
0031     fprintf('%e',model.ub(maxConstraints(i)));
0032     fprintf('\n');
0033 end

Generated on Thu 21-Jun-2012 15:39:23 by m2html © 2003