Miscellaneous functions

COBREXA.absolute_tolerance_bound — Method
absolute_tolerance_bound(tolerance) -> COBREXA.var"#474#475"

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_bound — Method
relative_tolerance_bound(tolerance) -> COBREXA.var"#476#477"

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_bounds — Method
remove_bounds(cs::ConstraintTrees.ConstraintTree) -> 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.maybemap — Function
maybemap(f, ::Nothing)
maybemap(f, ::Nothing, def) -> Any

Helper for applying functions to stuff that might be nothing.

source
COBREXA.set_optimizer — Method
set_optimizer(optimizer) -> COBREXA.var"#482#483"

Change the JuMP optimizer used to run the optimization.

source
COBREXA.set_optimizer_attribute — Method
set_optimizer_attribute(
    attribute_key,
    value
) -> COBREXA.var"#484#485"

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_limit — Method
set_time_limit(limit::Real) -> COBREXA.var"#486#487"{<:Real}

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

source
COBREXA.silence — Method
silence

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

source
COBREXA.unsilence — Method
unsilence

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

source
COBREXA.tree_deflate — Method
tree_deflate(f, x::ConstraintTrees.Tree{T}) -> Any
tree_deflate(
    f,
    x::ConstraintTrees.Tree{T},
    ::Type{U}
) -> Any

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_reinflate — Method
tree_reinflate(
    x::ConstraintTrees.Tree,
    elems::Array{T, 1}
) -> Any

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

source