Learn R Programming

sybil (version 1.0.1)

checkOptSol: Interprets an Object of Class Optsol

Description

The function checkOptSol evaluates the results of the solution of a linear optimization; the returned objects e.g. from simpleFBA.

Usage

checkOptSol(optsol, onlywarn = FALSE)

Arguments

optsol
An object of class optsol.
onlywarn
Logical, default: FALSE.

Value

  • TRUE or FALSE if onlywarn is set to TRUE, an object of class checksol otherwise.

encoding

utf8

Details

The function checkOptSol is used by functions performing a linear optimization (e.g. simpleFBA). In that case, the argument onlywarn is set to TRUE. If the optimization ends unsuccesfull, a warning will be produced.

It is also possible to use the function directly, with onlywarn set to FALSE (the default). In that case, an object of class checksol will be retuned. This object contains a summary with the exit status of the optimization.

See Also

checksol, simpleFBA and oneFluxDel

Examples

Run this code
data(Ec_core)
  Ec_f <- simpleFBA(Ec_core, retOptSol = TRUE)
  Ec_check <- checkOptSol(Ec_f)

Run the code above in your browser using DataLab