OptionMatrix PDF manual

Next: , Previous: , Up: Top   [Contents][Index]


2 Invoking the OptionMatrix Programs

2.1 Usage Options

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 and optionmatrix_console support the following options:

--help
-h

Print an informative help message on standard output and exit.

--version
-v

Print the version number and licensing information of OptionMatrix on standard output and exit.

--list
-l

List the names of all financial models to standard output and exit.

--source
-s

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.

--debug
-d

Force creation of debug log file optionmatrix.log

--price
-p

Iterate through and test all models to standard output and exit.

--quiet
-q

Iterate through and test all models in quiet mode and exit.

--model
-m

Time test a specific model number to standard output and exit. 200000 executions of model are made and timed by default.

--iterate number
-i number

Set number of executions a model will be time tested for (default 200000)

--Directory
-D

Set model source code directory. The GTK+ version of the application can display source code.

--datadir
-x

Override the datadir variable used for the path to icons / images.

The option --debug ( -d ) is the only option used by both optionmatrix and 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.

2.2 Examples

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

optionmatrix_console

Run the GTK+ (GUI) version of OptionMatrix

optionmatrix

Run the GTK+ (GUI) version of OptionMatrix and define the model source code location.

optionmatrix --Directory src/c++/optionmatrix/optionmatrix-1.4.3
Download OptionMatrix

Download OptionMatrix
info@anthonybradford.com
© 2013 Anthony Bradford


Next: , Previous: , Up: Top   [Contents][Index]

OptionMatrix PDF manual