parameters.table <- '
# name switch type values [conditions (using R syntax)]
algorithm "--" c (as,mmas,eas,ras,acs)
localsearch "--localsearch " c (0, 1, 2, 3)
ants "--ants " i,log (5, 100)
q0 "--q0 " r (0.0, 1.0) | algorithm == "acs"
nnls "--nnls " i (5, 50) | localsearch %in% c(1,2,3)
'
parameters <- readParameters(text=parameters.table)
printParameters(parameters)
Run the code above in your browser using DataLab