Miscellaneous functions

COBREXA.absolute_tolerance_boundMethod
absolute_tolerance_bound(tolerance) -> COBREXA.var"#372#373"

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

COBREXA.relative_tolerance_boundMethod
relative_tolerance_bound(tolerance) -> COBREXA.var"#374#375"

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

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).

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

Helper for applying functions to stuff that might be nothing.

COBREXA.set_optimizerMethod
set_optimizer(optimizer) -> COBREXA.var"#380#381"

Change the JuMP optimizer used to run the optimization.

COBREXA.set_optimizer_attributeMethod
set_optimizer_attribute(
    attribute_key,
    value
) -> COBREXA.var"#382#383"

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.

COBREXA.set_time_limitMethod
set_time_limit(limit::Real) -> COBREXA.var"#384#385"{<:Real}

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

COBREXA.silenceMethod
silence

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

COBREXA.unsilenceMethod
unsilence

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

COBREXA.tree_deflateMethod
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.

COBREXA.tree_reinflateMethod
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.