Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
stelmo committed Nov 27, 2021
1 parent d3103e9 commit 9d5852d
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions src/analysis/max_min_driving_force.jl
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,15 @@ function max_min_driving_force_variability(
optimal_objective_value = nothing,
bounds = z -> (z, Inf),
modifications = [],
kwargs...
kwargs...,
)
if isnothing(optimal_objective_value)
initsol = max_min_driving_force(
initsol = max_min_driving_force(
model,
reaction_standard_gibbs_free_energies,
optimizer;
modifications,
kwargs...
kwargs...,
)
mmdf = initsol.mmdf
else
Expand All @@ -255,15 +255,12 @@ function max_min_driving_force_variability(
lb, ub = bounds(mmdf)

dgr_variants = [
[[_mmdf_add_df_bound(lb, ub), _mmdf_dgr_objective(ridx, sense)]] for ridx = 1:n_reactions(model), sense in [MOI.MAX_SENSE, MOI.MIN_SENSE]
[[_mmdf_add_df_bound(lb, ub), _mmdf_dgr_objective(ridx, sense)]] for
ridx = 1:n_reactions(model), sense in [MOI.MAX_SENSE, MOI.MIN_SENSE]
]
concen_variants = [
[
[
_mmdf_add_df_bound(lb, ub),
_mmdf_concen_objective(midx, sense),
],
] for midx = 1:n_metabolites(model), sense in [MOI.MAX_SENSE, MOI.MIN_SENSE]
[[_mmdf_add_df_bound(lb, ub), _mmdf_concen_objective(midx, sense)]] for
midx = 1:n_metabolites(model), sense in [MOI.MAX_SENSE, MOI.MIN_SENSE]
]

return screen(
Expand All @@ -274,7 +271,7 @@ function max_min_driving_force_variability(
reaction_standard_gibbs_free_energies,
optimizer;
modifications = [args; modifications],
kwargs...
kwargs...,
),
workers,
)
Expand Down

0 comments on commit 9d5852d

Please sign in to comment.