Miscellaneous functions

COBREXA.absolute_tolerance_boundMethod
absolute_tolerance_bound(tolerance) -> COBREXA.var"#400#401"

Make a function that returns absolute tolerance bounds, i.e. value - tolerance and value + tolerance in a tuple, in the increasing order.

source
COBREXA.relative_tolerance_boundMethod
relative_tolerance_bound(tolerance) -> COBREXA.var"#402#403"

Make a function that returns relative tolerance bounds, i.e. value / tolerance and value * tolerance in a tuple, in the increasing order.

source
COBREXA.remove_boundsMethod
remove_bounds(
    cs::ConstraintTrees.Tree{ConstraintTrees.Constraint}
) -> Any

Make a copy of a constraint tree with all bounds removed. This is helpful when creating large trees only for for value representation purposes, which should not directly constraint anything (and thus should not put additional stress on the constraint solver).

source
COBREXA.maybemapFunction
maybemap(f, ::Nothing)
maybemap(f, ::Nothing, def) -> Any

Helper for applying functions to stuff that might be nothing.

source
COBREXA.set_optimizerMethod
set_optimizer(optimizer) -> COBREXA.var"#408#409"

Change the JuMP optimizer used to run the optimization.

source
COBREXA.set_optimizer_attributeMethod
set_optimizer_attribute(
    attribute_key,
    value
) -> COBREXA.var"#410#411"

Change a named JuMP optimizer attribute. The attribute names are optimizer-specific, refer to the JuMP documentation and the documentation of the specific optimizer for usable keys and values.

source
COBREXA.set_time_limitMethod
set_time_limit(limit::Real) -> COBREXA.var"#412#413"

Set a time limit in seconds for the optimizer computation (shortcut for set_time_limit_sec from JuMP).

source
COBREXA.silenceMethod
silence

Disable all output from the JuMP optimizer (shortcut for set_silent from JuMP).

source
COBREXA.unsilenceMethod
unsilence

Enable output from the JuMP optimizer (shortcut for unset_silent from JuMP).

source
COBREXA.tree_deflateMethod
tree_deflate(f, x::ConstraintTrees.Tree{T}) -> Vector
tree_deflate(
    f,
    x::ConstraintTrees.Tree{T},
    ::Type{U}
) -> Vector

Extract all elements of a ConstraintTrees.Tree in order and return them in a Vector transformed by f. If the order is not modified, one can re-insert a vector of modified elements into the same-shaped tree using tree_reinflate.

source
COBREXA.tree_reinflateMethod
tree_reinflate(
    x::ConstraintTrees.Tree,
    elems::Array{T, 1}
) -> ConstraintTrees.Tree

Insert a Vector of elements into the "values" of a ConstraintTrees.Tree. The order of elements is given by tree_deflate.

source