From SUMOwiki
Revision as of 09:20, 10 May 2007 by Dgorissen (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Default run

Once the toolbox is installed you can run the default modeling experiment as follows:

  1. Make sure that you are in the toolbox root directory and you have run 'startup.m' (see above)
  2. Type 'go' and press enter.
  3. The toolbox will start to model the Academic2DTwice simulator. This simulator has 2 inputs and 2 outputs, and will be modeled using Rational functions, scored using crossvalidation, and samples selected using the gradient sample selection method.
  4. To see the exact settings used open config/default.xml. Feel free to edit this file and play around with the different options.

Running different examples

The examples directory contains many example simulators that you can use to test the toolbox with. These examples range from predefined functions, to datasets from various domains, to native simulation code. If you want to try one of the examples, open default.xml and edit the Simulator tag to suit your needs.

See the configuration section on information about the possible options. If you want to add your own example see Adding an example.

If you have updated defaul.xml then simply run 'go' to run the example (making sure that the toolbox is in your Matlab path of course).

Other usages of 'go' are as follows:

     	"go('MyConfigFile.xml',xValues, yValues)"
     	"go('MyConfigFile.xml',xValues, yValues, options)"
     With options a cell array containing one or more of:
     	"-merge" : merge MyConfigFile.xml with the default configuration
		   Note: the merging process does not support all possible cases,
		         in case of problems, do not specify the "-merge" parameter.

     NB: the default configuraiton file is /path/to/M3/config/default.xml


Note: By default Matlab only allocates about 117MB memory space for the Java Virtual Machine. If you would like to increase this limit (which you should) please follow the instructions here.