Prepares ILP formulation and writes it to .lp file. Currently supports the old data representation (CARNIVAL v.<2) for debugging and testing if any problems arise with the new way to generate variables.

prepareForCarnivalRun(
  dataPreprocessed,
  carnivalOptions,
  newDataRepresentation = T
)

Arguments

dataPreprocessed

list containing preprocessed priorKnowledgeNetwork, measurements, weights (if provided), perturbations (if provided).

carnivalOptions

all options of CARNIVAL.

newDataRepresentation

TRUE by default. For debugging with the old data representation, put to FALSE.

Value

list with all variables and ILP formulation written in .lp file.