Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
doc:batch [2021/07/16 09:43] – created thomas | doc:batch [2022/06/08 12:04] (current) – [Batch Optimizations] thomas | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Batch Optimization | + | ====== Batch Optimization |
- | If you need to automate multiple optimizations, | + | ==== The SCONE Command-line Interface |
+ | If you need to automate multiple optimizations, | ||
+ | < | ||
+ | " | ||
+ | </ | ||
+ | The '' | ||
+ | |||
+ | ==== Changing Scenario Parameters ==== | ||
+ | You can change any parameter in your .scone scenario by specifying it in the command line, for example: | ||
+ | < | ||
+ | sconecmd.exe -o " | ||
+ | </ | ||
+ | |||
+ | You can also **access settings by index**, which is useful for settings that are not uniquely identifiable by name: | ||
+ | < | ||
+ | sconecmd.exe -o " | ||
+ | </ | ||
+ | This sets the '' | ||
+ | |||
+ | ==== Batch Optimizations ==== | ||
+ | For batch processing, you can create a Windows '' | ||
+ | < | ||
+ | set SCONECMD=" | ||
+ | %SCONECMD% -o " | ||
+ | %SCONECMD% -o " | ||
+ | </ | ||
+ | |||
+ | If you wish to run multiple optimizations in parallel, you can do so by prefixing your command with '' | ||
+ | < | ||
+ | set SCONECMD=" | ||
+ | start " | ||
+ | start " | ||
+ | </ | ||
+ | |||
+ | If you wish to **optimize all scenarios in a folder**, you can use the following .bat script to optimize all .scone scenarios in the current directory: | ||
+ | < | ||
+ | set SCONECMD=" | ||
+ | for %%f in (*.scone) do ( | ||
+ | start " | ||
+ | timeout 1 | ||
+ | ) | ||
+ | </ |