calc.problemInstance | R Documentation |
problemInstance
-objects depending on argument type
perform calculations on problemInstance
-objects depending on argument type
calc.problemInstance(object, type, input)
## S4 method for signature 'problemInstance,character,list'
calc.problemInstance(object, type, input)
object |
an object of class |
type |
a character vector of length 1 defining what to calculate|return|modify. Allowed types are: |
makeMasterProblem: create the master problem that is the core of the secondary cell suppression problem
isProtectedSolution: check if a solution violates any required (upper|lower|sliding) protection levels
input |
a list depending on argument |
type==makeMasterProblem: input is not used (empty list)
type==isProtectedSolution: input is a list of length 2 with elements 'input1' and 'input2'
element 'input1': numeric vector of calculated known lower cell bounds (from attacker's problem)
element 'input2': numeric vector of known upper cell bounds (from attacker's problem)
information from objects of class problemInstance
depending on argument type
an object of class linProb
if argument type
matches 'makeMasterProblem'
logical vector of length 1 if argument type
matches 'isProtectedSolution' with TRUE if all primary suppressed cells are adequately protected, FALSE otherwise
internal function
Bernhard Meindl bernhard.meindl@statistik.gv.at
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.