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
ee0c328e
Unverified
Commit
ee0c328e
authored
Sep 09, 2021
by
Laurent Heirendt
✈
Committed by
GitHub
Sep 09, 2021
Browse files
Merge pull request #450 from LCSB-BioCore/mk-disable-jump-bridges
completely disable JuMP bridge constraints
parents
aad22c68
e99747f6
Pipeline
#46847
passed with stages
in 38 minutes and 5 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/base/solver.jl
View file @
ee0c328e
...
...
@@ -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
...
...
cylon-x
🤖
@cylon-x
mentioned in commit
97901f61
·
Sep 09, 2021
mentioned in commit
97901f61
mentioned in commit 97901f615273a8df699171dd478fc96d111d9b7e
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