calc.sdcProblem: perform calculations on sdcProblem-objects depending on argument type
Description
perform calculations on sdcProblem-objects depending
on argument typeUsage
calc.sdcProblem(object, type, input)## S3 method for class 'sdcProblem,character,list':
calc.sdcProblem(object, type, input)
Arguments
object
an object of class sdcProblem
type
a character vector of length 1 defining what
to calculate|return|modify. Allowed types are:
input
a list depending on argument type.
Value
- information from objects of class
sdcProblem
depending on argument type - an object
of class
sdcProblemif argumenttypematches
'rule.freq', 'rule.nk', 'rule.p', 'cutAndBranch',
'anonWorker', 'ghmiter', 'ghmiter.supressQuader',
'ghmiter.suppressAdditionalQuader' or 'reduceProblem' - a numeric vector with elements being 0 or 1 if argument
typematches 'heuristicSolution' - a list if
argument
typematches 'preprocess' having following
elements:- element 'sdcProblem': an object
of class
sdcProblem - element 'aProb': an object
of class
linProb - element 'validCuts': an
object of class
cutList
- a numeric vector of
length 1 specifying the index of the cell of interest if
argument
typematches 'cellID' - an object of
class
safeObjif argumenttypematches
'finalize' - a list if argument
typematches
'ghmiter.diagObj' having following elements:- element 'cellToProtect': character vector of length 1
defining the ID of the cell to protect
- element
'indToProtect': numeric vector of length 1 defining the
index of the cell to protect
- element 'diagIndices':
numeric vector defining indices of possible cells defining
cubes
- a list containing information about each
quader that could possibly be suppressed if argument
typematches 'ghmiter.calcInformation' - a list
containing information about a single quader that should be
suppressed if argument
typematches
'ghmiter.selectQuader' - a numeric vector with indices
that contribute to the desired table cell if argument
typematches 'contributingIndices' - an object
of class
cutListif argumenttypematches
'genStructuralCuts'