17.1.1.1.1.1. cobra.core.configuration
¶
Provide a global configuration object.
17.1.1.1.1.1.1. Module Contents¶
17.1.1.1.1.1.1.1. Classes¶
Define a global configuration object. |
-
class
cobra.core.configuration.
Configuration
(**kwargs)[source]¶ Define a global configuration object.
The attributes of this singleton object are used as default values by cobra functions.
-
solver
[source]¶ The default solver for new models. The solver choices are the ones provided by optlang and depend on solvers installed in your environment.
- Type
{“glpk”, “cplex”, “gurobi”, “glpk_exact”}
-
lower_bound
¶ The standard lower bound for reversible reactions (default -1000).
- Type
float, optional
-
bounds
[source]¶ The default reaction bounds for newly created reactions. The bounds are in the form of lower_bound, upper_bound (default -1000.0, 1000.0).
- Type
tuple of floats
-
processes
¶ A default number of processes to use where multiprocessing is possible. The default number corresponds to the number of available cores (hyperthreads) minus one.
- Type
-
property
solver
(self) → types.ModuleType[source] Return the optlang solver interface.
-
property
bounds
(self) → Tuple[Optional[Number], Optional[Number]][source] Return the lower, upper reaction bound pair.
-