Skip to content

Commit

Permalink
Removing OPTI interface
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentheirendt committed Jun 27, 2018
1 parent 8a73d52 commit a457ed8
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions initCobraToolbox.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function initCobraToolbox(updateToolbox)
global ENV_VARS;
global gitBashVersion;
global CBT_MISSING_REQUIREMENTS_ERROR_ID;

if ~exist('updateToolbox','var')
updateToolbox = true;
end
Expand Down Expand Up @@ -338,7 +338,6 @@ function initCobraToolbox(updateToolbox)
SOLVERS.lindo_old.type = {'LP'};
SOLVERS.lindo_legacy.type = {'LP'};
SOLVERS.lp_solve.type = {'LP'};
SOLVERS.opti.type = {'LP', 'MILP', 'QP', 'MIQP', 'NLP'};

% definition of category of solvers with active support
SOLVERS.cplex_direct.categ = 'active';
Expand All @@ -361,7 +360,6 @@ function initCobraToolbox(updateToolbox)
SOLVERS.lindo_old.categ = 'legacy';
SOLVERS.lindo_legacy.categ = 'legacy';
SOLVERS.lp_solve.categ = 'legacy';
SOLVERS.opti.categ = 'legacy';

% definition of categories of solvers
supportedSolversNames = fieldnames(SOLVERS);
Expand Down Expand Up @@ -619,10 +617,10 @@ function checkGit()
if ENV_VARS.printLevel
fprintf(' > Checking if curl is installed ... ')
end

origLD = getenv('LD_LIBRARY_PATH');
newLD = regexprep(getenv('LD_LIBRARY_PATH'), [matlabroot '/bin/' computer('arch') ':'], '');

% check if curl is properly installed
[status_curl, result_curl] = system('curl --version');

Expand Down Expand Up @@ -671,14 +669,14 @@ function checkGit()
end
end
end

if ENV_VARS.printLevel
fprintf(' > Checking if remote can be reached ... ')
end

% check if the remote repository can be reached
[status_curl, result_curl] = system('curl -s -k --head https://github.com/opencobra/cobratoolbox');

% check if the URL exists
if status_curl == 0 && ~isempty(strfind(result_curl, ' 200'))
if ENV_VARS.printLevel
Expand Down

0 comments on commit a457ed8

Please sign in to comment.