Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
COBREXA.jl
Manage
Activity
Members
Plan
External wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LCSB-BioCore
COBREXA.jl
Commits
3d26f7cf
Commit
3d26f7cf
authored
3 years ago
by
Miroslav Kratochvil
Browse files
Options
Downloads
Patches
Plain Diff
remove optimize_model (it was not used)
parent
d91bb8ee
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/base/solver.jl
+0
-16
0 additions, 16 deletions
src/base/solver.jl
test/base/solver.jl
+0
-8
0 additions, 8 deletions
test/base/solver.jl
with
0 additions
and
24 deletions
src/base/solver.jl
+
0
−
16
View file @
3d26f7cf
...
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
test/base/solver.jl
deleted
100644 → 0
+
0
−
8
View file @
d91bb8ee
@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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment