Unverified Commit 8705af8d authored by Miroslav Kratochvil's avatar Miroslav Kratochvil Committed by GitHub
Browse files

Merge pull request #410 from LCSB-BioCore/mk-rm-optimize-model

remove optimize_model (it was not used)
parents d91bb8ee 3d26f7cf
Pipeline #44952 passed with stages
in 34 minutes and 39 seconds
......@@ -31,22 +31,6 @@ function make_optimization_model(model::MetabolicModel, optimizer; sense = MOI.M
return optimization_model
end
"""
optimize_model(
model::MetabolicModel,
optimizer;
sense = MOI.MIN_SENSE,
)
Use JuMP to solve an instance of CoreModel
"""
function optimize_model(model::MetabolicModel, optimizer; sense = MOI.MIN_SENSE)
optimization_model = make_optimization_model(model, optimizer; sense = sense)
optimize!(optimization_model)
return optimization_model
end
"""
is_solved(optmodel)
......
@testset "Solve LP" begin
cp = test_simpleLP()
lp = optimize_model(cp, Tulip.Optimizer)
@test termination_status(lp) === MOI.OPTIMAL
sol = JuMP.value.(lp[:x])
@test sol [1.0, 2.0]
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment