buildCommandLine: Build a Command Line

Description Usage Arguments Details Value Author(s) Examples

Description

'buildCommandLine' receives two vectors, one containing the values of the parameters, the other containing the switches of the parameters. It builds a string with the switches and the values that can be used as a command line to call the program to be tuned, instanciating one candidate configuration.

Usage

1
  buildCommandLine(values, switches)

Arguments

values

A vector containing the value of each parameter for the candidate configuration.

switches

A vector containing the switches of each paramter (in an order that corresponds to the values vector).

Details

The chain concatenates <switch> <value> for all parameters with a space between each parameter (but none between the switches and the corresponding values).

Value

A character chain containing the switches and the values.

Author(s)

Manuel López-Ibáñez and Jérémie Dubois-Lacoste

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
switches <- c("--switch1 ", "--switch2 ")
values <- c("value_1", "value_2")
buildCommandLine (values, switches)

## Not run: 
## Build commandlines from the results produced by a previous run of
## irace.

# First, load the data produced by irace.
load("irace.Rdata")
attach(iraceResults)
apply(allConfigurations[1:10, unlist(parameters$names)], 1, buildCommandLine,
      unlist(parameters$switches))

## End(Not run)

MLopez-Ibanez/iracelhs documentation built on May 15, 2019, 1:57 a.m.