Skip to content

Commit

Permalink
convert FBA to frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
exaexa committed Jan 30, 2024
1 parent caea516 commit e120b85
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/frontend/balance.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,7 @@ Most arguments are forwarded to [`optimized_values`](@ref).
Returns a tree with the optimization solution of the same shape as
given by [`flux_balance_constraints`](@ref).
"""
function flux_balance_analysis(model::A.AbstractFBCModel, optimizer; kwargs...)
constraints = flux_balance_constraints(model)
optimized_values(
constraints;
objective = constraints.objective.value,
optimizer,
kwargs...,
)
end
flux_balance_analysis(model::A.AbstractFBCModel; kwargs...) =
frontend_optimized_values(flux_balance_constraints, model; kwargs...)

export flux_balance_analysis

0 comments on commit e120b85

Please sign in to comment.