sdcTable (version 0.32.6)

calc.problemInstance: 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 problemInstance,character,list calc.problemInstance(object, type, input)

Value

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

Arguments

object

an object of class problemInstance

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.

  • 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)

Author

Bernhard Meindl bernhard.meindl@statistik.gv.at