Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LCSB-BioCore
COBREXA.jl
Commits
e99747f6
Commit
e99747f6
authored
Sep 09, 2021
by
Miroslav Kratochvil
Browse files
completely disable JuMP bridge constraints
(we do not use them at all, which is likely gonna hold for some time)
parent
aad22c68
Pipeline
#46846
passed with stages
in 9 minutes and 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/base/solver.jl
View file @
e99747f6
...
...
@@ -16,7 +16,7 @@ function make_optimization_model(model::MetabolicModel, optimizer; sense = MOI.M
m
,
n
=
size
(
stoichiometry
(
model
))
xl
,
xu
=
bounds
(
model
)
optimization_model
=
Model
(
optimizer
)
optimization_model
=
Model
(
optimizer
;
bridge_constraints
=
false
)
@variable
(
optimization_model
,
x
[
i
=
1
:
n
])
@objective
(
optimization_model
,
sense
,
objective
(
model
)
'
*
x
)
@constraint
(
optimization_model
,
mb
,
stoichiometry
(
model
)
*
x
.==
balance
(
model
))
# mass balance
...
...
Miroslav Kratochvil
@miroslav.kratochvil
mentioned in commit
0cb0e452
·
Sep 15, 2021
mentioned in commit
0cb0e452
mentioned in commit 0cb0e45290c1f780cb08dcafba97008585ca20cc
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment