writePosetForCBN: Writes a poset to a file

Description Usage Arguments Details Value Author(s)

Description

writePosetForCBN writes the input poset to a file, in a form accepted as input by H-CBN.

Usage

1
writePosetForCBN(poset, path, name)

Arguments

poset

the binary input matrix representing the order constraints between events

path

path where the output poset should be written. Default to "~/Dropbox/PathTiMEx/RPathTiMEx/txts".

name

name of the file to be written. Default to "outCBN".

Details

The poset encodes order constraints between events and it is either used as starting solution for H-CBN, or the final result of the H-CBN structure otpimization. The poset is written to file in a form compatible to H-CBN, namely on the first line the number of events, on each of the following lines a directed edge representing an order constraint, and on the last line the number 0. If path and name are provided, the poset is written to path/name.poset.

Value

nothing

Author(s)

Simona Constantinescu, simona.constantinescu@bsse.ethz.ch


cbg-ethz/pathTiMEx documentation built on May 13, 2019, 2:03 p.m.