The options for running the OptionMatrix programs are:
optionmatrix option …
optionmatrix_console option …
With no options,
optionmatrix launches the GTK+ (GUI) version of OptionMatrix and
optionmatrix_console launches the Curses (console, DOS) version.
optionmatrix_console support the following options:
Print an informative help message on standard output and exit.
Print the version number and licensing information of OptionMatrix on standard output and exit.
List the names of all financial models to standard output and exit.
List source code file names of models not accessible by the application to standard output and exit. If a model’s source code is accessible the
optionmatrix program can display source code from the running application.
Force creation of debug log file optionmatrix.log
Iterate through and test all models to standard output and exit.
Iterate through and test all models in quiet mode and exit.
Time test a specific model number to standard output and exit. 200000 executions of model are made and timed by default.
Set number of executions a model will be time tested for (default 200000)
Set model source code directory. The GTK+ version of the application can display source code.
Override the datadir variable used for the path to icons / images.
The option --debug ( -d ) is the only option used by both
optionmatrix_console applications. The options --Directory ( -D ) and --datadir ( -x ) are exclusive to
optionmatrix. The remaining command line options do not launch an interactive application and only create standard output and exit.
Try typing ‘optionmatrix --version’
optionmatrix 1.4.3 Copyright (C) 2013 Anthony Bradford. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Written by Anthony Bradford.
Run and time model zero, Black-Scholes, at the default number of iterations (200000)
‘optionmatrix --model 0 ’
Model #: 0 Black-Scholes 200000 Calls calculated Time 1.517541s CPU time: 0.600000s 200000 Puts calculated Time 1.416533s CPU time: 0.560000s
Run and time model zero, Black-Scholes, at 1 million iterations
‘optionmatrix --iterate 1000000 --model 0’
Model #: 0 Black-Scholes 1000000 Calls calculated Time 7.890567s CPU time: 2.870000s 1000000 Puts calculated Time 7.357173s CPU time: 2.780000s
Run the Curses version of OptionMatrix
Run the GTK+ (GUI) version of OptionMatrix
Run the GTK+ (GUI) version of OptionMatrix and define the model source code location.
‘optionmatrix --Directory src/c++/optionmatrix/optionmatrix-1.4.3’