Skip to content

Commit

Permalink
set solver in benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
cdanielmachado committed Apr 25, 2023
1 parent 09c2f31 commit b55cd63
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion carveme/cli/benchmark.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pandas as pd
from reframed import load_cbmodel
from reframed import load_cbmodel, set_default_solver
from carveme.reconstruction.utils import load_media_db
from carveme.reconstruction.benchmark import benchmark_biolog, benchmark_essentiality, mcc
from carveme import project_dir
Expand Down Expand Up @@ -249,8 +249,13 @@ def main():

parser.add_argument('--species', dest='species', help="Benchmark only one species.")

parser.add_argument('--solver', help="Select MILP solver. Available options: cplex [default], gurobi.")

args = parser.parse_args()

if args.solver:
set_default_solver(args.solver)

benchmark(rebuild=(not args.no_rebuild),
biolog=(not args.no_biolog),
essentiality=(not args.no_essentiality),
Expand Down

0 comments on commit b55cd63

Please sign in to comment.