Skip to content

Commit

Permalink
[Documentation] Template updated
Browse files Browse the repository at this point in the history
  • Loading branch information
tpfau committed Apr 5, 2018
1 parent 95ae8cf commit f0b9183
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions docs/source/guides/testTemplate.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
%Require the bioinformatics and optimization toolbox (specified above),
%along with dqqMinos and matlab as solvers (also specified above)
%solvers will contain a cell arrays of solver names.
solvers = COBRARequisitesFullfilled('reqSolvers',requiredSolvers,'requiredToolboxes',requiredToolboxes);
solversPkgs = COBRARequisitesFullfilled('reqSolvers',requiredSolvers,'requiredToolboxes',requiredToolboxes);



Expand All @@ -46,9 +46,6 @@
% set the tolerance
tol = 1e-8;

% define the solver packages to be used to run this test
solverPkgs = {'tomlab_cplex', 'glpk', 'gurobi6'};

% load the model
%Either:
model = getDistributedModel('ecoli_core_model.mat'); %For all models in the test/models folder and subfolders
Expand Down Expand Up @@ -77,10 +74,10 @@
% if parallel toolbox has to be present (if not, this can be left out).
%}

for k = 1:length(solverPkgs)
fprintf(' -- Running <testFile> using the solver interface: %s ... ', solverPkgs{k});
for k = 1:length(solverPkgs.LP)
fprintf(' -- Running <testFile> using the solver interface: %s ... ', solverPkgs.LP{k});

solverLPOK = changeCobraSolver(solverPkgs{k}, 'LP', 0);
solverLPOK = changeCobraSolver(solverPkgs.LP{k}, 'LP', 0);

if solverLPOK
% <your test goes here>
Expand Down

0 comments on commit f0b9183

Please sign in to comment.