"sysBiolAlg"
The class sysBiolAlg
holds an object of class
'>optObj
which is generated concerning a particular
algorithm, e.g. FBA or ROOM. This class is extended by other classes and will
not be used as is. The representation of class sysBiolAlg
is used as
superclass.
A virtual Class: No objects may be created from it.
problem
:Object of class "optObj"
containing the problem object.
algorithm
:Object of class "character"
containing the name of the algorithm.
nr
:Object of class "integer"
containing the number of rows of the problem object.
nc
:Object of class "integer"
containing the number of columns of the problem object
fldind
:Object of class "integer"
pointers to columns (variables) representing a flux (reaction) in the
original network. The variable fldind[i]
in the problem object
represents reaction i
in the original network.
alg_par
:Object of class "list"
containing a named list of algorithm specific parameters.
signature(object = "sysBiolAlg")
:
gets the algorithm
slot.
signature(object = "sysBiolAlg")
:
sets the algorithm
slot.
signature(object = "sysBiolAlg")
:
gets the alg_par
slot.
signature(object = "sysBiolAlg")
:
sets the alg_par
slot.
signature(object = "sysBiolAlg")
:
gets the fldind
slot.
signature(object = "sysBiolAlg")
:
sets the fldind
slot.
signature(object = "sysBiolAlg")
:
gets the nc
slot.
signature(object = "sysBiolAlg")
:
sets the nc
slot.
signature(object = "sysBiolAlg")
:
gets the nr
slot.
signature(object = "sysBiolAlg")
:
sets the nr
slot.
signature(object = "sysBiolAlg")
:
runs optimization on the given problem object
(see optimizeProb
for details).
signature(object = "sysBiolAlg")
:
gets the problem
slot.
signature(object = "sysBiolAlg")
:
default constructor method for objects inheriting from class
sysBiolAlg
. It gets all data structures necessary to built a
problem object (object of class '>optObj
)
representing a particular algorithm. This method can be used in
constructor methods for subclasses of sysBiolAlg
via
callNextMethod
. In this case, the constructor has to
generate all the data structures, pass them to
callNextMethod
and let the constructor of the superclass do
all the work in generating the problem object and interacting with the
solver software. See also the Details section.
The initialize
method has the following arguments:
Single character string giving the solver package to use. See
SYBIL_SETTINGS
for possible values.
Default: SYBIL_SETTINGS("SOLVER")
.
Single character string giving the method the desired solver has to use.
SYBIL_SETTINGS
for possible values.
Default: SYBIL_SETTINGS("METHOD")
.
A named data frame or list containing parameters for the specified
solver. Parameters can be set as data frame or list:
solverParm = list(parm1 = val1, parm2 = val2)
with parm1
and
parm2
being the names of two different parameters and val1
and val2
the corresponding values. For possible parameters and
values see the documentation of the used solver package
(e.g. glpkAPI).
Default: SYBIL_SETTINGS("SOLVER_CTRL_PARM")
.
A single boolean, numeric or character value, controling the amount of
terminal output of the solver software. See also initProb
(argument to
) for more details.
Default: NULL
.
Single character string containing the name of the algorithm to use.
Single character string containing the type of the problem object. Can be
"lp"
: linear program, mip
: mixed integer program or
"qp"
: quadratic program.
Default: "lp"
.
Scaling options used to scale the constraint matrix. If set to
NULL
, no scaling will be performed
(see scaleProb
).
Default: NULL
.
Pointers to columns (variables) representing a flux (reaction) in the
original network. The variable fldind[i]
in the problem object
represents reaction i
in the original network.
Number of columns (variables) of the problem object.
Number of rows (constraints) of the problem object.
An object of class Matrix
. The constraint matrix of the
problem object. The number of columns in mat
must be nCols
and the number of rows in mat
must be nRows
.
A numeric vector of length nCols
giving the upper bounds of the
variables of the problem object.
A numeric vector of length nCols
giving the lower bounds of the
variables of the problem object.
A numeric vector of length nCols
giving the objective coefficients
of the variables of the problem object.
A numeric vector of length nRows
giving the right hand side of the
problem object. If argument rub
is not NULL
, rlb
contains the lower bounds of the constraints of the problem object.
A character vector of length nRows
giving the constraint type.
See loadLPprob
for details.
Single character string containing the direction of optimization.
Can be set to "min"
or "max"
.
Default: "max"
.
A numeric vector of length nRows
giving the right hand side of the
problem object. If not NULL
, it contains the upper bounds of the
constraints of the problem object.
Default: NULL
.
A character vector of length nCols
giving the variable type. If set
to NULL
, no specific variable type is set, which usually means, all
variables are treated as continuous variables.
See loadLPprob
for details.
Default: NULL
.
A character vector of length nCols
giving the variable names.
If set to NULL
, no specific variable names are set.
Default: NULL
.
A character vector of length nRows
giving the constraint names.
If set to NULL
, no specific constraint names are set.
Default: NULL
.
A single character string containing a name for the problem object.
Default: NULL
.
A single boolean flag, if algorithm specific parameters should be saved
in the object extending class sysBiolAlg
.
Default: TRUE
.
A named list containing algorithm specific parameters.
Default: NULL
.
The general constructor function sysBiolAlg
,
and classes
'>sysBiolAlg_fba
,
'>sysBiolAlg_fv
,
'>sysBiolAlg_mtf
,
'>sysBiolAlg_lmoma
,
'>sysBiolAlg_moma
and
'>sysBiolAlg_room
.
# NOT RUN {
showClass("sysBiolAlg")
# }
Run the code above in your browser using DataLab