# Setup Menu

This menu lets you set the locations of tools that the PLUM runner needs to make runs, as well as specifying the command-line parameters sent to those utilities. There are several entries on this form:

- Combo generator command: This is the command used to invoke the program that generates random combinations for the runs.
- Calc command: This is the command used to invoke the combination solver that calculates resource usage for each combination.
- Single combination command: This command is used when the program runs a single combination (instead of a full run of 30,000).
- Increment graph command: This command generates the graph of increment-length resource usage.
- Simultaneous graph command: This command generates the smultaneous resource usage graph.
- Average runtime graph command: This generates the graph of average rack runtime.
- Selection success command: This generates a chart of which racks were most commonly successfully selected.
- Topology command: This generates a chart of where the racks were placed in the station for this run.
- Output path: This is the path to the directory where the charts for each run will be placed. There should not be a trailing slash or backslash in this path.
- Path to programs: This path is prepended to each command to make it easier to change between multiple sets of modeler tools. There should not be a trailing slash or backslash in this path.
- Delimiter: This is to select whether your operating system uses slashes or backslashes as path delimiters. Windows uses backslashes, everything else uses slashes.

Additionally, each of these entries can have anchors which are replaced with values specific to each run. These are each preceded with a dollar sign ($). For example, to have one of the parameters to a utility be the address of the database server, add "$host" to that utility's command.

- $host This is the hostname for the database server currently connected to.
- $db This is replaced by the name fo the database containing the rack data.
- $user This is the username used to connect to the database server
- $pass This is the password for the DB server.
- $outputdb The name of the database the run output goes into. This can be set for each run from the run window. This database must reside on the same server as the rack data database, however. Also, it must already have been created; the program can't make it itself since this is a task that can only be done by the database administration program.
- $output This is replaced by whatever is in the "Output path" field.
- $table The name of the table in $outputdb that the current run puts its output into.
- $order The number of combinations per point of the current run. Usually 1000 for a full-up run.

Also, there are two other special anchors that only work in the single combo command:

- $combo This is the combination that should be run by the single combo runner.
- $sams This is 1 if the combo requires SAMS, otherwise 0.