Skip to contents

Print parameter space in the textual format accepted by irace.

Usage

printParameters(parameters)

Arguments

parameters

(list())
Data structure containing the parameter space definition. The data structure has to similar to the one returned by the function readParameters.

Value

character()

See also

Examples

parameters.table <- '
 # name       switch           type  values               [conditions (using R syntax)]
 algorithm    "--"             c     (as,mmas,eas,ras,acs)
 localsearch  "--localsearch " c     (0, 1, 2, 3)
 alpha        "--alpha "       r     (0.00, 5.00)
 beta         "--beta "        r     (0.00, 10.00)
 rho          "--rho  "        r     (0.01, 1.00)
 ants         "--ants "        i,log (5, 100)
 q0           "--q0 "          r     (0.0, 1.0)           | algorithm == "acs"
 q0dep       "--q0 "           r     (0.0, q0)            | algorithm != "acs"
 rasrank      "--rasranks "    i     (1, "min(ants, 10)") | algorithm == "ras"
 elitistants  "--elitistants " i     (1, ants)            | algorithm == "eas"
 nnls         "--nnls "        i     (5, 50)              | localsearch %in% c(1,2,3)
 dlb          "--dlb "         c     (0, 1)               | localsearch %in% c(1,2,3)
 
 [forbidden]
 (alpha == 0.0) & (beta == 0.0)
'
parameters <- readParameters(text=parameters.table)
#> # 2024-05-28 14:51:18 UTC: 1 expression(s) specifying forbidden configurations read.
printParameters(parameters)
#> algorithm   "--"             c (as,mmas,eas,ras,acs)
#> localsearch "--localsearch " c (0,1,2,3)      
#> alpha       "--alpha "       r (0,5)          
#> beta        "--beta "        r (0,10)         
#> rho         "--rho  "        r (0.01,1)       
#> ants        "--ants "        i,log (5,100)        
#> q0          "--q0 "          r (0,1)           | algorithm == "acs"
#> q0dep       "--q0 "          r (0,"q0")        | algorithm != "acs"
#> rasrank     "--rasranks "    i (1,"min(ants, 10)") | algorithm == "ras"
#> elitistants "--elitistants " i (1,"ants")      | algorithm == "eas"
#> nnls        "--nnls "        i (5,50)          | localsearch %in% c(1, 2, 3)
#> dlb         "--dlb "         c (0,1)           | localsearch %in% c(1, 2, 3)
#> 
#> [forbidden]
#> (alpha == 0) & (beta == 0)