calc.problemInstance {sdcTable} | R Documentation |
perform calculations on problemInstance
-objects depending on argument type
Description
perform calculations on problemInstance
-objects depending on argument type
Usage
calc.problemInstance(object, type, input)
## S4 method for signature 'problemInstance,character,list'
calc.problemInstance(object, type, input)
Arguments
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)
Value
information from objects of class problemInstance
depending on argument type
an object of class
linProb
if argumenttype
matches 'makeMasterProblem'logical vector of length 1 if argument
type
matches 'isProtectedSolution' with TRUE if all primary suppressed cells are adequately protected, FALSE otherwise
Note
internal function
Author(s)
Bernhard Meindl bernhard.meindl@statistik.gv.at