<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://sumowiki.ilabt.imec.be/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mnguyen</id>
	<title>SUMOwiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://sumowiki.ilabt.imec.be/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mnguyen"/>
	<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/Special:Contributions/Mnguyen"/>
	<updated>2026-05-18T07:13:23Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.13</generator>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Config:DataSource&amp;diff=5809</id>
		<title>Config:DataSource</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Config:DataSource&amp;diff=5809"/>
		<updated>2012-02-28T10:12:24Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* matlabDirect */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page lists the various SampleEvaluators used by the SUMO Toolbox. To find out more about the data formats and how to define your own data generating code go [[Interfacing_with_the_toolbox|here]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Generated for SUMO toolbox version 7.0&#039;&#039;&#039;.&lt;br /&gt;
&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please dont hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
== SampleEvaluator ==&lt;br /&gt;
&lt;br /&gt;
=== local ===&lt;br /&gt;
Use this if you data generator is a native executable, shell script, or java class&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]] id=&amp;quot;local&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.LocalSampleEvaluator&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Maximum number of times to resubmit a point (e.g., in case something went wrong) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;maxResubmissions&amp;quot; value=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;!-- If a sample takes longer than &amp;quot;sampleTimeout*average evaluation time of one sample&amp;quot; &lt;br /&gt;
   seconds to evaluate it is removed from the pending list (set to -1 to disable) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;sampleTimeout&amp;quot; value=&amp;quot;-1&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Can be set to &amp;quot;java&amp;quot; for java executables, to &amp;quot;external&amp;quot; for platform-specific&lt;br /&gt;
        binaries/scripts and to nothing at all for auto-detection.--&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;simulatorType&amp;quot; value=&amp;quot;&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Can be set to a number of seconds, if one simulator evaluation exceeds this timeout,&lt;br /&gt;
        the simulation is aborted --&amp;gt;&lt;br /&gt;
   &amp;lt;!-- &amp;lt;Option key=&amp;quot;timeout&amp;quot; value=&amp;quot;12&amp;quot;/&amp;gt; --&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Number of samples to evaluate concurrently, useful if you have a dual or multi-core machine --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;threadCount&amp;quot; value=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:SampleEvaluator|SampleEvaluator]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== matlabOld ===&lt;br /&gt;
Evaluate samples using a matlab script (ie. your simulator is a matlab script). The evaluation is handled via the Java side of the toolbox.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]] id=&amp;quot;matlab&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.matlab.MatlabSampleEvaluator&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Maximum number of times to resubmit a point (e.g., in case something went wrong) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;maxResubmissions&amp;quot; value=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;!-- If a sample takes longer than &amp;quot;sampleTimeout*average evaluation time of one sample&amp;quot; &lt;br /&gt;
   seconds to evaluate it is removed from the pending list (set to -1 to disable) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;sampleTimeout&amp;quot; value=&amp;quot;-1&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:SampleEvaluator|SampleEvaluator]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== matlab ===&lt;br /&gt;
Evaluate samples using a matlab script &#039;&#039;&#039;without&#039;&#039;&#039; using Java. This is the default evaluator of Matlab m-files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;SampleEvaluator id=&amp;quot;matlabDirect&amp;quot; type=&amp;quot;MatlabDirectSampleEvaluator&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== griddedDataset ===&lt;br /&gt;
Evaluate samples using a gridded dataset. This data format does not include any inputs, but lists only outputs and only work for a uniform grid of data points. The order in which the output values are given determine their location in the grid. &lt;br /&gt;
&lt;br /&gt;
For example, if you want to define a 3-dimensional dataset with grid size 2x3x2 on the [-1,1] domain, you must provide the outputs for the samples in the following order:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
value at [-1, -1, -1]&lt;br /&gt;
value at [-1, -1,  1]&lt;br /&gt;
value at [-1,  0, -1]&lt;br /&gt;
value at [-1,  0,  1]&lt;br /&gt;
value at [-1,  1, -1]&lt;br /&gt;
value at [-1,  1,  1]&lt;br /&gt;
value at [ 1, -1, -1]&lt;br /&gt;
value at [ 1, -1,  1]&lt;br /&gt;
value at [ 1,  0, -1]&lt;br /&gt;
value at [ 1,  0,  1]&lt;br /&gt;
value at [ 1,  1, -1]&lt;br /&gt;
value at [ 1,  1,  1]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]] id=&amp;quot;griddedDataset&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.datasets.GriddedDatasetSampleEvaluator&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Using an ID you can specify which dataset from the simulator file to use --&amp;gt;&lt;br /&gt;
   &amp;lt;!-- &amp;lt;Option key=&amp;quot;id&amp;quot; value=&amp;quot;someDataset&amp;quot;/&amp;gt; --&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:SampleEvaluator|SampleEvaluator]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scatteredDataset ===&lt;br /&gt;
Evaluate samples using a scattered dataset. Each row of the dataset represents a data point. If the dimensionality of the problem is D (i.e. there are D inputs), the first D columns represent the inputs and the remaining columns the outputs. Note that complex number need to given as separate columns.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]] id=&amp;quot;scatteredDataset&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.datasets.ScatteredDatasetSampleEvaluator&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Using an ID you can specify which dataset from the simulator file to use --&amp;gt;&lt;br /&gt;
   &amp;lt;!-- &amp;lt;Option key=&amp;quot;id&amp;quot; value=&amp;quot;someDataset&amp;quot;/&amp;gt; --&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:SampleEvaluator|SampleEvaluator]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== calcua ===&lt;br /&gt;
Evaluate samples on a SGE administered cluster through a remote, ssh reachable frontnode&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]] id=&amp;quot;calcua&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.distributed.sge.RemoteSGESampleEvaluator&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Maximum number of times to resubmit a point (e.g., in case something went wrong) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;maxResubmissions&amp;quot; value=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;!-- If a sample takes longer than &amp;quot;sampleTimeout*average evaluation time of one sample&amp;quot; &lt;br /&gt;
        seconds to evaluate it is removed from the pending list (set to -1 to disable) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;sampleTimeout&amp;quot; value=&amp;quot;-1&amp;quot;/&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
   &amp;lt;!--The platform specs of the cluster--&amp;gt;&lt;br /&gt;
   &amp;lt;[[Config:Executable|Executable]] platform=&amp;quot;linux&amp;quot; arch=&amp;quot;x86_64&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;[[Config:Backend|Backend]] id=&amp;quot;remoteSGE&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.distributed.sge.RemoteSGEBackend&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;!--ssh user name to login on the front node--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;user&amp;quot; value=&amp;quot;dgorisse&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--Submissions happen from this front node, you need to have key-based ssh authentication--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;frontNode&amp;quot; value=&amp;quot;submit.calcua.ua.ac.be&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--Directory on the front node where input/output files, dependencies, etc. are stored--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;remoteDirectory&amp;quot; value=&amp;quot;/storeA/users/dgorisse/output&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--poll for result files every xx seconds--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;pollInterval&amp;quot; value=&amp;quot;20&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--queues we can submit to--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;queues&amp;quot; value=&amp;quot;all.q,fast.q&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--check for faster queues (more slots available) every xx seconds--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;queueRevisionRate&amp;quot; value=&amp;quot;10&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--script on the frontnode that sets up the necessary shell environment--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;environmentCommand&amp;quot; value=&amp;quot;. ~/.profile;&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;/[[Config:Backend|Backend]]&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:SampleEvaluator|SampleEvaluator]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Config:DataSource&amp;diff=5808</id>
		<title>Config:DataSource</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Config:DataSource&amp;diff=5808"/>
		<updated>2012-02-28T10:11:58Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* matlab */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page lists the various SampleEvaluators used by the SUMO Toolbox. To find out more about the data formats and how to define your own data generating code go [[Interfacing_with_the_toolbox|here]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Generated for SUMO toolbox version 7.0&#039;&#039;&#039;.&lt;br /&gt;
&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please dont hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
== SampleEvaluator ==&lt;br /&gt;
&lt;br /&gt;
=== local ===&lt;br /&gt;
Use this if you data generator is a native executable, shell script, or java class&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]] id=&amp;quot;local&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.LocalSampleEvaluator&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Maximum number of times to resubmit a point (e.g., in case something went wrong) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;maxResubmissions&amp;quot; value=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;!-- If a sample takes longer than &amp;quot;sampleTimeout*average evaluation time of one sample&amp;quot; &lt;br /&gt;
   seconds to evaluate it is removed from the pending list (set to -1 to disable) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;sampleTimeout&amp;quot; value=&amp;quot;-1&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Can be set to &amp;quot;java&amp;quot; for java executables, to &amp;quot;external&amp;quot; for platform-specific&lt;br /&gt;
        binaries/scripts and to nothing at all for auto-detection.--&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;simulatorType&amp;quot; value=&amp;quot;&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Can be set to a number of seconds, if one simulator evaluation exceeds this timeout,&lt;br /&gt;
        the simulation is aborted --&amp;gt;&lt;br /&gt;
   &amp;lt;!-- &amp;lt;Option key=&amp;quot;timeout&amp;quot; value=&amp;quot;12&amp;quot;/&amp;gt; --&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Number of samples to evaluate concurrently, useful if you have a dual or multi-core machine --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;threadCount&amp;quot; value=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:SampleEvaluator|SampleEvaluator]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== matlabOld ===&lt;br /&gt;
Evaluate samples using a matlab script (ie. your simulator is a matlab script). The evaluation is handled via the Java side of the toolbox.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]] id=&amp;quot;matlab&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.matlab.MatlabSampleEvaluator&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Maximum number of times to resubmit a point (e.g., in case something went wrong) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;maxResubmissions&amp;quot; value=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;!-- If a sample takes longer than &amp;quot;sampleTimeout*average evaluation time of one sample&amp;quot; &lt;br /&gt;
   seconds to evaluate it is removed from the pending list (set to -1 to disable) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;sampleTimeout&amp;quot; value=&amp;quot;-1&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:SampleEvaluator|SampleEvaluator]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== matlabDirect ===&lt;br /&gt;
Evaluate samples using a matlab script &#039;&#039;&#039;without&#039;&#039;&#039; using Java.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;SampleEvaluator id=&amp;quot;matlabDirect&amp;quot; type=&amp;quot;MatlabDirectSampleEvaluator&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== griddedDataset ===&lt;br /&gt;
Evaluate samples using a gridded dataset. This data format does not include any inputs, but lists only outputs and only work for a uniform grid of data points. The order in which the output values are given determine their location in the grid. &lt;br /&gt;
&lt;br /&gt;
For example, if you want to define a 3-dimensional dataset with grid size 2x3x2 on the [-1,1] domain, you must provide the outputs for the samples in the following order:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
value at [-1, -1, -1]&lt;br /&gt;
value at [-1, -1,  1]&lt;br /&gt;
value at [-1,  0, -1]&lt;br /&gt;
value at [-1,  0,  1]&lt;br /&gt;
value at [-1,  1, -1]&lt;br /&gt;
value at [-1,  1,  1]&lt;br /&gt;
value at [ 1, -1, -1]&lt;br /&gt;
value at [ 1, -1,  1]&lt;br /&gt;
value at [ 1,  0, -1]&lt;br /&gt;
value at [ 1,  0,  1]&lt;br /&gt;
value at [ 1,  1, -1]&lt;br /&gt;
value at [ 1,  1,  1]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]] id=&amp;quot;griddedDataset&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.datasets.GriddedDatasetSampleEvaluator&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Using an ID you can specify which dataset from the simulator file to use --&amp;gt;&lt;br /&gt;
   &amp;lt;!-- &amp;lt;Option key=&amp;quot;id&amp;quot; value=&amp;quot;someDataset&amp;quot;/&amp;gt; --&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:SampleEvaluator|SampleEvaluator]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scatteredDataset ===&lt;br /&gt;
Evaluate samples using a scattered dataset. Each row of the dataset represents a data point. If the dimensionality of the problem is D (i.e. there are D inputs), the first D columns represent the inputs and the remaining columns the outputs. Note that complex number need to given as separate columns.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]] id=&amp;quot;scatteredDataset&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.datasets.ScatteredDatasetSampleEvaluator&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Using an ID you can specify which dataset from the simulator file to use --&amp;gt;&lt;br /&gt;
   &amp;lt;!-- &amp;lt;Option key=&amp;quot;id&amp;quot; value=&amp;quot;someDataset&amp;quot;/&amp;gt; --&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:SampleEvaluator|SampleEvaluator]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== calcua ===&lt;br /&gt;
Evaluate samples on a SGE administered cluster through a remote, ssh reachable frontnode&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]] id=&amp;quot;calcua&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.distributed.sge.RemoteSGESampleEvaluator&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Maximum number of times to resubmit a point (e.g., in case something went wrong) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;maxResubmissions&amp;quot; value=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;!-- If a sample takes longer than &amp;quot;sampleTimeout*average evaluation time of one sample&amp;quot; &lt;br /&gt;
        seconds to evaluate it is removed from the pending list (set to -1 to disable) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;sampleTimeout&amp;quot; value=&amp;quot;-1&amp;quot;/&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
   &amp;lt;!--The platform specs of the cluster--&amp;gt;&lt;br /&gt;
   &amp;lt;[[Config:Executable|Executable]] platform=&amp;quot;linux&amp;quot; arch=&amp;quot;x86_64&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;[[Config:Backend|Backend]] id=&amp;quot;remoteSGE&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.distributed.sge.RemoteSGEBackend&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;!--ssh user name to login on the front node--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;user&amp;quot; value=&amp;quot;dgorisse&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--Submissions happen from this front node, you need to have key-based ssh authentication--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;frontNode&amp;quot; value=&amp;quot;submit.calcua.ua.ac.be&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--Directory on the front node where input/output files, dependencies, etc. are stored--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;remoteDirectory&amp;quot; value=&amp;quot;/storeA/users/dgorisse/output&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--poll for result files every xx seconds--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;pollInterval&amp;quot; value=&amp;quot;20&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--queues we can submit to--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;queues&amp;quot; value=&amp;quot;all.q,fast.q&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--check for faster queues (more slots available) every xx seconds--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;queueRevisionRate&amp;quot; value=&amp;quot;10&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--script on the frontnode that sets up the necessary shell environment--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;environmentCommand&amp;quot; value=&amp;quot;. ~/.profile;&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;/[[Config:Backend|Backend]]&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:SampleEvaluator|SampleEvaluator]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5807</id>
		<title>Model types explained</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5807"/>
		<updated>2012-02-24T12:51:57Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* MOVFModel */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page gives some additional information about the implementation of Models implemented in the SUMO Toolbox. Note that the information is only given for the Model class and additional options may be available in the corresponding ModelFactory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please dont hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also see the [[Using a model]] and [[Add Model Type]] pages. &lt;br /&gt;
&lt;br /&gt;
== Model (Abstract base class) ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;Model&amp;lt;/code&amp;gt; class serves as an overall base class, it is the interface to which all models should adhere.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== RationalModel ==&lt;br /&gt;
&lt;br /&gt;
A rational model tries to interpolate or approximate data by a rational function, like&lt;br /&gt;
&amp;lt;math&amp;gt;3 x^2 y + 5 x y + 2x + 1&amp;lt;/math&amp;gt;&lt;br /&gt;
or by a quotient of 2 polynomial, like&lt;br /&gt;
&amp;lt;math&amp;gt;\dfrac{xy + 2x + 6y + 2}{xy + 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To decide which degrees (monomials) are present in numerator and denominator, the rational model depends on three model parameters:&lt;br /&gt;
* Variable weights W1 ... Wd (integer values, one for each dimension)&lt;br /&gt;
* Variable flags F1 ... Fd (boolean values, one for each dimension)&lt;br /&gt;
* An indicator for the degrees of freedom, P&lt;br /&gt;
&lt;br /&gt;
To determine which degrees to use, this procedure is followed:&lt;br /&gt;
# Determine the number of sample points N&lt;br /&gt;
# Use P to determine the requested degrees of freedom: freedom = N * P / 100&lt;br /&gt;
# Select degrees based on weighting and flags, using following rules:&lt;br /&gt;
#* Only variables for which Fi == false (0) are allowed in the denominator&lt;br /&gt;
#* Monomials with degrees (a1 ... ad) get precedence over monomials with degrees (b1 ... bd) if and only if the expression a1*W1 + ... + ad*Wd &amp;lt; b1*W1 + ... + bd*Wd&lt;br /&gt;
&lt;br /&gt;
The calculation of these suitable degrees are delegated to the Degrees class, which uses a Java implementation (Diophantine Solver) to order the monomials using the weighted expression.&lt;br /&gt;
&lt;br /&gt;
Rationale: The weighting scheme is in place because the number of model parameters had to be restricted in some way. [[http://www.sumo.intec.ugent.be/files/1999_09_IEEE_MTT.pdf|De Geest et al.]] used such a weighting scheme before to discriminate between variables. The toolbox tries to select suitable values adaptively. In this way, it can eliminate variables which have no significant impact on the output (like in the Kotanchek example).&lt;br /&gt;
&lt;br /&gt;
Please note that &#039;&#039;larger weights&#039;&#039; correspond to &#039;&#039;less important variables&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Two extra options are of interest:&lt;br /&gt;
# Selection of base function (a function handle)&lt;br /&gt;
# The frequencyVariable parameter (a variable name, or the keywords auto or off)&lt;br /&gt;
&lt;br /&gt;
It is sometimes advantageous to use a different set of base functions. The default set is just the power function: 1, x, x^2, ... The toolbox provides two alternatives for this, the Legendre base functions, and the Chebyshev base functions. Each occurrence of x^i in the above should be read as &#039;&#039;the value of the i&#039;th base function in x&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When the frequencyVariable parameter resolves to a variable name, or when it is set to auto and there is a variable named f, freq or frequency, that variable is treated differently. First of all it is scaled to by strictly positive. To do this the standard interval [-1,1] is rescaled to [j,2*j], in order to represent a true complex frequency. Then, a standard RationalModel is built, using &#039;&#039;only real coefficients&#039;&#039;. Only use this feature when [[Outputs#Complex_handling|complexHandling]] is set to &#039;complex&#039;, otherwise it is pointless.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== SVMModel ==&lt;br /&gt;
&lt;br /&gt;
SVMModel is the SUMO class for Support Vector Machines (SVM). It is a wrapper class for three different SVM implementations: LibSVM [http://www.csie.ntu.edu.tw/~cjlin/libsvm/], SVM-Light [http://svmlight.joachims.org/] and LS-SVM [http://www.esat.kuleuven.be/sista/lssvmlab/]. You can find more information about each implementation on their websites and in the SVMModel code.&lt;br /&gt;
&lt;br /&gt;
SVMModel has the following properties (note that some of these properties only apply to one specific implementation):&lt;br /&gt;
&lt;br /&gt;
* backend: Chooses which SVM implementation to use. The following options are valid: libSVM, libSVM, and lssvm. By default LibSVM is used.&lt;br /&gt;
* kernel: Chooses the kernel of the SVM. The following options are available: rbf (radial basis functions), lin (linear), poly (polynomial), and sig (sigmoid)&lt;br /&gt;
* kernelParams: Lets you specify the specific kernel parameters, the options here are dependent on the backend used&lt;br /&gt;
* regularizationParam: Lets you specify the trade-off parameter between the margin and the training error. The regularization parameter will be 10^regularizationParam&lt;br /&gt;
* epsilon: Sets the epsilon parameter of support vector regression (SVR). &lt;br /&gt;
* stoppingTolerance: Sets the tolerance for the stopping criterion.&lt;br /&gt;
* nu: Set the nu parameter of nu-SVR and nu-SVC (only for LibSVM)&lt;br /&gt;
* type: Sets the type of LibSVM (nu-SVR, epsilon-SVR, etc...)&lt;br /&gt;
* crossvalidationFolds: Set the number of folds for LibSVM in cross-validation mode&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== EureqaModel ==&lt;br /&gt;
&lt;br /&gt;
The EureqaModel implements the interface between the SUMO Toolbox and the Eureqa Toolbox. This interface is modified code from [http://www.mathworks.com/matlabcentral/fileexchange/32225-interface-with-eureqa-featuring-symbolic-regression]. The EureqaModel implementation does not do modelling itself, instead it connects to a Eureqa server from which it retrieves the solution. The options for the EureqaModel are the following:&lt;br /&gt;
&lt;br /&gt;
* fitness: Chooses the fitness function of the genetic search. The fitness functions are coded, e.g. 0 -&amp;gt; mean absolute error. The complete list of fitness functions can be found [http://code.google.com/p/eureqa-api/wiki/doc_fitness_types here].&lt;br /&gt;
* operators: A string with the operators allowed in the genetic search. The operators can be given in arbitrary order spaces not necessary. The set of possible operators is limited compared to the standalone GUI version of Eureqa. Only &#039;constant, +, -, *, /, ^, exp, log, sin, cos, abs, tan&#039; are supported.&lt;br /&gt;
* duration: The amount of time allocated to the genetic search in second. &lt;br /&gt;
* debug: Displays intermediate information during the search.&lt;br /&gt;
* doStart: If this is true, SUMO will automatically start a Eureqa server. If additional options about the server are given (see below) SUMO will start the server with these options. Otherwise a Eureqa server has to be started manually. &lt;br /&gt;
* pathToServer: The path where the Eureqa server is located. By default SUMO will look in the directory of the EureqaFactory class.&lt;br /&gt;
* host: The name of the host of the Eureqa server, by default this is localhost.&lt;br /&gt;
* port: The port with which to connect to the Eureqa Server.&lt;br /&gt;
* forceCores: Forces the server to use a specified amount of CPU cores.&lt;br /&gt;
* maxCores: Set the maximum number of CPU cores the Eureqa server can use.&lt;br /&gt;
* scaleFactors: Models in SUMO normally work in Model space, i.e. the input space is scaled to [-1 1] for all dimensions. The scaleFactors property tells SUMO how this [-1 1] should be scaled instead. When calling a EureqaModel from the EureqaFactory, the scaleFactors will be set equal to those defined in the Simulator.xml of the problem.&lt;br /&gt;
&lt;br /&gt;
EureqaModel returns a solution string which can be accessed by the method model.getFormula. The method model.getAllSolutions will give the entire pareto front of solutions as a cell of strings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== MOVFModel ==&lt;br /&gt;
&lt;br /&gt;
The MOVFModel implements the Multivariate Orthonormal Vector Fitting (MOVF) technique [http://www.sumo.intec.ugent.be/files/2008_07_IEEE_MTT.pdf]. This is a rational that fits the data in a least-square sense. This model is not included in the release version of the SUMO Toolbox due to licensing issues. Due to the implementation, the &#039;&#039;&#039;frequency has to be the last parameter&#039;&#039;&#039; of data given to the MOVFModel.&lt;br /&gt;
&lt;br /&gt;
The properties for MOVFModel are the following:&lt;br /&gt;
&lt;br /&gt;
* order: A vector with the order of each input parameter. If the basis used is rational, all the orders have to be even. If the basis used is polynomial, the orders for the geometrical parameters can be any positive integer, and only the order of the frequency has to be even. &lt;br /&gt;
* iter: Determines the number of internal optimization iterations of the MOVFModel.&lt;br /&gt;
* basis: Specifies the basis used to model the geometric parameters of the MOVFModel. The basis can either be &#039;&#039;rational&#039;&#039; or &#039;&#039;polynomial&#039;&#039;.&lt;br /&gt;
* errorFunc: A string with the name of an error function used to optimize the MOVFModel internally. The valid options can be found in src/matlab/tools/errorFunctions&lt;br /&gt;
* scaleFactors: Scales the data from the default [-1 1] input of SUMO to the desired bounds. When calling the MOVFModel from MOVFFactory the bounds defined in the Simulator.xml of the problem will be used.&lt;br /&gt;
* batchSize: Sets the number of samples that are evaluated simultaneously.&lt;br /&gt;
&lt;br /&gt;
The coefficients of the MOVFModel can be accessed via model.getMOVF.coef.&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Config:DataSource&amp;diff=5806</id>
		<title>Config:DataSource</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Config:DataSource&amp;diff=5806"/>
		<updated>2012-02-22T16:52:30Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page lists the various SampleEvaluators used by the SUMO Toolbox. To find out more about the data formats and how to define your own data generating code go [[Interfacing_with_the_toolbox|here]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Generated for SUMO toolbox version 7.0&#039;&#039;&#039;.&lt;br /&gt;
&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please dont hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
== SampleEvaluator ==&lt;br /&gt;
&lt;br /&gt;
=== local ===&lt;br /&gt;
Use this if you data generator is a native executable, shell script, or java class&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]] id=&amp;quot;local&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.LocalSampleEvaluator&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Maximum number of times to resubmit a point (e.g., in case something went wrong) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;maxResubmissions&amp;quot; value=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;!-- If a sample takes longer than &amp;quot;sampleTimeout*average evaluation time of one sample&amp;quot; &lt;br /&gt;
   seconds to evaluate it is removed from the pending list (set to -1 to disable) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;sampleTimeout&amp;quot; value=&amp;quot;-1&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Can be set to &amp;quot;java&amp;quot; for java executables, to &amp;quot;external&amp;quot; for platform-specific&lt;br /&gt;
        binaries/scripts and to nothing at all for auto-detection.--&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;simulatorType&amp;quot; value=&amp;quot;&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Can be set to a number of seconds, if one simulator evaluation exceeds this timeout,&lt;br /&gt;
        the simulation is aborted --&amp;gt;&lt;br /&gt;
   &amp;lt;!-- &amp;lt;Option key=&amp;quot;timeout&amp;quot; value=&amp;quot;12&amp;quot;/&amp;gt; --&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Number of samples to evaluate concurrently, useful if you have a dual or multi-core machine --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;threadCount&amp;quot; value=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:SampleEvaluator|SampleEvaluator]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== matlab ===&lt;br /&gt;
Evaluate samples using a matlab script (ie. your simulator is a matlab script)&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]] id=&amp;quot;matlab&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.matlab.MatlabSampleEvaluator&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Maximum number of times to resubmit a point (e.g., in case something went wrong) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;maxResubmissions&amp;quot; value=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;!-- If a sample takes longer than &amp;quot;sampleTimeout*average evaluation time of one sample&amp;quot; &lt;br /&gt;
   seconds to evaluate it is removed from the pending list (set to -1 to disable) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;sampleTimeout&amp;quot; value=&amp;quot;-1&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:SampleEvaluator|SampleEvaluator]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== matlabDirect ===&lt;br /&gt;
Evaluate samples using a matlab script &#039;&#039;&#039;without&#039;&#039;&#039; using Java.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;SampleEvaluator id=&amp;quot;matlabDirect&amp;quot; type=&amp;quot;MatlabDirectSampleEvaluator&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== griddedDataset ===&lt;br /&gt;
Evaluate samples using a gridded dataset. This data format does not include any inputs, but lists only outputs and only work for a uniform grid of data points. The order in which the output values are given determine their location in the grid. &lt;br /&gt;
&lt;br /&gt;
For example, if you want to define a 3-dimensional dataset with grid size 2x3x2 on the [-1,1] domain, you must provide the outputs for the samples in the following order:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
value at [-1, -1, -1]&lt;br /&gt;
value at [-1, -1,  1]&lt;br /&gt;
value at [-1,  0, -1]&lt;br /&gt;
value at [-1,  0,  1]&lt;br /&gt;
value at [-1,  1, -1]&lt;br /&gt;
value at [-1,  1,  1]&lt;br /&gt;
value at [ 1, -1, -1]&lt;br /&gt;
value at [ 1, -1,  1]&lt;br /&gt;
value at [ 1,  0, -1]&lt;br /&gt;
value at [ 1,  0,  1]&lt;br /&gt;
value at [ 1,  1, -1]&lt;br /&gt;
value at [ 1,  1,  1]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]] id=&amp;quot;griddedDataset&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.datasets.GriddedDatasetSampleEvaluator&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Using an ID you can specify which dataset from the simulator file to use --&amp;gt;&lt;br /&gt;
   &amp;lt;!-- &amp;lt;Option key=&amp;quot;id&amp;quot; value=&amp;quot;someDataset&amp;quot;/&amp;gt; --&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:SampleEvaluator|SampleEvaluator]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scatteredDataset ===&lt;br /&gt;
Evaluate samples using a scattered dataset. Each row of the dataset represents a data point. If the dimensionality of the problem is D (i.e. there are D inputs), the first D columns represent the inputs and the remaining columns the outputs. Note that complex number need to given as separate columns.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]] id=&amp;quot;scatteredDataset&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.datasets.ScatteredDatasetSampleEvaluator&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Using an ID you can specify which dataset from the simulator file to use --&amp;gt;&lt;br /&gt;
   &amp;lt;!-- &amp;lt;Option key=&amp;quot;id&amp;quot; value=&amp;quot;someDataset&amp;quot;/&amp;gt; --&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:SampleEvaluator|SampleEvaluator]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== calcua ===&lt;br /&gt;
Evaluate samples on a SGE administered cluster through a remote, ssh reachable frontnode&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]] id=&amp;quot;calcua&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.distributed.sge.RemoteSGESampleEvaluator&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Maximum number of times to resubmit a point (e.g., in case something went wrong) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;maxResubmissions&amp;quot; value=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;!-- If a sample takes longer than &amp;quot;sampleTimeout*average evaluation time of one sample&amp;quot; &lt;br /&gt;
        seconds to evaluate it is removed from the pending list (set to -1 to disable) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;sampleTimeout&amp;quot; value=&amp;quot;-1&amp;quot;/&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
   &amp;lt;!--The platform specs of the cluster--&amp;gt;&lt;br /&gt;
   &amp;lt;[[Config:Executable|Executable]] platform=&amp;quot;linux&amp;quot; arch=&amp;quot;x86_64&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;[[Config:Backend|Backend]] id=&amp;quot;remoteSGE&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.distributed.sge.RemoteSGEBackend&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;!--ssh user name to login on the front node--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;user&amp;quot; value=&amp;quot;dgorisse&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--Submissions happen from this front node, you need to have key-based ssh authentication--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;frontNode&amp;quot; value=&amp;quot;submit.calcua.ua.ac.be&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--Directory on the front node where input/output files, dependencies, etc. are stored--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;remoteDirectory&amp;quot; value=&amp;quot;/storeA/users/dgorisse/output&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--poll for result files every xx seconds--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;pollInterval&amp;quot; value=&amp;quot;20&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--queues we can submit to--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;queues&amp;quot; value=&amp;quot;all.q,fast.q&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--check for faster queues (more slots available) every xx seconds--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;queueRevisionRate&amp;quot; value=&amp;quot;10&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--script on the frontnode that sets up the necessary shell environment--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;environmentCommand&amp;quot; value=&amp;quot;. ~/.profile;&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;/[[Config:Backend|Backend]]&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:SampleEvaluator|SampleEvaluator]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Config:DataSource&amp;diff=5805</id>
		<title>Config:DataSource</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Config:DataSource&amp;diff=5805"/>
		<updated>2012-02-22T16:50:25Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* griddedDataset */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Generated for SUMO toolbox version 7.0&#039;&#039;&#039;.&lt;br /&gt;
&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please dont hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
== SampleEvaluator ==&lt;br /&gt;
&lt;br /&gt;
=== local ===&lt;br /&gt;
Use this if you data generator is a native executable, shell script, or java class&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]] id=&amp;quot;local&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.LocalSampleEvaluator&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Maximum number of times to resubmit a point (e.g., in case something went wrong) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;maxResubmissions&amp;quot; value=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;!-- If a sample takes longer than &amp;quot;sampleTimeout*average evaluation time of one sample&amp;quot; &lt;br /&gt;
   seconds to evaluate it is removed from the pending list (set to -1 to disable) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;sampleTimeout&amp;quot; value=&amp;quot;-1&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Can be set to &amp;quot;java&amp;quot; for java executables, to &amp;quot;external&amp;quot; for platform-specific&lt;br /&gt;
        binaries/scripts and to nothing at all for auto-detection.--&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;simulatorType&amp;quot; value=&amp;quot;&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Can be set to a number of seconds, if one simulator evaluation exceeds this timeout,&lt;br /&gt;
        the simulation is aborted --&amp;gt;&lt;br /&gt;
   &amp;lt;!-- &amp;lt;Option key=&amp;quot;timeout&amp;quot; value=&amp;quot;12&amp;quot;/&amp;gt; --&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Number of samples to evaluate concurrently, useful if you have a dual or multi-core machine --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;threadCount&amp;quot; value=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:SampleEvaluator|SampleEvaluator]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== matlab ===&lt;br /&gt;
Evaluate samples using a matlab script (ie. your simulator is a matlab script)&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]] id=&amp;quot;matlab&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.matlab.MatlabSampleEvaluator&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Maximum number of times to resubmit a point (e.g., in case something went wrong) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;maxResubmissions&amp;quot; value=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;!-- If a sample takes longer than &amp;quot;sampleTimeout*average evaluation time of one sample&amp;quot; &lt;br /&gt;
   seconds to evaluate it is removed from the pending list (set to -1 to disable) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;sampleTimeout&amp;quot; value=&amp;quot;-1&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:SampleEvaluator|SampleEvaluator]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== matlabDirect ===&lt;br /&gt;
Evaluate samples using a matlab script &#039;&#039;&#039;without&#039;&#039;&#039; using Java.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;SampleEvaluator id=&amp;quot;matlabDirect&amp;quot; type=&amp;quot;MatlabDirectSampleEvaluator&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== griddedDataset ===&lt;br /&gt;
Evaluate samples using a gridded dataset. This data format does not include any inputs, but lists only outputs and only work for a uniform grid of data points. The order in which the output values are given determine their location in the grid. &lt;br /&gt;
&lt;br /&gt;
For example, if you want to define a 3-dimensional dataset with grid size 2x3x2 on the [-1,1] domain, you must provide the outputs for the samples in the following order:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
value at [-1, -1, -1]&lt;br /&gt;
value at [-1, -1,  1]&lt;br /&gt;
value at [-1,  0, -1]&lt;br /&gt;
value at [-1,  0,  1]&lt;br /&gt;
value at [-1,  1, -1]&lt;br /&gt;
value at [-1,  1,  1]&lt;br /&gt;
value at [ 1, -1, -1]&lt;br /&gt;
value at [ 1, -1,  1]&lt;br /&gt;
value at [ 1,  0, -1]&lt;br /&gt;
value at [ 1,  0,  1]&lt;br /&gt;
value at [ 1,  1, -1]&lt;br /&gt;
value at [ 1,  1,  1]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]] id=&amp;quot;griddedDataset&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.datasets.GriddedDatasetSampleEvaluator&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Using an ID you can specify which dataset from the simulator file to use --&amp;gt;&lt;br /&gt;
   &amp;lt;!-- &amp;lt;Option key=&amp;quot;id&amp;quot; value=&amp;quot;someDataset&amp;quot;/&amp;gt; --&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:SampleEvaluator|SampleEvaluator]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== scatteredDataset ===&lt;br /&gt;
Evaluate samples using a scattered dataset. Each row of the dataset represents a data point. If the dimensionality of the problem is D (i.e. there are D inputs), the first D columns represent the inputs and the remaining columns the outputs. Note that complex number need to given as separate columns.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]] id=&amp;quot;scatteredDataset&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.datasets.ScatteredDatasetSampleEvaluator&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Using an ID you can specify which dataset from the simulator file to use --&amp;gt;&lt;br /&gt;
   &amp;lt;!-- &amp;lt;Option key=&amp;quot;id&amp;quot; value=&amp;quot;someDataset&amp;quot;/&amp;gt; --&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:SampleEvaluator|SampleEvaluator]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== calcua ===&lt;br /&gt;
Evaluate samples on a SGE administered cluster through a remote, ssh reachable frontnode&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]] id=&amp;quot;calcua&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.distributed.sge.RemoteSGESampleEvaluator&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Maximum number of times to resubmit a point (e.g., in case something went wrong) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;maxResubmissions&amp;quot; value=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;!-- If a sample takes longer than &amp;quot;sampleTimeout*average evaluation time of one sample&amp;quot; &lt;br /&gt;
        seconds to evaluate it is removed from the pending list (set to -1 to disable) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;sampleTimeout&amp;quot; value=&amp;quot;-1&amp;quot;/&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
   &amp;lt;!--The platform specs of the cluster--&amp;gt;&lt;br /&gt;
   &amp;lt;[[Config:Executable|Executable]] platform=&amp;quot;linux&amp;quot; arch=&amp;quot;x86_64&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;[[Config:Backend|Backend]] id=&amp;quot;remoteSGE&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.distributed.sge.RemoteSGEBackend&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;!--ssh user name to login on the front node--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;user&amp;quot; value=&amp;quot;dgorisse&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--Submissions happen from this front node, you need to have key-based ssh authentication--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;frontNode&amp;quot; value=&amp;quot;submit.calcua.ua.ac.be&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--Directory on the front node where input/output files, dependencies, etc. are stored--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;remoteDirectory&amp;quot; value=&amp;quot;/storeA/users/dgorisse/output&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--poll for result files every xx seconds--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;pollInterval&amp;quot; value=&amp;quot;20&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--queues we can submit to--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;queues&amp;quot; value=&amp;quot;all.q,fast.q&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--check for faster queues (more slots available) every xx seconds--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;queueRevisionRate&amp;quot; value=&amp;quot;10&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--script on the frontnode that sets up the necessary shell environment--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;environmentCommand&amp;quot; value=&amp;quot;. ~/.profile;&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;/[[Config:Backend|Backend]]&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:SampleEvaluator|SampleEvaluator]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Config:DataSource&amp;diff=5804</id>
		<title>Config:DataSource</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Config:DataSource&amp;diff=5804"/>
		<updated>2012-02-22T16:41:24Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* scatteredDataset */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Generated for SUMO toolbox version 7.0&#039;&#039;&#039;.&lt;br /&gt;
&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please dont hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
== SampleEvaluator ==&lt;br /&gt;
&lt;br /&gt;
=== local ===&lt;br /&gt;
Use this if you data generator is a native executable, shell script, or java class&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]] id=&amp;quot;local&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.LocalSampleEvaluator&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Maximum number of times to resubmit a point (e.g., in case something went wrong) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;maxResubmissions&amp;quot; value=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;!-- If a sample takes longer than &amp;quot;sampleTimeout*average evaluation time of one sample&amp;quot; &lt;br /&gt;
   seconds to evaluate it is removed from the pending list (set to -1 to disable) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;sampleTimeout&amp;quot; value=&amp;quot;-1&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Can be set to &amp;quot;java&amp;quot; for java executables, to &amp;quot;external&amp;quot; for platform-specific&lt;br /&gt;
        binaries/scripts and to nothing at all for auto-detection.--&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;simulatorType&amp;quot; value=&amp;quot;&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Can be set to a number of seconds, if one simulator evaluation exceeds this timeout,&lt;br /&gt;
        the simulation is aborted --&amp;gt;&lt;br /&gt;
   &amp;lt;!-- &amp;lt;Option key=&amp;quot;timeout&amp;quot; value=&amp;quot;12&amp;quot;/&amp;gt; --&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Number of samples to evaluate concurrently, useful if you have a dual or multi-core machine --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;threadCount&amp;quot; value=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:SampleEvaluator|SampleEvaluator]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== matlab ===&lt;br /&gt;
Evaluate samples using a matlab script (ie. your simulator is a matlab script)&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]] id=&amp;quot;matlab&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.matlab.MatlabSampleEvaluator&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Maximum number of times to resubmit a point (e.g., in case something went wrong) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;maxResubmissions&amp;quot; value=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;!-- If a sample takes longer than &amp;quot;sampleTimeout*average evaluation time of one sample&amp;quot; &lt;br /&gt;
   seconds to evaluate it is removed from the pending list (set to -1 to disable) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;sampleTimeout&amp;quot; value=&amp;quot;-1&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:SampleEvaluator|SampleEvaluator]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== matlabDirect ===&lt;br /&gt;
Evaluate samples using a matlab script &#039;&#039;&#039;without&#039;&#039;&#039; using Java.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;SampleEvaluator id=&amp;quot;matlabDirect&amp;quot; type=&amp;quot;MatlabDirectSampleEvaluator&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== griddedDataset ===&lt;br /&gt;
Evaluate samples using a gridded dataset&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]] id=&amp;quot;griddedDataset&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.datasets.GriddedDatasetSampleEvaluator&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Using an ID you can specify which dataset from the simulator file to use --&amp;gt;&lt;br /&gt;
   &amp;lt;!-- &amp;lt;Option key=&amp;quot;id&amp;quot; value=&amp;quot;someDataset&amp;quot;/&amp;gt; --&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:SampleEvaluator|SampleEvaluator]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== scatteredDataset ===&lt;br /&gt;
Evaluate samples using a scattered dataset. Each row of the dataset represents a data point. If the dimensionality of the problem is D (i.e. there are D inputs), the first D columns represent the inputs and the remaining columns the outputs. Note that complex number need to given as separate columns.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]] id=&amp;quot;scatteredDataset&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.datasets.ScatteredDatasetSampleEvaluator&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Using an ID you can specify which dataset from the simulator file to use --&amp;gt;&lt;br /&gt;
   &amp;lt;!-- &amp;lt;Option key=&amp;quot;id&amp;quot; value=&amp;quot;someDataset&amp;quot;/&amp;gt; --&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:SampleEvaluator|SampleEvaluator]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== calcua ===&lt;br /&gt;
Evaluate samples on a SGE administered cluster through a remote, ssh reachable frontnode&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]] id=&amp;quot;calcua&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.distributed.sge.RemoteSGESampleEvaluator&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;!-- Maximum number of times to resubmit a point (e.g., in case something went wrong) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;maxResubmissions&amp;quot; value=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;!-- If a sample takes longer than &amp;quot;sampleTimeout*average evaluation time of one sample&amp;quot; &lt;br /&gt;
        seconds to evaluate it is removed from the pending list (set to -1 to disable) --&amp;gt;&lt;br /&gt;
   &amp;lt;Option key=&amp;quot;sampleTimeout&amp;quot; value=&amp;quot;-1&amp;quot;/&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
   &amp;lt;!--The platform specs of the cluster--&amp;gt;&lt;br /&gt;
   &amp;lt;[[Config:Executable|Executable]] platform=&amp;quot;linux&amp;quot; arch=&amp;quot;x86_64&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;[[Config:Backend|Backend]] id=&amp;quot;remoteSGE&amp;quot; type=&amp;quot;ibbt.sumo.sampleevaluators.distributed.sge.RemoteSGEBackend&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;!--ssh user name to login on the front node--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;user&amp;quot; value=&amp;quot;dgorisse&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--Submissions happen from this front node, you need to have key-based ssh authentication--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;frontNode&amp;quot; value=&amp;quot;submit.calcua.ua.ac.be&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--Directory on the front node where input/output files, dependencies, etc. are stored--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;remoteDirectory&amp;quot; value=&amp;quot;/storeA/users/dgorisse/output&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--poll for result files every xx seconds--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;pollInterval&amp;quot; value=&amp;quot;20&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--queues we can submit to--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;queues&amp;quot; value=&amp;quot;all.q,fast.q&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--check for faster queues (more slots available) every xx seconds--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;queueRevisionRate&amp;quot; value=&amp;quot;10&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!--script on the frontnode that sets up the necessary shell environment--&amp;gt;&lt;br /&gt;
      &amp;lt;Option key=&amp;quot;environmentCommand&amp;quot; value=&amp;quot;. ~/.profile;&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;/[[Config:Backend|Backend]]&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:SampleEvaluator|SampleEvaluator]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Installation&amp;diff=5803</id>
		<title>Installation</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Installation&amp;diff=5803"/>
		<updated>2012-02-21T14:45:44Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* Windows */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
This page will walk you through the SUMO Toolbox installation. Please refer to the [[system requirements]] first. See the [[downloading]] section on how to download the toolbox.&lt;br /&gt;
&lt;br /&gt;
== Quick start ==&lt;br /&gt;
&lt;br /&gt;
Quick and dirty instructions:&lt;br /&gt;
&lt;br /&gt;
# Log into the SUMO lab website with the account information mailed to you and download the toolbox&lt;br /&gt;
# Unzip the toolbox zip file, it will create a directory (= the toolbox installation directory)&lt;br /&gt;
&amp;lt;!-- # Unzip the activation zip file &#039;&#039;&#039;INTO the toolbox installation directory&#039;&#039;&#039; (this file was mailed to you after you registered) --&amp;gt;&lt;br /&gt;
# Start Matlab&lt;br /&gt;
# Go to the toolbox directory&lt;br /&gt;
# Run &#039;&amp;lt;code&amp;gt;startup&amp;lt;/code&amp;gt;&#039;&lt;br /&gt;
# Run &#039;&amp;lt;code&amp;gt;go&amp;lt;/code&amp;gt;&#039;&lt;br /&gt;
&lt;br /&gt;
== Basic Installation ==&lt;br /&gt;
&lt;br /&gt;
=== Toolbox ===&lt;br /&gt;
Unzip the toolbox zip file to a directory somewhere on your harddisk, the full path of the SUMO Toolbox (including installation directory) will be referred to as the toolbox installation directory (e.g., c:\software\SUMO-Toolbox-6.3).  Note that you do &#039;&#039;&#039;not&#039;&#039;&#039; have to put the toolbox in the Matlab installation directory, we actually advise against it since it can cause confusing errors.&lt;br /&gt;
&lt;br /&gt;
Once you have unzipped the toolbox zip file the directory structure looks like this:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;toolbox installation directory&amp;gt; &#039;&#039;(e.g., c:\software\SUMO-Toolbox-6.3)&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
** &amp;lt;code&amp;gt;bin/&amp;lt;/code&amp;gt;			: binaries, executable scripts, ...&lt;br /&gt;
** &amp;lt;code&amp;gt;config/&amp;lt;/code&amp;gt;			: configuration files, location of &amp;lt;code&amp;gt;default.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
** &amp;lt;code&amp;gt;config/demo&amp;lt;/code&amp;gt;		: a couple of demo configuration files that may help you&lt;br /&gt;
** &amp;lt;code&amp;gt;doc/&amp;lt;/code&amp;gt; 			: some documentation&lt;br /&gt;
** &amp;lt;code&amp;gt;doc/apidoc&amp;lt;/code&amp;gt; 		: Javadoc and other api docs&lt;br /&gt;
** &amp;lt;code&amp;gt;lib/&amp;lt;/code&amp;gt; 			: required libraries (eg: dom4j)&lt;br /&gt;
** &amp;lt;code&amp;gt;output/&amp;lt;/code&amp;gt;			: some output may be placed here (e.g., a global log file)&lt;br /&gt;
** &amp;lt;code&amp;gt;src/&amp;lt;/code&amp;gt;			: all source code&lt;br /&gt;
** &amp;lt;code&amp;gt;examples/&amp;lt;/code&amp;gt;		: project directories of different examples (you can test with these problems and use them as an example to [[Adding an example|add your own]])&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
=== Activation file ===&lt;br /&gt;
&lt;br /&gt;
Once you have received the activation file simply unzip it &#039;&#039;&#039;INTO&#039;&#039;&#039; in your toolbox installation directory.  So place the zip file in the toolbox installation directory and unzip it there, it should place all files in the correct places (see also the README file in the activation zip).  DO NOT unzip the activation file into its own directory somewhere else. Make sure you restart Matlab (if it was running) after you have done this.&lt;br /&gt;
&lt;br /&gt;
=== Extension pack ===&lt;br /&gt;
&lt;br /&gt;
There are a number of third party tools and modeling libraries that the SUMO Toolbox can use but that we cannot distribute together with the toolbox. These have been bundled in an extension pack.  Only minor patches have been made to the original code to make them work better with SUMO (e.g., remove debug output).  To install the extension pack, download the zip file, and unzip it INTO your toolbox installation directory. The files should be placed in the correct directories.  Simply re-run &#039;startup&#039; to make Matlab aware of the new files.&lt;br /&gt;
&lt;br /&gt;
If you download and/or use these files  please respect their licenses (found in doc/licenses), &#039;&#039;&#039;THIS IS YOUR RESPONSIBILITY !!!&#039;&#039;&#039;.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
=== Setup ===&lt;br /&gt;
&lt;br /&gt;
Setting up the toolbox is very easy.  Start Matlab, navigate to the toolbox installation directory (not anywhere else, this is important!!) and run &#039;&amp;lt;code&amp;gt;startup&amp;lt;/code&amp;gt;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Test run ===&lt;br /&gt;
&lt;br /&gt;
To ensure everything is working you can do a simple run of the toolbox with the default configuration. This means the toolbox will use the setting specified in &amp;lt;code&amp;gt;&amp;lt;SUMO-Toolbox-installation-dir&amp;gt;/config/default.xml&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
# Make sure that you are in the toolbox installation directory and you have run &#039;&amp;lt;code&amp;gt;startup&amp;lt;/code&amp;gt;&#039; (see above)&lt;br /&gt;
# Type &#039;&amp;lt;code&amp;gt;go&amp;lt;/code&amp;gt;&#039; and press enter.&lt;br /&gt;
# The toolbox will start to model the &#039;&#039;Academic2DTwice&#039;&#039; simulator.  This simulator has 2 inputs and 2 outputs, and will be modeled using Kriging models, scored using [[Measures#CrossValidation| CrossValidation]], and samples selected using a combined sample selection method.&lt;br /&gt;
# To see the exact settings used open &amp;lt;code&amp;gt;config/default.xml&amp;lt;/code&amp;gt;.  Feel free to edit this file and play around with the different options.&lt;br /&gt;
&lt;br /&gt;
The examples directory contains many example simulators that you can use to test the toolbox with.  See [[Running#Running_different_examples]].&lt;br /&gt;
&lt;br /&gt;
== Ok, the test run works, now what? ==&lt;br /&gt;
&lt;br /&gt;
See [[Running]] page.&lt;br /&gt;
&lt;br /&gt;
== Problems ==&lt;br /&gt;
&lt;br /&gt;
See the [[reporting problems]] page.&lt;br /&gt;
&lt;br /&gt;
== Optional: Compiling libraries ==&lt;br /&gt;
&lt;br /&gt;
There are some alternative libraries and simulators available that have to be compiled for your specific platform. Instructions depend on your operating system.  Ensure you have installed the extension pack before continuing.&lt;br /&gt;
&lt;br /&gt;
=== Linux/Unix/OSX ===&lt;br /&gt;
&lt;br /&gt;
# Ensure you have the following environment variables set:&lt;br /&gt;
## &amp;lt;code&amp;gt;MATLABDIR=/path/to/your/matlab/installation&amp;lt;/code&amp;gt;&lt;br /&gt;
## &amp;lt;code&amp;gt;JAVA_HOME=/path/to/your/SDK/installation&amp;lt;/code&amp;gt;&lt;br /&gt;
# Ensure you have the usual build tools installed: gcc, g++, autotools, make, etc&lt;br /&gt;
# From the command line shell (so NOT from inside Matlab): Go to the toolbox installation directory and type &#039;&amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;&#039;. This will build everything for you (C/C++ files, SVM libraries, ...).  If you only want to build certain packages simply &#039;&amp;lt;code&amp;gt;make Package&amp;lt;/code&amp;gt;&#039; in the toolbox installation directory. &lt;br /&gt;
## Note: if this is giving you problems, and you just want to compile the LS-SVMs you can try running makeLSSVM from inside Matlab (see the Windows instructions below)&lt;br /&gt;
# A complete list of available packages follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;margin: 1em auto 1em auto&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Package&lt;br /&gt;
! Description&lt;br /&gt;
! Requires extension pack&lt;br /&gt;
|-&lt;br /&gt;
| contrib&lt;br /&gt;
| Builds the FANN, SVM (libsvm, LS-SVMlab) and NNSYSID libraries&lt;br /&gt;
| Yes&lt;br /&gt;
|-&lt;br /&gt;
| cexamples&lt;br /&gt;
| Builds the binaries for several C/C++ simulators&lt;br /&gt;
| No&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note: if you want to use FANN you will have to ensure Matlab knows of the FANN libraries. See [[FAQ#When_using_FANN_models_I_sometimes_get_.22Invalid_MEX-file_createFann.mexa64.2C_libfann.so.2:_cannot_open_shared_object_file:_No_such_file_or_directory..22 | the FAQ]].&lt;br /&gt;
&lt;br /&gt;
=== Windows ===&lt;br /&gt;
&lt;br /&gt;
# Compiling C/C++ codes (examples):&lt;br /&gt;
## You will have to do this on your own using a C/C++ compiler of your choice: Dev-c++/Visual Studio/...&lt;br /&gt;
# Compiling LS-SVM libraries:&lt;br /&gt;
## In order to use the [http://www.esat.kuleuven.be/sista/lssvmlab/ LS-SVM] backend, you will have to compile the LS-SVM mex files (it will work if you dont but you will get a lot of warning messages about a missing CFile implementation).&lt;br /&gt;
## This can be done using the built-in LCC compiler of matlab, by calling &#039;&amp;lt;code&amp;gt;makeLSSVM&amp;lt;/code&amp;gt;&#039; from the Matlab command prompt (make sure the SUMO Toolbox is in your path)&lt;br /&gt;
# Compiling ANN libraries:&lt;br /&gt;
## In order to use the [http://leenissen.dk/fann/ FANN] backend, you will have to compile the FANN library and mex files.&lt;br /&gt;
## So far nobody has yet got it to work under Windows, but don&#039;t let that stop you.&lt;br /&gt;
# Compiling Java classes using Eclipse (only for SVN version of the Toolbox, on linux you can just use the make command)&lt;br /&gt;
## open Eclipse&lt;br /&gt;
## import ant buildfile&lt;br /&gt;
### File-&amp;gt;New-&amp;gt;Other&lt;br /&gt;
### Java-&amp;gt;Java Project from Existing Ant Buildfile&lt;br /&gt;
### Select build.xml in the SUMO root directory&lt;br /&gt;
### click &#039;Finish&#039;&lt;br /&gt;
### Add external jars from Matlab install to buildpath if necessary&lt;br /&gt;
## Open configure.m in the SUMO root directory and change bin/ to src/ for the java paths (the lines below &#039;&#039;% add java paths&#039;&#039;)&lt;br /&gt;
## Type in &#039;go&#039; in the Matlab command line to see whether the compilation worked&lt;br /&gt;
## If the SUMO Toolbox does not start, make sure the java virtual machine of matlab and eclipse are the same&lt;br /&gt;
### Type in &#039;version(&#039;-java&#039;)&#039; in the Matlab command line to find the jvm version used by matlab&lt;br /&gt;
### In Eclipse, right click the SUMO-Toolbox project -&amp;gt; Properties  -&amp;gt; Java Compiler&lt;br /&gt;
### Change the Java Compiler used by Eclipse by ticking the &#039;Enable project specific settings&#039; and selecting the same version of the Java Compiler as the Matlab jvm&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Add_Modeling_Algorithm&amp;diff=5802</id>
		<title>Add Modeling Algorithm</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Add_Modeling_Algorithm&amp;diff=5802"/>
		<updated>2012-02-21T13:26:28Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* Adding a new model builder */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Make sure you are familiar with [[OO Programming in Matlab]] before you attempt any of this.&lt;br /&gt;
&lt;br /&gt;
== Model vs Model Builder ==&lt;br /&gt;
It is important to first make the distinction between the model type and the model builder (= modeling algorithm or hyperparameter optimization algorithm). Please first read the [[Add Model Type]] page first.&lt;br /&gt;
&lt;br /&gt;
The toolbox comes with a number of modeling algorithms but others can be easily added.&lt;br /&gt;
&lt;br /&gt;
== Available Model Builders  ==&lt;br /&gt;
&lt;br /&gt;
A list of the available model builders can be found in the &amp;lt;code&amp;gt;src/matlab/modelbuilders&amp;lt;/code&amp;gt; subdirectory.  The most important are:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;OptimizerModelBuilder&#039;&#039;&#039;: uses any algorithm that is implemented as part of the [[Optimizer]] hierarcy. A list of the optimizer configurations used in the default.xml can be found [[Config:Optimizer|here]].&lt;br /&gt;
* &#039;&#039;&#039;GeneticModelBuilder&#039;&#039;&#039;: a genetic algorithm is used to search the parameter space.  Given an initial population the algorithm uses crossover and mutation operators to search through the parameter space. (requires the [http://www.mathworks.com/products/gads/ Matlab Direct Search Toolbox (GADS) toolbox]).  Note that the GeneticModelBuilder has two possible population types: custom and doubleVector. Selecting doubleVector will pass the hyperparameters directly to the GADS toolbox. This allows you to use the mutation and crossover operators built-in the GADS toolbox. Using the custom option will pas the models itself to the GADS toolbox. This requires custom crossover and mutation operators for the model type you are using, which should be defined in the ModelFactory class for this model.&lt;br /&gt;
* &#039;&#039;&#039;AdaptiveModelBuilder&#039;&#039;&#039;: this is the base class, this will build a single model each iteration according to the configuration set in the xml file.  Thus there is no optimization, but it allows for full manual control&lt;br /&gt;
* &#039;&#039;&#039;ParetoModelBuilder&#039;&#039;&#039;: uses the [[Multi-Objective Modeling| multi-objective NSGA-II algorithm]] to generate models multi-objectively&lt;br /&gt;
* &#039;&#039;&#039;EGOModelBuilder&#039;&#039;&#039;: uses an algorithm based on the [http://portal.acm.org/citation.cfm?id=596218 Efficient Global Optimization algorithm] to search for good model parameters.  Basically this uses a nested kriging model to predict where to find the most promising models&lt;br /&gt;
* &#039;&#039;&#039;RandomModelBuilder&#039;&#039;&#039;: this is solely useful as a baseline comparison, it simply generates models with random model parameters (within user specified bounds)&lt;br /&gt;
&lt;br /&gt;
== Adding a new model builder ==&lt;br /&gt;
&lt;br /&gt;
If you would like to add a new optimization algorithm for optimizing the model parameters, you usually will have to do nothing more than [[add a new optimizer]] class.  Then you can simply plug that optimizer into the OptimizerModelBuilder.  Use one of the existing optimizers as an example to guide you.&lt;br /&gt;
&lt;br /&gt;
Alternatively, if you prefer to write your own algorithm from scratch you just have to derive from AdaptiveModelBuilder and provide the following methods:&lt;br /&gt;
&lt;br /&gt;
* a constructor that reads out the xml configuration and configures the modeling algorithm (MyModelBuilder.m)&lt;br /&gt;
* runLoop.m : this is the main loop of your algorithm, it gets the current available samples and builds new models according to your optimization algorithm&lt;br /&gt;
* the optimized models are passed to the rest of Toolbox via the &#039;&#039;DefaultFitnessFunction&#039;&#039;, which has to be called to in runLoop.m&lt;br /&gt;
&lt;br /&gt;
Once your algorithm is implemented you can then write the necessary factories for the model types you wish to use. See the [[Add Model Type]] page for more information.  Make sure you think hard about the interfacing with the different model factories. Try to keep the number of methods that model factories need to implement as small as possible.&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5801</id>
		<title>Model types explained</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5801"/>
		<updated>2012-02-15T16:08:07Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* MOVFModel */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page gives some additional information about the implementation of Models implemented in the SUMO Toolbox. Note that the information is only given for the Model class and additional options may be available in the corresponding ModelFactory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please dont hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also see the [[Using a model]] and [[Add Model Type]] pages. &lt;br /&gt;
&lt;br /&gt;
== Model (Abstract base class) ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;Model&amp;lt;/code&amp;gt; class serves as an overall base class, it is the interface to which all models should adhere.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== RationalModel ==&lt;br /&gt;
&lt;br /&gt;
A rational model tries to interpolate or approximate data by a rational function, like&lt;br /&gt;
&amp;lt;math&amp;gt;3 x^2 y + 5 x y + 2x + 1&amp;lt;/math&amp;gt;&lt;br /&gt;
or by a quotient of 2 polynomial, like&lt;br /&gt;
&amp;lt;math&amp;gt;\dfrac{xy + 2x + 6y + 2}{xy + 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To decide which degrees (monomials) are present in numerator and denominator, the rational model depends on three model parameters:&lt;br /&gt;
* Variable weights W1 ... Wd (integer values, one for each dimension)&lt;br /&gt;
* Variable flags F1 ... Fd (boolean values, one for each dimension)&lt;br /&gt;
* An indicator for the degrees of freedom, P&lt;br /&gt;
&lt;br /&gt;
To determine which degrees to use, this procedure is followed:&lt;br /&gt;
# Determine the number of sample points N&lt;br /&gt;
# Use P to determine the requested degrees of freedom: freedom = N * P / 100&lt;br /&gt;
# Select degrees based on weighting and flags, using following rules:&lt;br /&gt;
#* Only variables for which Fi == false (0) are allowed in the denominator&lt;br /&gt;
#* Monomials with degrees (a1 ... ad) get precedence over monomials with degrees (b1 ... bd) if and only if the expression a1*W1 + ... + ad*Wd &amp;lt; b1*W1 + ... + bd*Wd&lt;br /&gt;
&lt;br /&gt;
The calculation of these suitable degrees are delegated to the Degrees class, which uses a Java implementation (Diophantine Solver) to order the monomials using the weighted expression.&lt;br /&gt;
&lt;br /&gt;
Rationale: The weighting scheme is in place because the number of model parameters had to be restricted in some way. [[http://www.sumo.intec.ugent.be/files/1999_09_IEEE_MTT.pdf|De Geest et al.]] used such a weighting scheme before to discriminate between variables. The toolbox tries to select suitable values adaptively. In this way, it can eliminate variables which have no significant impact on the output (like in the Kotanchek example).&lt;br /&gt;
&lt;br /&gt;
Please note that &#039;&#039;larger weights&#039;&#039; correspond to &#039;&#039;less important variables&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Two extra options are of interest:&lt;br /&gt;
# Selection of base function (a function handle)&lt;br /&gt;
# The frequencyVariable parameter (a variable name, or the keywords auto or off)&lt;br /&gt;
&lt;br /&gt;
It is sometimes advantageous to use a different set of base functions. The default set is just the power function: 1, x, x^2, ... The toolbox provides two alternatives for this, the Legendre base functions, and the Chebyshev base functions. Each occurrence of x^i in the above should be read as &#039;&#039;the value of the i&#039;th base function in x&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When the frequencyVariable parameter resolves to a variable name, or when it is set to auto and there is a variable named f, freq or frequency, that variable is treated differently. First of all it is scaled to by strictly positive. To do this the standard interval [-1,1] is rescaled to [j,2*j], in order to represent a true complex frequency. Then, a standard RationalModel is built, using &#039;&#039;only real coefficients&#039;&#039;. Only use this feature when [[Outputs#Complex_handling|complexHandling]] is set to &#039;complex&#039;, otherwise it is pointless.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== SVMModel ==&lt;br /&gt;
&lt;br /&gt;
SVMModel is the SUMO class for Support Vector Machines (SVM). It is a wrapper class for three different SVM implementations: LibSVM [http://www.csie.ntu.edu.tw/~cjlin/libsvm/], SVM-Light [http://svmlight.joachims.org/] and LS-SVM [http://www.esat.kuleuven.be/sista/lssvmlab/]. You can find more information about each implementation on their websites and in the SVMModel code.&lt;br /&gt;
&lt;br /&gt;
SVMModel has the following properties (note that some of these properties only apply to one specific implementation):&lt;br /&gt;
&lt;br /&gt;
* backend: Chooses which SVM implementation to use. The following options are valid: libSVM, libSVM, and lssvm. By default LibSVM is used.&lt;br /&gt;
* kernel: Chooses the kernel of the SVM. The following options are available: rbf (radial basis functions), lin (linear), poly (polynomial), and sig (sigmoid)&lt;br /&gt;
* kernelParams: Lets you specify the specific kernel parameters, the options here are dependent on the backend used&lt;br /&gt;
* regularizationParam: Lets you specify the trade-off parameter between the margin and the training error. The regularization parameter will be 10^regularizationParam&lt;br /&gt;
* epsilon: Sets the epsilon parameter of support vector regression (SVR). &lt;br /&gt;
* stoppingTolerance: Sets the tolerance for the stopping criterion.&lt;br /&gt;
* nu: Set the nu parameter of nu-SVR and nu-SVC (only for LibSVM)&lt;br /&gt;
* type: Sets the type of LibSVM (nu-SVR, epsilon-SVR, etc...)&lt;br /&gt;
* crossvalidationFolds: Set the number of folds for LibSVM in cross-validation mode&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== EureqaModel ==&lt;br /&gt;
&lt;br /&gt;
The EureqaModel implements the interface between the SUMO Toolbox and the Eureqa Toolbox. This interface is modified code from [http://www.mathworks.com/matlabcentral/fileexchange/32225-interface-with-eureqa-featuring-symbolic-regression]. The EureqaModel implementation does not do modelling itself, instead it connects to a Eureqa server from which it retrieves the solution. The options for the EureqaModel are the following:&lt;br /&gt;
&lt;br /&gt;
* fitness: Chooses the fitness function of the genetic search. The fitness functions are coded, e.g. 0 -&amp;gt; mean absolute error. The complete list of fitness functions can be found [http://code.google.com/p/eureqa-api/wiki/doc_fitness_types here].&lt;br /&gt;
* operators: A string with the operators allowed in the genetic search. The operators can be given in arbitrary order spaces not necessary. The set of possible operators is limited compared to the standalone GUI version of Eureqa. Only &#039;constant, +, -, *, /, ^, exp, log, sin, cos, abs, tan&#039; are supported.&lt;br /&gt;
* duration: The amount of time allocated to the genetic search in second. &lt;br /&gt;
* debug: Displays intermediate information during the search.&lt;br /&gt;
* doStart: If this is true, SUMO will automatically start a Eureqa server. If additional options about the server are given (see below) SUMO will start the server with these options. Otherwise a Eureqa server has to be started manually. &lt;br /&gt;
* pathToServer: The path where the Eureqa server is located. By default SUMO will look in the directory of the EureqaFactory class.&lt;br /&gt;
* host: The name of the host of the Eureqa server, by default this is localhost.&lt;br /&gt;
* port: The port with which to connect to the Eureqa Server.&lt;br /&gt;
* forceCores: Forces the server to use a specified amount of CPU cores.&lt;br /&gt;
* maxCores: Set the maximum number of CPU cores the Eureqa server can use.&lt;br /&gt;
* scaleFactors: Models in SUMO normally work in Model space, i.e. the input space is scaled to [-1 1] for all dimensions. The scaleFactors property tells SUMO how this [-1 1] should be scaled instead. When calling a EureqaModel from the EureqaFactory, the scaleFactors will be set equal to those defined in the Simulator.xml of the problem.&lt;br /&gt;
&lt;br /&gt;
EureqaModel returns a solution string which can be accessed by the method model.getFormula. The method model.getAllSolutions will give the entire pareto front of solutions as a cell of strings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== MOVFModel ==&lt;br /&gt;
&lt;br /&gt;
The MOVFModel implements the Multivariate Orthonormal Vector Fitting (MOVF) technique [http://www.sumo.intec.ugent.be/files/2008_07_IEEE_MTT.pdf]. This is a rational that fits the data in a least-square sense. This model is not included in the release version of the SUMO Toolbox due to licensing issues. Due to the implementation, the &#039;&#039;&#039;frequency has to be the last parameter&#039;&#039;&#039; of data given to the MOVFModel.&lt;br /&gt;
&lt;br /&gt;
The properties for MOVFModel are the following:&lt;br /&gt;
&lt;br /&gt;
* order: A vector with the order of each input parameter. If the basis used is rational, all the orders have to be even. If the basis used is polynomial, the orders for the geometrical parameters can be any positive integer, and only the order of the frequency has to be even. &lt;br /&gt;
* iter: Determines the number of internal optimization iterations of the MOVFModel.&lt;br /&gt;
* basis: Specifies the basis used to model the geometric parameters of the MOVFModel. The basis can either be &#039;&#039;rational&#039;&#039; or &#039;&#039;polynomial&#039;&#039;.&lt;br /&gt;
* errorFunc: A string with the name of an error function used to optimize the MOVFModel internally. The valid options can be found in src/matlab/tools/errorFunctions&lt;br /&gt;
* scaleFactors: Scales the data from the default [-1 1] input of SUMO to the desired bounds. When calling the MOVFModel from MOVFFactory the bounds defined in the Simulator.xml of the problem will be used.&lt;br /&gt;
&lt;br /&gt;
The coefficients of the MOVFModel can be accessed via model.getMOVF.coef.&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5800</id>
		<title>Model types explained</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5800"/>
		<updated>2012-02-15T16:07:57Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* EureqaModel */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page gives some additional information about the implementation of Models implemented in the SUMO Toolbox. Note that the information is only given for the Model class and additional options may be available in the corresponding ModelFactory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please dont hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also see the [[Using a model]] and [[Add Model Type]] pages. &lt;br /&gt;
&lt;br /&gt;
== Model (Abstract base class) ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;Model&amp;lt;/code&amp;gt; class serves as an overall base class, it is the interface to which all models should adhere.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== RationalModel ==&lt;br /&gt;
&lt;br /&gt;
A rational model tries to interpolate or approximate data by a rational function, like&lt;br /&gt;
&amp;lt;math&amp;gt;3 x^2 y + 5 x y + 2x + 1&amp;lt;/math&amp;gt;&lt;br /&gt;
or by a quotient of 2 polynomial, like&lt;br /&gt;
&amp;lt;math&amp;gt;\dfrac{xy + 2x + 6y + 2}{xy + 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To decide which degrees (monomials) are present in numerator and denominator, the rational model depends on three model parameters:&lt;br /&gt;
* Variable weights W1 ... Wd (integer values, one for each dimension)&lt;br /&gt;
* Variable flags F1 ... Fd (boolean values, one for each dimension)&lt;br /&gt;
* An indicator for the degrees of freedom, P&lt;br /&gt;
&lt;br /&gt;
To determine which degrees to use, this procedure is followed:&lt;br /&gt;
# Determine the number of sample points N&lt;br /&gt;
# Use P to determine the requested degrees of freedom: freedom = N * P / 100&lt;br /&gt;
# Select degrees based on weighting and flags, using following rules:&lt;br /&gt;
#* Only variables for which Fi == false (0) are allowed in the denominator&lt;br /&gt;
#* Monomials with degrees (a1 ... ad) get precedence over monomials with degrees (b1 ... bd) if and only if the expression a1*W1 + ... + ad*Wd &amp;lt; b1*W1 + ... + bd*Wd&lt;br /&gt;
&lt;br /&gt;
The calculation of these suitable degrees are delegated to the Degrees class, which uses a Java implementation (Diophantine Solver) to order the monomials using the weighted expression.&lt;br /&gt;
&lt;br /&gt;
Rationale: The weighting scheme is in place because the number of model parameters had to be restricted in some way. [[http://www.sumo.intec.ugent.be/files/1999_09_IEEE_MTT.pdf|De Geest et al.]] used such a weighting scheme before to discriminate between variables. The toolbox tries to select suitable values adaptively. In this way, it can eliminate variables which have no significant impact on the output (like in the Kotanchek example).&lt;br /&gt;
&lt;br /&gt;
Please note that &#039;&#039;larger weights&#039;&#039; correspond to &#039;&#039;less important variables&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Two extra options are of interest:&lt;br /&gt;
# Selection of base function (a function handle)&lt;br /&gt;
# The frequencyVariable parameter (a variable name, or the keywords auto or off)&lt;br /&gt;
&lt;br /&gt;
It is sometimes advantageous to use a different set of base functions. The default set is just the power function: 1, x, x^2, ... The toolbox provides two alternatives for this, the Legendre base functions, and the Chebyshev base functions. Each occurrence of x^i in the above should be read as &#039;&#039;the value of the i&#039;th base function in x&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When the frequencyVariable parameter resolves to a variable name, or when it is set to auto and there is a variable named f, freq or frequency, that variable is treated differently. First of all it is scaled to by strictly positive. To do this the standard interval [-1,1] is rescaled to [j,2*j], in order to represent a true complex frequency. Then, a standard RationalModel is built, using &#039;&#039;only real coefficients&#039;&#039;. Only use this feature when [[Outputs#Complex_handling|complexHandling]] is set to &#039;complex&#039;, otherwise it is pointless.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== SVMModel ==&lt;br /&gt;
&lt;br /&gt;
SVMModel is the SUMO class for Support Vector Machines (SVM). It is a wrapper class for three different SVM implementations: LibSVM [http://www.csie.ntu.edu.tw/~cjlin/libsvm/], SVM-Light [http://svmlight.joachims.org/] and LS-SVM [http://www.esat.kuleuven.be/sista/lssvmlab/]. You can find more information about each implementation on their websites and in the SVMModel code.&lt;br /&gt;
&lt;br /&gt;
SVMModel has the following properties (note that some of these properties only apply to one specific implementation):&lt;br /&gt;
&lt;br /&gt;
* backend: Chooses which SVM implementation to use. The following options are valid: libSVM, libSVM, and lssvm. By default LibSVM is used.&lt;br /&gt;
* kernel: Chooses the kernel of the SVM. The following options are available: rbf (radial basis functions), lin (linear), poly (polynomial), and sig (sigmoid)&lt;br /&gt;
* kernelParams: Lets you specify the specific kernel parameters, the options here are dependent on the backend used&lt;br /&gt;
* regularizationParam: Lets you specify the trade-off parameter between the margin and the training error. The regularization parameter will be 10^regularizationParam&lt;br /&gt;
* epsilon: Sets the epsilon parameter of support vector regression (SVR). &lt;br /&gt;
* stoppingTolerance: Sets the tolerance for the stopping criterion.&lt;br /&gt;
* nu: Set the nu parameter of nu-SVR and nu-SVC (only for LibSVM)&lt;br /&gt;
* type: Sets the type of LibSVM (nu-SVR, epsilon-SVR, etc...)&lt;br /&gt;
* crossvalidationFolds: Set the number of folds for LibSVM in cross-validation mode&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== EureqaModel ==&lt;br /&gt;
&lt;br /&gt;
The EureqaModel implements the interface between the SUMO Toolbox and the Eureqa Toolbox. This interface is modified code from [http://www.mathworks.com/matlabcentral/fileexchange/32225-interface-with-eureqa-featuring-symbolic-regression]. The EureqaModel implementation does not do modelling itself, instead it connects to a Eureqa server from which it retrieves the solution. The options for the EureqaModel are the following:&lt;br /&gt;
&lt;br /&gt;
* fitness: Chooses the fitness function of the genetic search. The fitness functions are coded, e.g. 0 -&amp;gt; mean absolute error. The complete list of fitness functions can be found [http://code.google.com/p/eureqa-api/wiki/doc_fitness_types here].&lt;br /&gt;
* operators: A string with the operators allowed in the genetic search. The operators can be given in arbitrary order spaces not necessary. The set of possible operators is limited compared to the standalone GUI version of Eureqa. Only &#039;constant, +, -, *, /, ^, exp, log, sin, cos, abs, tan&#039; are supported.&lt;br /&gt;
* duration: The amount of time allocated to the genetic search in second. &lt;br /&gt;
* debug: Displays intermediate information during the search.&lt;br /&gt;
* doStart: If this is true, SUMO will automatically start a Eureqa server. If additional options about the server are given (see below) SUMO will start the server with these options. Otherwise a Eureqa server has to be started manually. &lt;br /&gt;
* pathToServer: The path where the Eureqa server is located. By default SUMO will look in the directory of the EureqaFactory class.&lt;br /&gt;
* host: The name of the host of the Eureqa server, by default this is localhost.&lt;br /&gt;
* port: The port with which to connect to the Eureqa Server.&lt;br /&gt;
* forceCores: Forces the server to use a specified amount of CPU cores.&lt;br /&gt;
* maxCores: Set the maximum number of CPU cores the Eureqa server can use.&lt;br /&gt;
* scaleFactors: Models in SUMO normally work in Model space, i.e. the input space is scaled to [-1 1] for all dimensions. The scaleFactors property tells SUMO how this [-1 1] should be scaled instead. When calling a EureqaModel from the EureqaFactory, the scaleFactors will be set equal to those defined in the Simulator.xml of the problem.&lt;br /&gt;
&lt;br /&gt;
EureqaModel returns a solution string which can be accessed by the method model.getFormula. The method model.getAllSolutions will give the entire pareto front of solutions as a cell of strings.&lt;br /&gt;
&lt;br /&gt;
== MOVFModel ==&lt;br /&gt;
&lt;br /&gt;
The MOVFModel implements the Multivariate Orthonormal Vector Fitting (MOVF) technique [http://www.sumo.intec.ugent.be/files/2008_07_IEEE_MTT.pdf]. This is a rational that fits the data in a least-square sense. This model is not included in the release version of the SUMO Toolbox due to licensing issues. Due to the implementation, the &#039;&#039;&#039;frequency has to be the last parameter&#039;&#039;&#039; of data given to the MOVFModel.&lt;br /&gt;
&lt;br /&gt;
The properties for MOVFModel are the following:&lt;br /&gt;
&lt;br /&gt;
* order: A vector with the order of each input parameter. If the basis used is rational, all the orders have to be even. If the basis used is polynomial, the orders for the geometrical parameters can be any positive integer, and only the order of the frequency has to be even. &lt;br /&gt;
* iter: Determines the number of internal optimization iterations of the MOVFModel.&lt;br /&gt;
* basis: Specifies the basis used to model the geometric parameters of the MOVFModel. The basis can either be &#039;&#039;rational&#039;&#039; or &#039;&#039;polynomial&#039;&#039;.&lt;br /&gt;
* errorFunc: A string with the name of an error function used to optimize the MOVFModel internally. The valid options can be found in src/matlab/tools/errorFunctions&lt;br /&gt;
* scaleFactors: Scales the data from the default [-1 1] input of SUMO to the desired bounds. When calling the MOVFModel from MOVFFactory the bounds defined in the Simulator.xml of the problem will be used.&lt;br /&gt;
&lt;br /&gt;
The coefficients of the MOVFModel can be accessed via model.getMOVF.coef.&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5799</id>
		<title>Model types explained</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5799"/>
		<updated>2012-02-15T16:07:46Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* SVMModel */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page gives some additional information about the implementation of Models implemented in the SUMO Toolbox. Note that the information is only given for the Model class and additional options may be available in the corresponding ModelFactory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please dont hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also see the [[Using a model]] and [[Add Model Type]] pages. &lt;br /&gt;
&lt;br /&gt;
== Model (Abstract base class) ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;Model&amp;lt;/code&amp;gt; class serves as an overall base class, it is the interface to which all models should adhere.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== RationalModel ==&lt;br /&gt;
&lt;br /&gt;
A rational model tries to interpolate or approximate data by a rational function, like&lt;br /&gt;
&amp;lt;math&amp;gt;3 x^2 y + 5 x y + 2x + 1&amp;lt;/math&amp;gt;&lt;br /&gt;
or by a quotient of 2 polynomial, like&lt;br /&gt;
&amp;lt;math&amp;gt;\dfrac{xy + 2x + 6y + 2}{xy + 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To decide which degrees (monomials) are present in numerator and denominator, the rational model depends on three model parameters:&lt;br /&gt;
* Variable weights W1 ... Wd (integer values, one for each dimension)&lt;br /&gt;
* Variable flags F1 ... Fd (boolean values, one for each dimension)&lt;br /&gt;
* An indicator for the degrees of freedom, P&lt;br /&gt;
&lt;br /&gt;
To determine which degrees to use, this procedure is followed:&lt;br /&gt;
# Determine the number of sample points N&lt;br /&gt;
# Use P to determine the requested degrees of freedom: freedom = N * P / 100&lt;br /&gt;
# Select degrees based on weighting and flags, using following rules:&lt;br /&gt;
#* Only variables for which Fi == false (0) are allowed in the denominator&lt;br /&gt;
#* Monomials with degrees (a1 ... ad) get precedence over monomials with degrees (b1 ... bd) if and only if the expression a1*W1 + ... + ad*Wd &amp;lt; b1*W1 + ... + bd*Wd&lt;br /&gt;
&lt;br /&gt;
The calculation of these suitable degrees are delegated to the Degrees class, which uses a Java implementation (Diophantine Solver) to order the monomials using the weighted expression.&lt;br /&gt;
&lt;br /&gt;
Rationale: The weighting scheme is in place because the number of model parameters had to be restricted in some way. [[http://www.sumo.intec.ugent.be/files/1999_09_IEEE_MTT.pdf|De Geest et al.]] used such a weighting scheme before to discriminate between variables. The toolbox tries to select suitable values adaptively. In this way, it can eliminate variables which have no significant impact on the output (like in the Kotanchek example).&lt;br /&gt;
&lt;br /&gt;
Please note that &#039;&#039;larger weights&#039;&#039; correspond to &#039;&#039;less important variables&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Two extra options are of interest:&lt;br /&gt;
# Selection of base function (a function handle)&lt;br /&gt;
# The frequencyVariable parameter (a variable name, or the keywords auto or off)&lt;br /&gt;
&lt;br /&gt;
It is sometimes advantageous to use a different set of base functions. The default set is just the power function: 1, x, x^2, ... The toolbox provides two alternatives for this, the Legendre base functions, and the Chebyshev base functions. Each occurrence of x^i in the above should be read as &#039;&#039;the value of the i&#039;th base function in x&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When the frequencyVariable parameter resolves to a variable name, or when it is set to auto and there is a variable named f, freq or frequency, that variable is treated differently. First of all it is scaled to by strictly positive. To do this the standard interval [-1,1] is rescaled to [j,2*j], in order to represent a true complex frequency. Then, a standard RationalModel is built, using &#039;&#039;only real coefficients&#039;&#039;. Only use this feature when [[Outputs#Complex_handling|complexHandling]] is set to &#039;complex&#039;, otherwise it is pointless.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== SVMModel ==&lt;br /&gt;
&lt;br /&gt;
SVMModel is the SUMO class for Support Vector Machines (SVM). It is a wrapper class for three different SVM implementations: LibSVM [http://www.csie.ntu.edu.tw/~cjlin/libsvm/], SVM-Light [http://svmlight.joachims.org/] and LS-SVM [http://www.esat.kuleuven.be/sista/lssvmlab/]. You can find more information about each implementation on their websites and in the SVMModel code.&lt;br /&gt;
&lt;br /&gt;
SVMModel has the following properties (note that some of these properties only apply to one specific implementation):&lt;br /&gt;
&lt;br /&gt;
* backend: Chooses which SVM implementation to use. The following options are valid: libSVM, libSVM, and lssvm. By default LibSVM is used.&lt;br /&gt;
* kernel: Chooses the kernel of the SVM. The following options are available: rbf (radial basis functions), lin (linear), poly (polynomial), and sig (sigmoid)&lt;br /&gt;
* kernelParams: Lets you specify the specific kernel parameters, the options here are dependent on the backend used&lt;br /&gt;
* regularizationParam: Lets you specify the trade-off parameter between the margin and the training error. The regularization parameter will be 10^regularizationParam&lt;br /&gt;
* epsilon: Sets the epsilon parameter of support vector regression (SVR). &lt;br /&gt;
* stoppingTolerance: Sets the tolerance for the stopping criterion.&lt;br /&gt;
* nu: Set the nu parameter of nu-SVR and nu-SVC (only for LibSVM)&lt;br /&gt;
* type: Sets the type of LibSVM (nu-SVR, epsilon-SVR, etc...)&lt;br /&gt;
* crossvalidationFolds: Set the number of folds for LibSVM in cross-validation mode&lt;br /&gt;
&lt;br /&gt;
== EureqaModel ==&lt;br /&gt;
&lt;br /&gt;
The EureqaModel implements the interface between the SUMO Toolbox and the Eureqa Toolbox. This interface is modified code from [http://www.mathworks.com/matlabcentral/fileexchange/32225-interface-with-eureqa-featuring-symbolic-regression]. The EureqaModel implementation does not do modelling itself, instead it connects to a Eureqa server from which it retrieves the solution. The options for the EureqaModel are the following:&lt;br /&gt;
&lt;br /&gt;
* fitness: Chooses the fitness function of the genetic search. The fitness functions are coded, e.g. 0 -&amp;gt; mean absolute error. The complete list of fitness functions can be found [http://code.google.com/p/eureqa-api/wiki/doc_fitness_types here].&lt;br /&gt;
* operators: A string with the operators allowed in the genetic search. The operators can be given in arbitrary order spaces not necessary. The set of possible operators is limited compared to the standalone GUI version of Eureqa. Only &#039;constant, +, -, *, /, ^, exp, log, sin, cos, abs, tan&#039; are supported.&lt;br /&gt;
* duration: The amount of time allocated to the genetic search in second. &lt;br /&gt;
* debug: Displays intermediate information during the search.&lt;br /&gt;
* doStart: If this is true, SUMO will automatically start a Eureqa server. If additional options about the server are given (see below) SUMO will start the server with these options. Otherwise a Eureqa server has to be started manually. &lt;br /&gt;
* pathToServer: The path where the Eureqa server is located. By default SUMO will look in the directory of the EureqaFactory class.&lt;br /&gt;
* host: The name of the host of the Eureqa server, by default this is localhost.&lt;br /&gt;
* port: The port with which to connect to the Eureqa Server.&lt;br /&gt;
* forceCores: Forces the server to use a specified amount of CPU cores.&lt;br /&gt;
* maxCores: Set the maximum number of CPU cores the Eureqa server can use.&lt;br /&gt;
* scaleFactors: Models in SUMO normally work in Model space, i.e. the input space is scaled to [-1 1] for all dimensions. The scaleFactors property tells SUMO how this [-1 1] should be scaled instead. When calling a EureqaModel from the EureqaFactory, the scaleFactors will be set equal to those defined in the Simulator.xml of the problem.&lt;br /&gt;
&lt;br /&gt;
EureqaModel returns a solution string which can be accessed by the method model.getFormula. The method model.getAllSolutions will give the entire pareto front of solutions as a cell of strings.&lt;br /&gt;
&lt;br /&gt;
== MOVFModel ==&lt;br /&gt;
&lt;br /&gt;
The MOVFModel implements the Multivariate Orthonormal Vector Fitting (MOVF) technique [http://www.sumo.intec.ugent.be/files/2008_07_IEEE_MTT.pdf]. This is a rational that fits the data in a least-square sense. This model is not included in the release version of the SUMO Toolbox due to licensing issues. Due to the implementation, the &#039;&#039;&#039;frequency has to be the last parameter&#039;&#039;&#039; of data given to the MOVFModel.&lt;br /&gt;
&lt;br /&gt;
The properties for MOVFModel are the following:&lt;br /&gt;
&lt;br /&gt;
* order: A vector with the order of each input parameter. If the basis used is rational, all the orders have to be even. If the basis used is polynomial, the orders for the geometrical parameters can be any positive integer, and only the order of the frequency has to be even. &lt;br /&gt;
* iter: Determines the number of internal optimization iterations of the MOVFModel.&lt;br /&gt;
* basis: Specifies the basis used to model the geometric parameters of the MOVFModel. The basis can either be &#039;&#039;rational&#039;&#039; or &#039;&#039;polynomial&#039;&#039;.&lt;br /&gt;
* errorFunc: A string with the name of an error function used to optimize the MOVFModel internally. The valid options can be found in src/matlab/tools/errorFunctions&lt;br /&gt;
* scaleFactors: Scales the data from the default [-1 1] input of SUMO to the desired bounds. When calling the MOVFModel from MOVFFactory the bounds defined in the Simulator.xml of the problem will be used.&lt;br /&gt;
&lt;br /&gt;
The coefficients of the MOVFModel can be accessed via model.getMOVF.coef.&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5798</id>
		<title>Model types explained</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5798"/>
		<updated>2012-02-15T16:07:31Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* RationalModel */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page gives some additional information about the implementation of Models implemented in the SUMO Toolbox. Note that the information is only given for the Model class and additional options may be available in the corresponding ModelFactory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please dont hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also see the [[Using a model]] and [[Add Model Type]] pages. &lt;br /&gt;
&lt;br /&gt;
== Model (Abstract base class) ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;Model&amp;lt;/code&amp;gt; class serves as an overall base class, it is the interface to which all models should adhere.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== RationalModel ==&lt;br /&gt;
&lt;br /&gt;
A rational model tries to interpolate or approximate data by a rational function, like&lt;br /&gt;
&amp;lt;math&amp;gt;3 x^2 y + 5 x y + 2x + 1&amp;lt;/math&amp;gt;&lt;br /&gt;
or by a quotient of 2 polynomial, like&lt;br /&gt;
&amp;lt;math&amp;gt;\dfrac{xy + 2x + 6y + 2}{xy + 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To decide which degrees (monomials) are present in numerator and denominator, the rational model depends on three model parameters:&lt;br /&gt;
* Variable weights W1 ... Wd (integer values, one for each dimension)&lt;br /&gt;
* Variable flags F1 ... Fd (boolean values, one for each dimension)&lt;br /&gt;
* An indicator for the degrees of freedom, P&lt;br /&gt;
&lt;br /&gt;
To determine which degrees to use, this procedure is followed:&lt;br /&gt;
# Determine the number of sample points N&lt;br /&gt;
# Use P to determine the requested degrees of freedom: freedom = N * P / 100&lt;br /&gt;
# Select degrees based on weighting and flags, using following rules:&lt;br /&gt;
#* Only variables for which Fi == false (0) are allowed in the denominator&lt;br /&gt;
#* Monomials with degrees (a1 ... ad) get precedence over monomials with degrees (b1 ... bd) if and only if the expression a1*W1 + ... + ad*Wd &amp;lt; b1*W1 + ... + bd*Wd&lt;br /&gt;
&lt;br /&gt;
The calculation of these suitable degrees are delegated to the Degrees class, which uses a Java implementation (Diophantine Solver) to order the monomials using the weighted expression.&lt;br /&gt;
&lt;br /&gt;
Rationale: The weighting scheme is in place because the number of model parameters had to be restricted in some way. [[http://www.sumo.intec.ugent.be/files/1999_09_IEEE_MTT.pdf|De Geest et al.]] used such a weighting scheme before to discriminate between variables. The toolbox tries to select suitable values adaptively. In this way, it can eliminate variables which have no significant impact on the output (like in the Kotanchek example).&lt;br /&gt;
&lt;br /&gt;
Please note that &#039;&#039;larger weights&#039;&#039; correspond to &#039;&#039;less important variables&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Two extra options are of interest:&lt;br /&gt;
# Selection of base function (a function handle)&lt;br /&gt;
# The frequencyVariable parameter (a variable name, or the keywords auto or off)&lt;br /&gt;
&lt;br /&gt;
It is sometimes advantageous to use a different set of base functions. The default set is just the power function: 1, x, x^2, ... The toolbox provides two alternatives for this, the Legendre base functions, and the Chebyshev base functions. Each occurrence of x^i in the above should be read as &#039;&#039;the value of the i&#039;th base function in x&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When the frequencyVariable parameter resolves to a variable name, or when it is set to auto and there is a variable named f, freq or frequency, that variable is treated differently. First of all it is scaled to by strictly positive. To do this the standard interval [-1,1] is rescaled to [j,2*j], in order to represent a true complex frequency. Then, a standard RationalModel is built, using &#039;&#039;only real coefficients&#039;&#039;. Only use this feature when [[Outputs#Complex_handling|complexHandling]] is set to &#039;complex&#039;, otherwise it is pointless.&lt;br /&gt;
&lt;br /&gt;
== SVMModel ==&lt;br /&gt;
&lt;br /&gt;
SVMModel is the SUMO class for Support Vector Machines (SVM). It is a wrapper class for three different SVM implementations: LibSVM [http://www.csie.ntu.edu.tw/~cjlin/libsvm/], SVM-Light [http://svmlight.joachims.org/] and LS-SVM [http://www.esat.kuleuven.be/sista/lssvmlab/]. You can find more information about each implementation on their websites and in the SVMModel code.&lt;br /&gt;
&lt;br /&gt;
SVMModel has the following properties (note that some of these properties only apply to one specific implementation):&lt;br /&gt;
&lt;br /&gt;
* backend: Chooses which SVM implementation to use. The following options are valid: libSVM, libSVM, and lssvm. By default LibSVM is used.&lt;br /&gt;
* kernel: Chooses the kernel of the SVM. The following options are available: rbf (radial basis functions), lin (linear), poly (polynomial), and sig (sigmoid)&lt;br /&gt;
* kernelParams: Lets you specify the specific kernel parameters, the options here are dependent on the backend used&lt;br /&gt;
* regularizationParam: Lets you specify the trade-off parameter between the margin and the training error. The regularization parameter will be 10^regularizationParam&lt;br /&gt;
* epsilon: Sets the epsilon parameter of support vector regression (SVR). &lt;br /&gt;
* stoppingTolerance: Sets the tolerance for the stopping criterion.&lt;br /&gt;
* nu: Set the nu parameter of nu-SVR and nu-SVC (only for LibSVM)&lt;br /&gt;
* type: Sets the type of LibSVM (nu-SVR, epsilon-SVR, etc...)&lt;br /&gt;
* crossvalidationFolds: Set the number of folds for LibSVM in cross-validation mode&lt;br /&gt;
&lt;br /&gt;
== EureqaModel ==&lt;br /&gt;
&lt;br /&gt;
The EureqaModel implements the interface between the SUMO Toolbox and the Eureqa Toolbox. This interface is modified code from [http://www.mathworks.com/matlabcentral/fileexchange/32225-interface-with-eureqa-featuring-symbolic-regression]. The EureqaModel implementation does not do modelling itself, instead it connects to a Eureqa server from which it retrieves the solution. The options for the EureqaModel are the following:&lt;br /&gt;
&lt;br /&gt;
* fitness: Chooses the fitness function of the genetic search. The fitness functions are coded, e.g. 0 -&amp;gt; mean absolute error. The complete list of fitness functions can be found [http://code.google.com/p/eureqa-api/wiki/doc_fitness_types here].&lt;br /&gt;
* operators: A string with the operators allowed in the genetic search. The operators can be given in arbitrary order spaces not necessary. The set of possible operators is limited compared to the standalone GUI version of Eureqa. Only &#039;constant, +, -, *, /, ^, exp, log, sin, cos, abs, tan&#039; are supported.&lt;br /&gt;
* duration: The amount of time allocated to the genetic search in second. &lt;br /&gt;
* debug: Displays intermediate information during the search.&lt;br /&gt;
* doStart: If this is true, SUMO will automatically start a Eureqa server. If additional options about the server are given (see below) SUMO will start the server with these options. Otherwise a Eureqa server has to be started manually. &lt;br /&gt;
* pathToServer: The path where the Eureqa server is located. By default SUMO will look in the directory of the EureqaFactory class.&lt;br /&gt;
* host: The name of the host of the Eureqa server, by default this is localhost.&lt;br /&gt;
* port: The port with which to connect to the Eureqa Server.&lt;br /&gt;
* forceCores: Forces the server to use a specified amount of CPU cores.&lt;br /&gt;
* maxCores: Set the maximum number of CPU cores the Eureqa server can use.&lt;br /&gt;
* scaleFactors: Models in SUMO normally work in Model space, i.e. the input space is scaled to [-1 1] for all dimensions. The scaleFactors property tells SUMO how this [-1 1] should be scaled instead. When calling a EureqaModel from the EureqaFactory, the scaleFactors will be set equal to those defined in the Simulator.xml of the problem.&lt;br /&gt;
&lt;br /&gt;
EureqaModel returns a solution string which can be accessed by the method model.getFormula. The method model.getAllSolutions will give the entire pareto front of solutions as a cell of strings.&lt;br /&gt;
&lt;br /&gt;
== MOVFModel ==&lt;br /&gt;
&lt;br /&gt;
The MOVFModel implements the Multivariate Orthonormal Vector Fitting (MOVF) technique [http://www.sumo.intec.ugent.be/files/2008_07_IEEE_MTT.pdf]. This is a rational that fits the data in a least-square sense. This model is not included in the release version of the SUMO Toolbox due to licensing issues. Due to the implementation, the &#039;&#039;&#039;frequency has to be the last parameter&#039;&#039;&#039; of data given to the MOVFModel.&lt;br /&gt;
&lt;br /&gt;
The properties for MOVFModel are the following:&lt;br /&gt;
&lt;br /&gt;
* order: A vector with the order of each input parameter. If the basis used is rational, all the orders have to be even. If the basis used is polynomial, the orders for the geometrical parameters can be any positive integer, and only the order of the frequency has to be even. &lt;br /&gt;
* iter: Determines the number of internal optimization iterations of the MOVFModel.&lt;br /&gt;
* basis: Specifies the basis used to model the geometric parameters of the MOVFModel. The basis can either be &#039;&#039;rational&#039;&#039; or &#039;&#039;polynomial&#039;&#039;.&lt;br /&gt;
* errorFunc: A string with the name of an error function used to optimize the MOVFModel internally. The valid options can be found in src/matlab/tools/errorFunctions&lt;br /&gt;
* scaleFactors: Scales the data from the default [-1 1] input of SUMO to the desired bounds. When calling the MOVFModel from MOVFFactory the bounds defined in the Simulator.xml of the problem will be used.&lt;br /&gt;
&lt;br /&gt;
The coefficients of the MOVFModel can be accessed via model.getMOVF.coef.&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5797</id>
		<title>Model types explained</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5797"/>
		<updated>2012-02-15T16:07:24Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* SVMModel */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page gives some additional information about the implementation of Models implemented in the SUMO Toolbox. Note that the information is only given for the Model class and additional options may be available in the corresponding ModelFactory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please dont hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also see the [[Using a model]] and [[Add Model Type]] pages. &lt;br /&gt;
&lt;br /&gt;
== Model (Abstract base class) ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;Model&amp;lt;/code&amp;gt; class serves as an overall base class, it is the interface to which all models should adhere.&lt;br /&gt;
&lt;br /&gt;
== RationalModel ==&lt;br /&gt;
&lt;br /&gt;
A rational model tries to interpolate or approximate data by a rational function, like&lt;br /&gt;
&amp;lt;math&amp;gt;3 x^2 y + 5 x y + 2x + 1&amp;lt;/math&amp;gt;&lt;br /&gt;
or by a quotient of 2 polynomial, like&lt;br /&gt;
&amp;lt;math&amp;gt;\dfrac{xy + 2x + 6y + 2}{xy + 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To decide which degrees (monomials) are present in numerator and denominator, the rational model depends on three model parameters:&lt;br /&gt;
* Variable weights W1 ... Wd (integer values, one for each dimension)&lt;br /&gt;
* Variable flags F1 ... Fd (boolean values, one for each dimension)&lt;br /&gt;
* An indicator for the degrees of freedom, P&lt;br /&gt;
&lt;br /&gt;
To determine which degrees to use, this procedure is followed:&lt;br /&gt;
# Determine the number of sample points N&lt;br /&gt;
# Use P to determine the requested degrees of freedom: freedom = N * P / 100&lt;br /&gt;
# Select degrees based on weighting and flags, using following rules:&lt;br /&gt;
#* Only variables for which Fi == false (0) are allowed in the denominator&lt;br /&gt;
#* Monomials with degrees (a1 ... ad) get precedence over monomials with degrees (b1 ... bd) if and only if the expression a1*W1 + ... + ad*Wd &amp;lt; b1*W1 + ... + bd*Wd&lt;br /&gt;
&lt;br /&gt;
The calculation of these suitable degrees are delegated to the Degrees class, which uses a Java implementation (Diophantine Solver) to order the monomials using the weighted expression.&lt;br /&gt;
&lt;br /&gt;
Rationale: The weighting scheme is in place because the number of model parameters had to be restricted in some way. [[http://www.sumo.intec.ugent.be/files/1999_09_IEEE_MTT.pdf|De Geest et al.]] used such a weighting scheme before to discriminate between variables. The toolbox tries to select suitable values adaptively. In this way, it can eliminate variables which have no significant impact on the output (like in the Kotanchek example).&lt;br /&gt;
&lt;br /&gt;
Please note that &#039;&#039;larger weights&#039;&#039; correspond to &#039;&#039;less important variables&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Two extra options are of interest:&lt;br /&gt;
# Selection of base function (a function handle)&lt;br /&gt;
# The frequencyVariable parameter (a variable name, or the keywords auto or off)&lt;br /&gt;
&lt;br /&gt;
It is sometimes advantageous to use a different set of base functions. The default set is just the power function: 1, x, x^2, ... The toolbox provides two alternatives for this, the Legendre base functions, and the Chebyshev base functions. Each occurrence of x^i in the above should be read as &#039;&#039;the value of the i&#039;th base function in x&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When the frequencyVariable parameter resolves to a variable name, or when it is set to auto and there is a variable named f, freq or frequency, that variable is treated differently. First of all it is scaled to by strictly positive. To do this the standard interval [-1,1] is rescaled to [j,2*j], in order to represent a true complex frequency. Then, a standard RationalModel is built, using &#039;&#039;only real coefficients&#039;&#039;. Only use this feature when [[Outputs#Complex_handling|complexHandling]] is set to &#039;complex&#039;, otherwise it is pointless.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== SVMModel ==&lt;br /&gt;
&lt;br /&gt;
SVMModel is the SUMO class for Support Vector Machines (SVM). It is a wrapper class for three different SVM implementations: LibSVM [http://www.csie.ntu.edu.tw/~cjlin/libsvm/], SVM-Light [http://svmlight.joachims.org/] and LS-SVM [http://www.esat.kuleuven.be/sista/lssvmlab/]. You can find more information about each implementation on their websites and in the SVMModel code.&lt;br /&gt;
&lt;br /&gt;
SVMModel has the following properties (note that some of these properties only apply to one specific implementation):&lt;br /&gt;
&lt;br /&gt;
* backend: Chooses which SVM implementation to use. The following options are valid: libSVM, libSVM, and lssvm. By default LibSVM is used.&lt;br /&gt;
* kernel: Chooses the kernel of the SVM. The following options are available: rbf (radial basis functions), lin (linear), poly (polynomial), and sig (sigmoid)&lt;br /&gt;
* kernelParams: Lets you specify the specific kernel parameters, the options here are dependent on the backend used&lt;br /&gt;
* regularizationParam: Lets you specify the trade-off parameter between the margin and the training error. The regularization parameter will be 10^regularizationParam&lt;br /&gt;
* epsilon: Sets the epsilon parameter of support vector regression (SVR). &lt;br /&gt;
* stoppingTolerance: Sets the tolerance for the stopping criterion.&lt;br /&gt;
* nu: Set the nu parameter of nu-SVR and nu-SVC (only for LibSVM)&lt;br /&gt;
* type: Sets the type of LibSVM (nu-SVR, epsilon-SVR, etc...)&lt;br /&gt;
* crossvalidationFolds: Set the number of folds for LibSVM in cross-validation mode&lt;br /&gt;
&lt;br /&gt;
== EureqaModel ==&lt;br /&gt;
&lt;br /&gt;
The EureqaModel implements the interface between the SUMO Toolbox and the Eureqa Toolbox. This interface is modified code from [http://www.mathworks.com/matlabcentral/fileexchange/32225-interface-with-eureqa-featuring-symbolic-regression]. The EureqaModel implementation does not do modelling itself, instead it connects to a Eureqa server from which it retrieves the solution. The options for the EureqaModel are the following:&lt;br /&gt;
&lt;br /&gt;
* fitness: Chooses the fitness function of the genetic search. The fitness functions are coded, e.g. 0 -&amp;gt; mean absolute error. The complete list of fitness functions can be found [http://code.google.com/p/eureqa-api/wiki/doc_fitness_types here].&lt;br /&gt;
* operators: A string with the operators allowed in the genetic search. The operators can be given in arbitrary order spaces not necessary. The set of possible operators is limited compared to the standalone GUI version of Eureqa. Only &#039;constant, +, -, *, /, ^, exp, log, sin, cos, abs, tan&#039; are supported.&lt;br /&gt;
* duration: The amount of time allocated to the genetic search in second. &lt;br /&gt;
* debug: Displays intermediate information during the search.&lt;br /&gt;
* doStart: If this is true, SUMO will automatically start a Eureqa server. If additional options about the server are given (see below) SUMO will start the server with these options. Otherwise a Eureqa server has to be started manually. &lt;br /&gt;
* pathToServer: The path where the Eureqa server is located. By default SUMO will look in the directory of the EureqaFactory class.&lt;br /&gt;
* host: The name of the host of the Eureqa server, by default this is localhost.&lt;br /&gt;
* port: The port with which to connect to the Eureqa Server.&lt;br /&gt;
* forceCores: Forces the server to use a specified amount of CPU cores.&lt;br /&gt;
* maxCores: Set the maximum number of CPU cores the Eureqa server can use.&lt;br /&gt;
* scaleFactors: Models in SUMO normally work in Model space, i.e. the input space is scaled to [-1 1] for all dimensions. The scaleFactors property tells SUMO how this [-1 1] should be scaled instead. When calling a EureqaModel from the EureqaFactory, the scaleFactors will be set equal to those defined in the Simulator.xml of the problem.&lt;br /&gt;
&lt;br /&gt;
EureqaModel returns a solution string which can be accessed by the method model.getFormula. The method model.getAllSolutions will give the entire pareto front of solutions as a cell of strings.&lt;br /&gt;
&lt;br /&gt;
== MOVFModel ==&lt;br /&gt;
&lt;br /&gt;
The MOVFModel implements the Multivariate Orthonormal Vector Fitting (MOVF) technique [http://www.sumo.intec.ugent.be/files/2008_07_IEEE_MTT.pdf]. This is a rational that fits the data in a least-square sense. This model is not included in the release version of the SUMO Toolbox due to licensing issues. Due to the implementation, the &#039;&#039;&#039;frequency has to be the last parameter&#039;&#039;&#039; of data given to the MOVFModel.&lt;br /&gt;
&lt;br /&gt;
The properties for MOVFModel are the following:&lt;br /&gt;
&lt;br /&gt;
* order: A vector with the order of each input parameter. If the basis used is rational, all the orders have to be even. If the basis used is polynomial, the orders for the geometrical parameters can be any positive integer, and only the order of the frequency has to be even. &lt;br /&gt;
* iter: Determines the number of internal optimization iterations of the MOVFModel.&lt;br /&gt;
* basis: Specifies the basis used to model the geometric parameters of the MOVFModel. The basis can either be &#039;&#039;rational&#039;&#039; or &#039;&#039;polynomial&#039;&#039;.&lt;br /&gt;
* errorFunc: A string with the name of an error function used to optimize the MOVFModel internally. The valid options can be found in src/matlab/tools/errorFunctions&lt;br /&gt;
* scaleFactors: Scales the data from the default [-1 1] input of SUMO to the desired bounds. When calling the MOVFModel from MOVFFactory the bounds defined in the Simulator.xml of the problem will be used.&lt;br /&gt;
&lt;br /&gt;
The coefficients of the MOVFModel can be accessed via model.getMOVF.coef.&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5796</id>
		<title>Model types explained</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5796"/>
		<updated>2012-02-15T16:07:13Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* EureqaModel */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page gives some additional information about the implementation of Models implemented in the SUMO Toolbox. Note that the information is only given for the Model class and additional options may be available in the corresponding ModelFactory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please dont hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also see the [[Using a model]] and [[Add Model Type]] pages. &lt;br /&gt;
&lt;br /&gt;
== Model (Abstract base class) ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;Model&amp;lt;/code&amp;gt; class serves as an overall base class, it is the interface to which all models should adhere.&lt;br /&gt;
&lt;br /&gt;
== RationalModel ==&lt;br /&gt;
&lt;br /&gt;
A rational model tries to interpolate or approximate data by a rational function, like&lt;br /&gt;
&amp;lt;math&amp;gt;3 x^2 y + 5 x y + 2x + 1&amp;lt;/math&amp;gt;&lt;br /&gt;
or by a quotient of 2 polynomial, like&lt;br /&gt;
&amp;lt;math&amp;gt;\dfrac{xy + 2x + 6y + 2}{xy + 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To decide which degrees (monomials) are present in numerator and denominator, the rational model depends on three model parameters:&lt;br /&gt;
* Variable weights W1 ... Wd (integer values, one for each dimension)&lt;br /&gt;
* Variable flags F1 ... Fd (boolean values, one for each dimension)&lt;br /&gt;
* An indicator for the degrees of freedom, P&lt;br /&gt;
&lt;br /&gt;
To determine which degrees to use, this procedure is followed:&lt;br /&gt;
# Determine the number of sample points N&lt;br /&gt;
# Use P to determine the requested degrees of freedom: freedom = N * P / 100&lt;br /&gt;
# Select degrees based on weighting and flags, using following rules:&lt;br /&gt;
#* Only variables for which Fi == false (0) are allowed in the denominator&lt;br /&gt;
#* Monomials with degrees (a1 ... ad) get precedence over monomials with degrees (b1 ... bd) if and only if the expression a1*W1 + ... + ad*Wd &amp;lt; b1*W1 + ... + bd*Wd&lt;br /&gt;
&lt;br /&gt;
The calculation of these suitable degrees are delegated to the Degrees class, which uses a Java implementation (Diophantine Solver) to order the monomials using the weighted expression.&lt;br /&gt;
&lt;br /&gt;
Rationale: The weighting scheme is in place because the number of model parameters had to be restricted in some way. [[http://www.sumo.intec.ugent.be/files/1999_09_IEEE_MTT.pdf|De Geest et al.]] used such a weighting scheme before to discriminate between variables. The toolbox tries to select suitable values adaptively. In this way, it can eliminate variables which have no significant impact on the output (like in the Kotanchek example).&lt;br /&gt;
&lt;br /&gt;
Please note that &#039;&#039;larger weights&#039;&#039; correspond to &#039;&#039;less important variables&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Two extra options are of interest:&lt;br /&gt;
# Selection of base function (a function handle)&lt;br /&gt;
# The frequencyVariable parameter (a variable name, or the keywords auto or off)&lt;br /&gt;
&lt;br /&gt;
It is sometimes advantageous to use a different set of base functions. The default set is just the power function: 1, x, x^2, ... The toolbox provides two alternatives for this, the Legendre base functions, and the Chebyshev base functions. Each occurrence of x^i in the above should be read as &#039;&#039;the value of the i&#039;th base function in x&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When the frequencyVariable parameter resolves to a variable name, or when it is set to auto and there is a variable named f, freq or frequency, that variable is treated differently. First of all it is scaled to by strictly positive. To do this the standard interval [-1,1] is rescaled to [j,2*j], in order to represent a true complex frequency. Then, a standard RationalModel is built, using &#039;&#039;only real coefficients&#039;&#039;. Only use this feature when [[Outputs#Complex_handling|complexHandling]] is set to &#039;complex&#039;, otherwise it is pointless.&lt;br /&gt;
&lt;br /&gt;
== SVMModel ==&lt;br /&gt;
&lt;br /&gt;
SVMModel is the SUMO class for Support Vector Machines (SVM). It is a wrapper class for three different SVM implementations: LibSVM [http://www.csie.ntu.edu.tw/~cjlin/libsvm/], SVM-Light [http://svmlight.joachims.org/] and LS-SVM [http://www.esat.kuleuven.be/sista/lssvmlab/]. You can find more information about each implementation on their websites and in the SVMModel code.&lt;br /&gt;
&lt;br /&gt;
SVMModel has the following properties (note that some of these properties only apply to one specific implementation):&lt;br /&gt;
&lt;br /&gt;
* backend: Chooses which SVM implementation to use. The following options are valid: libSVM, libSVM, and lssvm. By default LibSVM is used.&lt;br /&gt;
* kernel: Chooses the kernel of the SVM. The following options are available: rbf (radial basis functions), lin (linear), poly (polynomial), and sig (sigmoid)&lt;br /&gt;
* kernelParams: Lets you specify the specific kernel parameters, the options here are dependent on the backend used&lt;br /&gt;
* regularizationParam: Lets you specify the trade-off parameter between the margin and the training error. The regularization parameter will be 10^regularizationParam&lt;br /&gt;
* epsilon: Sets the epsilon parameter of support vector regression (SVR). &lt;br /&gt;
* stoppingTolerance: Sets the tolerance for the stopping criterion.&lt;br /&gt;
* nu: Set the nu parameter of nu-SVR and nu-SVC (only for LibSVM)&lt;br /&gt;
* type: Sets the type of LibSVM (nu-SVR, epsilon-SVR, etc...)&lt;br /&gt;
* crossvalidationFolds: Set the number of folds for LibSVM in cross-validation mode&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== EureqaModel ==&lt;br /&gt;
&lt;br /&gt;
The EureqaModel implements the interface between the SUMO Toolbox and the Eureqa Toolbox. This interface is modified code from [http://www.mathworks.com/matlabcentral/fileexchange/32225-interface-with-eureqa-featuring-symbolic-regression]. The EureqaModel implementation does not do modelling itself, instead it connects to a Eureqa server from which it retrieves the solution. The options for the EureqaModel are the following:&lt;br /&gt;
&lt;br /&gt;
* fitness: Chooses the fitness function of the genetic search. The fitness functions are coded, e.g. 0 -&amp;gt; mean absolute error. The complete list of fitness functions can be found [http://code.google.com/p/eureqa-api/wiki/doc_fitness_types here].&lt;br /&gt;
* operators: A string with the operators allowed in the genetic search. The operators can be given in arbitrary order spaces not necessary. The set of possible operators is limited compared to the standalone GUI version of Eureqa. Only &#039;constant, +, -, *, /, ^, exp, log, sin, cos, abs, tan&#039; are supported.&lt;br /&gt;
* duration: The amount of time allocated to the genetic search in second. &lt;br /&gt;
* debug: Displays intermediate information during the search.&lt;br /&gt;
* doStart: If this is true, SUMO will automatically start a Eureqa server. If additional options about the server are given (see below) SUMO will start the server with these options. Otherwise a Eureqa server has to be started manually. &lt;br /&gt;
* pathToServer: The path where the Eureqa server is located. By default SUMO will look in the directory of the EureqaFactory class.&lt;br /&gt;
* host: The name of the host of the Eureqa server, by default this is localhost.&lt;br /&gt;
* port: The port with which to connect to the Eureqa Server.&lt;br /&gt;
* forceCores: Forces the server to use a specified amount of CPU cores.&lt;br /&gt;
* maxCores: Set the maximum number of CPU cores the Eureqa server can use.&lt;br /&gt;
* scaleFactors: Models in SUMO normally work in Model space, i.e. the input space is scaled to [-1 1] for all dimensions. The scaleFactors property tells SUMO how this [-1 1] should be scaled instead. When calling a EureqaModel from the EureqaFactory, the scaleFactors will be set equal to those defined in the Simulator.xml of the problem.&lt;br /&gt;
&lt;br /&gt;
EureqaModel returns a solution string which can be accessed by the method model.getFormula. The method model.getAllSolutions will give the entire pareto front of solutions as a cell of strings.&lt;br /&gt;
&lt;br /&gt;
== MOVFModel ==&lt;br /&gt;
&lt;br /&gt;
The MOVFModel implements the Multivariate Orthonormal Vector Fitting (MOVF) technique [http://www.sumo.intec.ugent.be/files/2008_07_IEEE_MTT.pdf]. This is a rational that fits the data in a least-square sense. This model is not included in the release version of the SUMO Toolbox due to licensing issues. Due to the implementation, the &#039;&#039;&#039;frequency has to be the last parameter&#039;&#039;&#039; of data given to the MOVFModel.&lt;br /&gt;
&lt;br /&gt;
The properties for MOVFModel are the following:&lt;br /&gt;
&lt;br /&gt;
* order: A vector with the order of each input parameter. If the basis used is rational, all the orders have to be even. If the basis used is polynomial, the orders for the geometrical parameters can be any positive integer, and only the order of the frequency has to be even. &lt;br /&gt;
* iter: Determines the number of internal optimization iterations of the MOVFModel.&lt;br /&gt;
* basis: Specifies the basis used to model the geometric parameters of the MOVFModel. The basis can either be &#039;&#039;rational&#039;&#039; or &#039;&#039;polynomial&#039;&#039;.&lt;br /&gt;
* errorFunc: A string with the name of an error function used to optimize the MOVFModel internally. The valid options can be found in src/matlab/tools/errorFunctions&lt;br /&gt;
* scaleFactors: Scales the data from the default [-1 1] input of SUMO to the desired bounds. When calling the MOVFModel from MOVFFactory the bounds defined in the Simulator.xml of the problem will be used.&lt;br /&gt;
&lt;br /&gt;
The coefficients of the MOVFModel can be accessed via model.getMOVF.coef.&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5795</id>
		<title>Model types explained</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5795"/>
		<updated>2012-02-15T16:07:04Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* MOVFModel */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page gives some additional information about the implementation of Models implemented in the SUMO Toolbox. Note that the information is only given for the Model class and additional options may be available in the corresponding ModelFactory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please dont hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also see the [[Using a model]] and [[Add Model Type]] pages. &lt;br /&gt;
&lt;br /&gt;
== Model (Abstract base class) ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;Model&amp;lt;/code&amp;gt; class serves as an overall base class, it is the interface to which all models should adhere.&lt;br /&gt;
&lt;br /&gt;
== RationalModel ==&lt;br /&gt;
&lt;br /&gt;
A rational model tries to interpolate or approximate data by a rational function, like&lt;br /&gt;
&amp;lt;math&amp;gt;3 x^2 y + 5 x y + 2x + 1&amp;lt;/math&amp;gt;&lt;br /&gt;
or by a quotient of 2 polynomial, like&lt;br /&gt;
&amp;lt;math&amp;gt;\dfrac{xy + 2x + 6y + 2}{xy + 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To decide which degrees (monomials) are present in numerator and denominator, the rational model depends on three model parameters:&lt;br /&gt;
* Variable weights W1 ... Wd (integer values, one for each dimension)&lt;br /&gt;
* Variable flags F1 ... Fd (boolean values, one for each dimension)&lt;br /&gt;
* An indicator for the degrees of freedom, P&lt;br /&gt;
&lt;br /&gt;
To determine which degrees to use, this procedure is followed:&lt;br /&gt;
# Determine the number of sample points N&lt;br /&gt;
# Use P to determine the requested degrees of freedom: freedom = N * P / 100&lt;br /&gt;
# Select degrees based on weighting and flags, using following rules:&lt;br /&gt;
#* Only variables for which Fi == false (0) are allowed in the denominator&lt;br /&gt;
#* Monomials with degrees (a1 ... ad) get precedence over monomials with degrees (b1 ... bd) if and only if the expression a1*W1 + ... + ad*Wd &amp;lt; b1*W1 + ... + bd*Wd&lt;br /&gt;
&lt;br /&gt;
The calculation of these suitable degrees are delegated to the Degrees class, which uses a Java implementation (Diophantine Solver) to order the monomials using the weighted expression.&lt;br /&gt;
&lt;br /&gt;
Rationale: The weighting scheme is in place because the number of model parameters had to be restricted in some way. [[http://www.sumo.intec.ugent.be/files/1999_09_IEEE_MTT.pdf|De Geest et al.]] used such a weighting scheme before to discriminate between variables. The toolbox tries to select suitable values adaptively. In this way, it can eliminate variables which have no significant impact on the output (like in the Kotanchek example).&lt;br /&gt;
&lt;br /&gt;
Please note that &#039;&#039;larger weights&#039;&#039; correspond to &#039;&#039;less important variables&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Two extra options are of interest:&lt;br /&gt;
# Selection of base function (a function handle)&lt;br /&gt;
# The frequencyVariable parameter (a variable name, or the keywords auto or off)&lt;br /&gt;
&lt;br /&gt;
It is sometimes advantageous to use a different set of base functions. The default set is just the power function: 1, x, x^2, ... The toolbox provides two alternatives for this, the Legendre base functions, and the Chebyshev base functions. Each occurrence of x^i in the above should be read as &#039;&#039;the value of the i&#039;th base function in x&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When the frequencyVariable parameter resolves to a variable name, or when it is set to auto and there is a variable named f, freq or frequency, that variable is treated differently. First of all it is scaled to by strictly positive. To do this the standard interval [-1,1] is rescaled to [j,2*j], in order to represent a true complex frequency. Then, a standard RationalModel is built, using &#039;&#039;only real coefficients&#039;&#039;. Only use this feature when [[Outputs#Complex_handling|complexHandling]] is set to &#039;complex&#039;, otherwise it is pointless.&lt;br /&gt;
&lt;br /&gt;
== SVMModel ==&lt;br /&gt;
&lt;br /&gt;
SVMModel is the SUMO class for Support Vector Machines (SVM). It is a wrapper class for three different SVM implementations: LibSVM [http://www.csie.ntu.edu.tw/~cjlin/libsvm/], SVM-Light [http://svmlight.joachims.org/] and LS-SVM [http://www.esat.kuleuven.be/sista/lssvmlab/]. You can find more information about each implementation on their websites and in the SVMModel code.&lt;br /&gt;
&lt;br /&gt;
SVMModel has the following properties (note that some of these properties only apply to one specific implementation):&lt;br /&gt;
&lt;br /&gt;
* backend: Chooses which SVM implementation to use. The following options are valid: libSVM, libSVM, and lssvm. By default LibSVM is used.&lt;br /&gt;
* kernel: Chooses the kernel of the SVM. The following options are available: rbf (radial basis functions), lin (linear), poly (polynomial), and sig (sigmoid)&lt;br /&gt;
* kernelParams: Lets you specify the specific kernel parameters, the options here are dependent on the backend used&lt;br /&gt;
* regularizationParam: Lets you specify the trade-off parameter between the margin and the training error. The regularization parameter will be 10^regularizationParam&lt;br /&gt;
* epsilon: Sets the epsilon parameter of support vector regression (SVR). &lt;br /&gt;
* stoppingTolerance: Sets the tolerance for the stopping criterion.&lt;br /&gt;
* nu: Set the nu parameter of nu-SVR and nu-SVC (only for LibSVM)&lt;br /&gt;
* type: Sets the type of LibSVM (nu-SVR, epsilon-SVR, etc...)&lt;br /&gt;
* crossvalidationFolds: Set the number of folds for LibSVM in cross-validation mode&lt;br /&gt;
&lt;br /&gt;
== EureqaModel ==&lt;br /&gt;
&lt;br /&gt;
The EureqaModel implements the interface between the SUMO Toolbox and the Eureqa Toolbox. This interface is modified code from [http://www.mathworks.com/matlabcentral/fileexchange/32225-interface-with-eureqa-featuring-symbolic-regression]. The EureqaModel implementation does not do modelling itself, instead it connects to a Eureqa server from which it retrieves the solution. The options for the EureqaModel are the following:&lt;br /&gt;
&lt;br /&gt;
* fitness: Chooses the fitness function of the genetic search. The fitness functions are coded, e.g. 0 -&amp;gt; mean absolute error. The complete list of fitness functions can be found [http://code.google.com/p/eureqa-api/wiki/doc_fitness_types here].&lt;br /&gt;
* operators: A string with the operators allowed in the genetic search. The operators can be given in arbitrary order spaces not necessary. The set of possible operators is limited compared to the standalone GUI version of Eureqa. Only &#039;constant, +, -, *, /, ^, exp, log, sin, cos, abs, tan&#039; are supported.&lt;br /&gt;
* duration: The amount of time allocated to the genetic search in second. &lt;br /&gt;
* debug: Displays intermediate information during the search.&lt;br /&gt;
* doStart: If this is true, SUMO will automatically start a Eureqa server. If additional options about the server are given (see below) SUMO will start the server with these options. Otherwise a Eureqa server has to be started manually. &lt;br /&gt;
* pathToServer: The path where the Eureqa server is located. By default SUMO will look in the directory of the EureqaFactory class.&lt;br /&gt;
* host: The name of the host of the Eureqa server, by default this is localhost.&lt;br /&gt;
* port: The port with which to connect to the Eureqa Server.&lt;br /&gt;
* forceCores: Forces the server to use a specified amount of CPU cores.&lt;br /&gt;
* maxCores: Set the maximum number of CPU cores the Eureqa server can use.&lt;br /&gt;
* scaleFactors: Models in SUMO normally work in Model space, i.e. the input space is scaled to [-1 1] for all dimensions. The scaleFactors property tells SUMO how this [-1 1] should be scaled instead. When calling a EureqaModel from the EureqaFactory, the scaleFactors will be set equal to those defined in the Simulator.xml of the problem.&lt;br /&gt;
&lt;br /&gt;
EureqaModel returns a solution string which can be accessed by the method model.getFormula. The method model.getAllSolutions will give the entire pareto front of solutions as a cell of strings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== MOVFModel ==&lt;br /&gt;
&lt;br /&gt;
The MOVFModel implements the Multivariate Orthonormal Vector Fitting (MOVF) technique [http://www.sumo.intec.ugent.be/files/2008_07_IEEE_MTT.pdf]. This is a rational that fits the data in a least-square sense. This model is not included in the release version of the SUMO Toolbox due to licensing issues. Due to the implementation, the &#039;&#039;&#039;frequency has to be the last parameter&#039;&#039;&#039; of data given to the MOVFModel.&lt;br /&gt;
&lt;br /&gt;
The properties for MOVFModel are the following:&lt;br /&gt;
&lt;br /&gt;
* order: A vector with the order of each input parameter. If the basis used is rational, all the orders have to be even. If the basis used is polynomial, the orders for the geometrical parameters can be any positive integer, and only the order of the frequency has to be even. &lt;br /&gt;
* iter: Determines the number of internal optimization iterations of the MOVFModel.&lt;br /&gt;
* basis: Specifies the basis used to model the geometric parameters of the MOVFModel. The basis can either be &#039;&#039;rational&#039;&#039; or &#039;&#039;polynomial&#039;&#039;.&lt;br /&gt;
* errorFunc: A string with the name of an error function used to optimize the MOVFModel internally. The valid options can be found in src/matlab/tools/errorFunctions&lt;br /&gt;
* scaleFactors: Scales the data from the default [-1 1] input of SUMO to the desired bounds. When calling the MOVFModel from MOVFFactory the bounds defined in the Simulator.xml of the problem will be used.&lt;br /&gt;
&lt;br /&gt;
The coefficients of the MOVFModel can be accessed via model.getMOVF.coef.&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5794</id>
		<title>Model types explained</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5794"/>
		<updated>2012-02-15T16:06:08Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* MOVFModel */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page gives some additional information about the implementation of Models implemented in the SUMO Toolbox. Note that the information is only given for the Model class and additional options may be available in the corresponding ModelFactory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please dont hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also see the [[Using a model]] and [[Add Model Type]] pages. &lt;br /&gt;
&lt;br /&gt;
== Model (Abstract base class) ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;Model&amp;lt;/code&amp;gt; class serves as an overall base class, it is the interface to which all models should adhere.&lt;br /&gt;
&lt;br /&gt;
== RationalModel ==&lt;br /&gt;
&lt;br /&gt;
A rational model tries to interpolate or approximate data by a rational function, like&lt;br /&gt;
&amp;lt;math&amp;gt;3 x^2 y + 5 x y + 2x + 1&amp;lt;/math&amp;gt;&lt;br /&gt;
or by a quotient of 2 polynomial, like&lt;br /&gt;
&amp;lt;math&amp;gt;\dfrac{xy + 2x + 6y + 2}{xy + 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To decide which degrees (monomials) are present in numerator and denominator, the rational model depends on three model parameters:&lt;br /&gt;
* Variable weights W1 ... Wd (integer values, one for each dimension)&lt;br /&gt;
* Variable flags F1 ... Fd (boolean values, one for each dimension)&lt;br /&gt;
* An indicator for the degrees of freedom, P&lt;br /&gt;
&lt;br /&gt;
To determine which degrees to use, this procedure is followed:&lt;br /&gt;
# Determine the number of sample points N&lt;br /&gt;
# Use P to determine the requested degrees of freedom: freedom = N * P / 100&lt;br /&gt;
# Select degrees based on weighting and flags, using following rules:&lt;br /&gt;
#* Only variables for which Fi == false (0) are allowed in the denominator&lt;br /&gt;
#* Monomials with degrees (a1 ... ad) get precedence over monomials with degrees (b1 ... bd) if and only if the expression a1*W1 + ... + ad*Wd &amp;lt; b1*W1 + ... + bd*Wd&lt;br /&gt;
&lt;br /&gt;
The calculation of these suitable degrees are delegated to the Degrees class, which uses a Java implementation (Diophantine Solver) to order the monomials using the weighted expression.&lt;br /&gt;
&lt;br /&gt;
Rationale: The weighting scheme is in place because the number of model parameters had to be restricted in some way. [[http://www.sumo.intec.ugent.be/files/1999_09_IEEE_MTT.pdf|De Geest et al.]] used such a weighting scheme before to discriminate between variables. The toolbox tries to select suitable values adaptively. In this way, it can eliminate variables which have no significant impact on the output (like in the Kotanchek example).&lt;br /&gt;
&lt;br /&gt;
Please note that &#039;&#039;larger weights&#039;&#039; correspond to &#039;&#039;less important variables&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Two extra options are of interest:&lt;br /&gt;
# Selection of base function (a function handle)&lt;br /&gt;
# The frequencyVariable parameter (a variable name, or the keywords auto or off)&lt;br /&gt;
&lt;br /&gt;
It is sometimes advantageous to use a different set of base functions. The default set is just the power function: 1, x, x^2, ... The toolbox provides two alternatives for this, the Legendre base functions, and the Chebyshev base functions. Each occurrence of x^i in the above should be read as &#039;&#039;the value of the i&#039;th base function in x&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When the frequencyVariable parameter resolves to a variable name, or when it is set to auto and there is a variable named f, freq or frequency, that variable is treated differently. First of all it is scaled to by strictly positive. To do this the standard interval [-1,1] is rescaled to [j,2*j], in order to represent a true complex frequency. Then, a standard RationalModel is built, using &#039;&#039;only real coefficients&#039;&#039;. Only use this feature when [[Outputs#Complex_handling|complexHandling]] is set to &#039;complex&#039;, otherwise it is pointless.&lt;br /&gt;
&lt;br /&gt;
== SVMModel ==&lt;br /&gt;
&lt;br /&gt;
SVMModel is the SUMO class for Support Vector Machines (SVM). It is a wrapper class for three different SVM implementations: LibSVM [http://www.csie.ntu.edu.tw/~cjlin/libsvm/], SVM-Light [http://svmlight.joachims.org/] and LS-SVM [http://www.esat.kuleuven.be/sista/lssvmlab/]. You can find more information about each implementation on their websites and in the SVMModel code.&lt;br /&gt;
&lt;br /&gt;
SVMModel has the following properties (note that some of these properties only apply to one specific implementation):&lt;br /&gt;
&lt;br /&gt;
* backend: Chooses which SVM implementation to use. The following options are valid: libSVM, libSVM, and lssvm. By default LibSVM is used.&lt;br /&gt;
* kernel: Chooses the kernel of the SVM. The following options are available: rbf (radial basis functions), lin (linear), poly (polynomial), and sig (sigmoid)&lt;br /&gt;
* kernelParams: Lets you specify the specific kernel parameters, the options here are dependent on the backend used&lt;br /&gt;
* regularizationParam: Lets you specify the trade-off parameter between the margin and the training error. The regularization parameter will be 10^regularizationParam&lt;br /&gt;
* epsilon: Sets the epsilon parameter of support vector regression (SVR). &lt;br /&gt;
* stoppingTolerance: Sets the tolerance for the stopping criterion.&lt;br /&gt;
* nu: Set the nu parameter of nu-SVR and nu-SVC (only for LibSVM)&lt;br /&gt;
* type: Sets the type of LibSVM (nu-SVR, epsilon-SVR, etc...)&lt;br /&gt;
* crossvalidationFolds: Set the number of folds for LibSVM in cross-validation mode&lt;br /&gt;
&lt;br /&gt;
== EureqaModel ==&lt;br /&gt;
&lt;br /&gt;
The EureqaModel implements the interface between the SUMO Toolbox and the Eureqa Toolbox. This interface is modified code from [http://www.mathworks.com/matlabcentral/fileexchange/32225-interface-with-eureqa-featuring-symbolic-regression]. The EureqaModel implementation does not do modelling itself, instead it connects to a Eureqa server from which it retrieves the solution. The options for the EureqaModel are the following:&lt;br /&gt;
&lt;br /&gt;
* fitness: Chooses the fitness function of the genetic search. The fitness functions are coded, e.g. 0 -&amp;gt; mean absolute error. The complete list of fitness functions can be found [http://code.google.com/p/eureqa-api/wiki/doc_fitness_types here].&lt;br /&gt;
* operators: A string with the operators allowed in the genetic search. The operators can be given in arbitrary order spaces not necessary. The set of possible operators is limited compared to the standalone GUI version of Eureqa. Only &#039;constant, +, -, *, /, ^, exp, log, sin, cos, abs, tan&#039; are supported.&lt;br /&gt;
* duration: The amount of time allocated to the genetic search in second. &lt;br /&gt;
* debug: Displays intermediate information during the search.&lt;br /&gt;
* doStart: If this is true, SUMO will automatically start a Eureqa server. If additional options about the server are given (see below) SUMO will start the server with these options. Otherwise a Eureqa server has to be started manually. &lt;br /&gt;
* pathToServer: The path where the Eureqa server is located. By default SUMO will look in the directory of the EureqaFactory class.&lt;br /&gt;
* host: The name of the host of the Eureqa server, by default this is localhost.&lt;br /&gt;
* port: The port with which to connect to the Eureqa Server.&lt;br /&gt;
* forceCores: Forces the server to use a specified amount of CPU cores.&lt;br /&gt;
* maxCores: Set the maximum number of CPU cores the Eureqa server can use.&lt;br /&gt;
* scaleFactors: Models in SUMO normally work in Model space, i.e. the input space is scaled to [-1 1] for all dimensions. The scaleFactors property tells SUMO how this [-1 1] should be scaled instead. When calling a EureqaModel from the EureqaFactory, the scaleFactors will be set equal to those defined in the Simulator.xml of the problem.&lt;br /&gt;
&lt;br /&gt;
EureqaModel returns a solution string which can be accessed by the method model.getFormula. The method model.getAllSolutions will give the entire pareto front of solutions as a cell of strings.&lt;br /&gt;
&lt;br /&gt;
== MOVFModel ==&lt;br /&gt;
&lt;br /&gt;
The MOVFModel implements the Multivariate Orthonormal Vector Fitting (MOVF) technique [http://www.sumo.intec.ugent.be/files/2008_07_IEEE_MTT.pdf]. This is a rational that fits the data in a least-square sense. This model is not included in the release version of the SUMO Toolbox due to licensing issues. Due to the implementation, the &#039;&#039;&#039;frequency has to be the last parameter&#039;&#039;&#039; of data given to the MOVFModel.&lt;br /&gt;
&lt;br /&gt;
The properties for MOVFModel are the following:&lt;br /&gt;
&lt;br /&gt;
* order: A vector with the order of each input parameter. If the basis used is rational, all the orders have to be even. If the basis used is polynomial, the orders for the geometrical parameters can be any positive integer, and only the order of the frequency has to be even. &lt;br /&gt;
* iter: Determines the number of internal optimization iterations of the MOVFModel.&lt;br /&gt;
* basis: Specifies the basis used to model the geometric parameters of the MOVFModel. The basis can either be &#039;&#039;rational&#039;&#039; or &#039;&#039;polynomial&#039;&#039;.&lt;br /&gt;
* errorFunc: A string with the name of an error function used to optimize the MOVFModel internally. The valid options can be found in src/matlab/tools/errorFunctions&lt;br /&gt;
* scaleFactors: Scales the data from the default [-1 1] input of SUMO to the desired bounds. When calling the MOVFModel from MOVFFactory the bounds defined in the Simulator.xml of the problem will be used.&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5793</id>
		<title>Model types explained</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5793"/>
		<updated>2012-02-15T15:54:32Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* EureqaModel */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page gives some additional information about the implementation of Models implemented in the SUMO Toolbox. Note that the information is only given for the Model class and additional options may be available in the corresponding ModelFactory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please dont hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also see the [[Using a model]] and [[Add Model Type]] pages. &lt;br /&gt;
&lt;br /&gt;
== Model (Abstract base class) ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;Model&amp;lt;/code&amp;gt; class serves as an overall base class, it is the interface to which all models should adhere.&lt;br /&gt;
&lt;br /&gt;
== RationalModel ==&lt;br /&gt;
&lt;br /&gt;
A rational model tries to interpolate or approximate data by a rational function, like&lt;br /&gt;
&amp;lt;math&amp;gt;3 x^2 y + 5 x y + 2x + 1&amp;lt;/math&amp;gt;&lt;br /&gt;
or by a quotient of 2 polynomial, like&lt;br /&gt;
&amp;lt;math&amp;gt;\dfrac{xy + 2x + 6y + 2}{xy + 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To decide which degrees (monomials) are present in numerator and denominator, the rational model depends on three model parameters:&lt;br /&gt;
* Variable weights W1 ... Wd (integer values, one for each dimension)&lt;br /&gt;
* Variable flags F1 ... Fd (boolean values, one for each dimension)&lt;br /&gt;
* An indicator for the degrees of freedom, P&lt;br /&gt;
&lt;br /&gt;
To determine which degrees to use, this procedure is followed:&lt;br /&gt;
# Determine the number of sample points N&lt;br /&gt;
# Use P to determine the requested degrees of freedom: freedom = N * P / 100&lt;br /&gt;
# Select degrees based on weighting and flags, using following rules:&lt;br /&gt;
#* Only variables for which Fi == false (0) are allowed in the denominator&lt;br /&gt;
#* Monomials with degrees (a1 ... ad) get precedence over monomials with degrees (b1 ... bd) if and only if the expression a1*W1 + ... + ad*Wd &amp;lt; b1*W1 + ... + bd*Wd&lt;br /&gt;
&lt;br /&gt;
The calculation of these suitable degrees are delegated to the Degrees class, which uses a Java implementation (Diophantine Solver) to order the monomials using the weighted expression.&lt;br /&gt;
&lt;br /&gt;
Rationale: The weighting scheme is in place because the number of model parameters had to be restricted in some way. [[http://www.sumo.intec.ugent.be/files/1999_09_IEEE_MTT.pdf|De Geest et al.]] used such a weighting scheme before to discriminate between variables. The toolbox tries to select suitable values adaptively. In this way, it can eliminate variables which have no significant impact on the output (like in the Kotanchek example).&lt;br /&gt;
&lt;br /&gt;
Please note that &#039;&#039;larger weights&#039;&#039; correspond to &#039;&#039;less important variables&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Two extra options are of interest:&lt;br /&gt;
# Selection of base function (a function handle)&lt;br /&gt;
# The frequencyVariable parameter (a variable name, or the keywords auto or off)&lt;br /&gt;
&lt;br /&gt;
It is sometimes advantageous to use a different set of base functions. The default set is just the power function: 1, x, x^2, ... The toolbox provides two alternatives for this, the Legendre base functions, and the Chebyshev base functions. Each occurrence of x^i in the above should be read as &#039;&#039;the value of the i&#039;th base function in x&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When the frequencyVariable parameter resolves to a variable name, or when it is set to auto and there is a variable named f, freq or frequency, that variable is treated differently. First of all it is scaled to by strictly positive. To do this the standard interval [-1,1] is rescaled to [j,2*j], in order to represent a true complex frequency. Then, a standard RationalModel is built, using &#039;&#039;only real coefficients&#039;&#039;. Only use this feature when [[Outputs#Complex_handling|complexHandling]] is set to &#039;complex&#039;, otherwise it is pointless.&lt;br /&gt;
&lt;br /&gt;
== SVMModel ==&lt;br /&gt;
&lt;br /&gt;
SVMModel is the SUMO class for Support Vector Machines (SVM). It is a wrapper class for three different SVM implementations: LibSVM [http://www.csie.ntu.edu.tw/~cjlin/libsvm/], SVM-Light [http://svmlight.joachims.org/] and LS-SVM [http://www.esat.kuleuven.be/sista/lssvmlab/]. You can find more information about each implementation on their websites and in the SVMModel code.&lt;br /&gt;
&lt;br /&gt;
SVMModel has the following properties (note that some of these properties only apply to one specific implementation):&lt;br /&gt;
&lt;br /&gt;
* backend: Chooses which SVM implementation to use. The following options are valid: libSVM, libSVM, and lssvm. By default LibSVM is used.&lt;br /&gt;
* kernel: Chooses the kernel of the SVM. The following options are available: rbf (radial basis functions), lin (linear), poly (polynomial), and sig (sigmoid)&lt;br /&gt;
* kernelParams: Lets you specify the specific kernel parameters, the options here are dependent on the backend used&lt;br /&gt;
* regularizationParam: Lets you specify the trade-off parameter between the margin and the training error. The regularization parameter will be 10^regularizationParam&lt;br /&gt;
* epsilon: Sets the epsilon parameter of support vector regression (SVR). &lt;br /&gt;
* stoppingTolerance: Sets the tolerance for the stopping criterion.&lt;br /&gt;
* nu: Set the nu parameter of nu-SVR and nu-SVC (only for LibSVM)&lt;br /&gt;
* type: Sets the type of LibSVM (nu-SVR, epsilon-SVR, etc...)&lt;br /&gt;
* crossvalidationFolds: Set the number of folds for LibSVM in cross-validation mode&lt;br /&gt;
&lt;br /&gt;
== EureqaModel ==&lt;br /&gt;
&lt;br /&gt;
The EureqaModel implements the interface between the SUMO Toolbox and the Eureqa Toolbox. This interface is modified code from [http://www.mathworks.com/matlabcentral/fileexchange/32225-interface-with-eureqa-featuring-symbolic-regression]. The EureqaModel implementation does not do modelling itself, instead it connects to a Eureqa server from which it retrieves the solution. The options for the EureqaModel are the following:&lt;br /&gt;
&lt;br /&gt;
* fitness: Chooses the fitness function of the genetic search. The fitness functions are coded, e.g. 0 -&amp;gt; mean absolute error. The complete list of fitness functions can be found [http://code.google.com/p/eureqa-api/wiki/doc_fitness_types here].&lt;br /&gt;
* operators: A string with the operators allowed in the genetic search. The operators can be given in arbitrary order spaces not necessary. The set of possible operators is limited compared to the standalone GUI version of Eureqa. Only &#039;constant, +, -, *, /, ^, exp, log, sin, cos, abs, tan&#039; are supported.&lt;br /&gt;
* duration: The amount of time allocated to the genetic search in second. &lt;br /&gt;
* debug: Displays intermediate information during the search.&lt;br /&gt;
* doStart: If this is true, SUMO will automatically start a Eureqa server. If additional options about the server are given (see below) SUMO will start the server with these options. Otherwise a Eureqa server has to be started manually. &lt;br /&gt;
* pathToServer: The path where the Eureqa server is located. By default SUMO will look in the directory of the EureqaFactory class.&lt;br /&gt;
* host: The name of the host of the Eureqa server, by default this is localhost.&lt;br /&gt;
* port: The port with which to connect to the Eureqa Server.&lt;br /&gt;
* forceCores: Forces the server to use a specified amount of CPU cores.&lt;br /&gt;
* maxCores: Set the maximum number of CPU cores the Eureqa server can use.&lt;br /&gt;
* scaleFactors: Models in SUMO normally work in Model space, i.e. the input space is scaled to [-1 1] for all dimensions. The scaleFactors property tells SUMO how this [-1 1] should be scaled instead. When calling a EureqaModel from the EureqaFactory, the scaleFactors will be set equal to those defined in the Simulator.xml of the problem.&lt;br /&gt;
&lt;br /&gt;
EureqaModel returns a solution string which can be accessed by the method model.getFormula. The method model.getAllSolutions will give the entire pareto front of solutions as a cell of strings.&lt;br /&gt;
&lt;br /&gt;
== MOVFModel ==&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5792</id>
		<title>Model types explained</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5792"/>
		<updated>2012-02-15T15:54:02Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* SVMModel */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page gives some additional information about the implementation of Models implemented in the SUMO Toolbox. Note that the information is only given for the Model class and additional options may be available in the corresponding ModelFactory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please dont hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also see the [[Using a model]] and [[Add Model Type]] pages. &lt;br /&gt;
&lt;br /&gt;
== Model (Abstract base class) ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;Model&amp;lt;/code&amp;gt; class serves as an overall base class, it is the interface to which all models should adhere.&lt;br /&gt;
&lt;br /&gt;
== RationalModel ==&lt;br /&gt;
&lt;br /&gt;
A rational model tries to interpolate or approximate data by a rational function, like&lt;br /&gt;
&amp;lt;math&amp;gt;3 x^2 y + 5 x y + 2x + 1&amp;lt;/math&amp;gt;&lt;br /&gt;
or by a quotient of 2 polynomial, like&lt;br /&gt;
&amp;lt;math&amp;gt;\dfrac{xy + 2x + 6y + 2}{xy + 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To decide which degrees (monomials) are present in numerator and denominator, the rational model depends on three model parameters:&lt;br /&gt;
* Variable weights W1 ... Wd (integer values, one for each dimension)&lt;br /&gt;
* Variable flags F1 ... Fd (boolean values, one for each dimension)&lt;br /&gt;
* An indicator for the degrees of freedom, P&lt;br /&gt;
&lt;br /&gt;
To determine which degrees to use, this procedure is followed:&lt;br /&gt;
# Determine the number of sample points N&lt;br /&gt;
# Use P to determine the requested degrees of freedom: freedom = N * P / 100&lt;br /&gt;
# Select degrees based on weighting and flags, using following rules:&lt;br /&gt;
#* Only variables for which Fi == false (0) are allowed in the denominator&lt;br /&gt;
#* Monomials with degrees (a1 ... ad) get precedence over monomials with degrees (b1 ... bd) if and only if the expression a1*W1 + ... + ad*Wd &amp;lt; b1*W1 + ... + bd*Wd&lt;br /&gt;
&lt;br /&gt;
The calculation of these suitable degrees are delegated to the Degrees class, which uses a Java implementation (Diophantine Solver) to order the monomials using the weighted expression.&lt;br /&gt;
&lt;br /&gt;
Rationale: The weighting scheme is in place because the number of model parameters had to be restricted in some way. [[http://www.sumo.intec.ugent.be/files/1999_09_IEEE_MTT.pdf|De Geest et al.]] used such a weighting scheme before to discriminate between variables. The toolbox tries to select suitable values adaptively. In this way, it can eliminate variables which have no significant impact on the output (like in the Kotanchek example).&lt;br /&gt;
&lt;br /&gt;
Please note that &#039;&#039;larger weights&#039;&#039; correspond to &#039;&#039;less important variables&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Two extra options are of interest:&lt;br /&gt;
# Selection of base function (a function handle)&lt;br /&gt;
# The frequencyVariable parameter (a variable name, or the keywords auto or off)&lt;br /&gt;
&lt;br /&gt;
It is sometimes advantageous to use a different set of base functions. The default set is just the power function: 1, x, x^2, ... The toolbox provides two alternatives for this, the Legendre base functions, and the Chebyshev base functions. Each occurrence of x^i in the above should be read as &#039;&#039;the value of the i&#039;th base function in x&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When the frequencyVariable parameter resolves to a variable name, or when it is set to auto and there is a variable named f, freq or frequency, that variable is treated differently. First of all it is scaled to by strictly positive. To do this the standard interval [-1,1] is rescaled to [j,2*j], in order to represent a true complex frequency. Then, a standard RationalModel is built, using &#039;&#039;only real coefficients&#039;&#039;. Only use this feature when [[Outputs#Complex_handling|complexHandling]] is set to &#039;complex&#039;, otherwise it is pointless.&lt;br /&gt;
&lt;br /&gt;
== SVMModel ==&lt;br /&gt;
&lt;br /&gt;
SVMModel is the SUMO class for Support Vector Machines (SVM). It is a wrapper class for three different SVM implementations: LibSVM [http://www.csie.ntu.edu.tw/~cjlin/libsvm/], SVM-Light [http://svmlight.joachims.org/] and LS-SVM [http://www.esat.kuleuven.be/sista/lssvmlab/]. You can find more information about each implementation on their websites and in the SVMModel code.&lt;br /&gt;
&lt;br /&gt;
SVMModel has the following properties (note that some of these properties only apply to one specific implementation):&lt;br /&gt;
&lt;br /&gt;
* backend: Chooses which SVM implementation to use. The following options are valid: libSVM, libSVM, and lssvm. By default LibSVM is used.&lt;br /&gt;
* kernel: Chooses the kernel of the SVM. The following options are available: rbf (radial basis functions), lin (linear), poly (polynomial), and sig (sigmoid)&lt;br /&gt;
* kernelParams: Lets you specify the specific kernel parameters, the options here are dependent on the backend used&lt;br /&gt;
* regularizationParam: Lets you specify the trade-off parameter between the margin and the training error. The regularization parameter will be 10^regularizationParam&lt;br /&gt;
* epsilon: Sets the epsilon parameter of support vector regression (SVR). &lt;br /&gt;
* stoppingTolerance: Sets the tolerance for the stopping criterion.&lt;br /&gt;
* nu: Set the nu parameter of nu-SVR and nu-SVC (only for LibSVM)&lt;br /&gt;
* type: Sets the type of LibSVM (nu-SVR, epsilon-SVR, etc...)&lt;br /&gt;
* crossvalidationFolds: Set the number of folds for LibSVM in cross-validation mode&lt;br /&gt;
&lt;br /&gt;
== EureqaModel ==&lt;br /&gt;
&lt;br /&gt;
The EureqaModel implements the interface between the SUMO Toolbox and the Eureqa Toolbox. This interface is modified code from [http://www.mathworks.com/matlabcentral/fileexchange/32225-interface-with-eureqa-featuring-symbolic-regression]. The EureqaModel implementation does not do modelling itself, instead it connects to a Eureqa server from which it retrieves the solution. The options for the EureqaModel are the following:&lt;br /&gt;
&lt;br /&gt;
* fitness: Chooses the fitness function of the genetic search. The fitness functions are coded, e.g. 0 -&amp;gt; mean absolute error. The complete list of fitness functions can be found [http://code.google.com/p/eureqa-api/wiki/doc_fitness_types here].&lt;br /&gt;
* operators: A string with the operators allowed in the genetic search. The operators can be given in arbitrary order spaces not necessary. The set of possible operators is limited compared to the standalone GUI version of Eureqa. Only &#039;constant, +, -, *, /, ^, exp, log, sin, cos, abs, tan&#039; are supported.&lt;br /&gt;
* duration: The amount of time allocated to the genetic search in second. &lt;br /&gt;
* debug: Displays intermediate information during the search.&lt;br /&gt;
* doStart: If this is true, SUMO will automatically start a Eureqa server. If additional options about the server are given (see below) SUMO will start the server with these options. Otherwise a Eureqa server has to be started manually. &lt;br /&gt;
* pathToServer: The path where the Eureqa server is located. By default SUMO will look in the directory of the EureqaFactory class.&lt;br /&gt;
* host: The name of the host of the Eureqa server, by default this is localhost.&lt;br /&gt;
* port: The port with which to connect to the Eureqa Server.&lt;br /&gt;
* forceCores: Forces the server to use a specified amount of CPU cores.&lt;br /&gt;
* maxCores: Set the maximum number of CPU cores the Eureqa server can use.&lt;br /&gt;
* scaleFactors: Models in SUMO normally work in Model space, i.e. the input space is scaled to [-1 1] for all dimensions. The scaleFactors property tells SUMO how this [-1 1] should be scaled instead. When calling a EureqaModel from the EureqaFactory, the scaleFactors will be set equal to those defined in the Simulator.xml of the problem.&lt;br /&gt;
&lt;br /&gt;
EureqaModel returns a solution string which can be accessed by the method model.getFormula. The method model.getAllSolutions will give the entire pareto front of solutions as a cell of strings.&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5791</id>
		<title>Model types explained</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5791"/>
		<updated>2012-02-15T15:53:46Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* EureqaModel */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page gives some additional information about the implementation of Models implemented in the SUMO Toolbox. Note that the information is only given for the Model class and additional options may be available in the corresponding ModelFactory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please dont hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also see the [[Using a model]] and [[Add Model Type]] pages. &lt;br /&gt;
&lt;br /&gt;
== Model (Abstract base class) ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;Model&amp;lt;/code&amp;gt; class serves as an overall base class, it is the interface to which all models should adhere.&lt;br /&gt;
&lt;br /&gt;
== RationalModel ==&lt;br /&gt;
&lt;br /&gt;
A rational model tries to interpolate or approximate data by a rational function, like&lt;br /&gt;
&amp;lt;math&amp;gt;3 x^2 y + 5 x y + 2x + 1&amp;lt;/math&amp;gt;&lt;br /&gt;
or by a quotient of 2 polynomial, like&lt;br /&gt;
&amp;lt;math&amp;gt;\dfrac{xy + 2x + 6y + 2}{xy + 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To decide which degrees (monomials) are present in numerator and denominator, the rational model depends on three model parameters:&lt;br /&gt;
* Variable weights W1 ... Wd (integer values, one for each dimension)&lt;br /&gt;
* Variable flags F1 ... Fd (boolean values, one for each dimension)&lt;br /&gt;
* An indicator for the degrees of freedom, P&lt;br /&gt;
&lt;br /&gt;
To determine which degrees to use, this procedure is followed:&lt;br /&gt;
# Determine the number of sample points N&lt;br /&gt;
# Use P to determine the requested degrees of freedom: freedom = N * P / 100&lt;br /&gt;
# Select degrees based on weighting and flags, using following rules:&lt;br /&gt;
#* Only variables for which Fi == false (0) are allowed in the denominator&lt;br /&gt;
#* Monomials with degrees (a1 ... ad) get precedence over monomials with degrees (b1 ... bd) if and only if the expression a1*W1 + ... + ad*Wd &amp;lt; b1*W1 + ... + bd*Wd&lt;br /&gt;
&lt;br /&gt;
The calculation of these suitable degrees are delegated to the Degrees class, which uses a Java implementation (Diophantine Solver) to order the monomials using the weighted expression.&lt;br /&gt;
&lt;br /&gt;
Rationale: The weighting scheme is in place because the number of model parameters had to be restricted in some way. [[http://www.sumo.intec.ugent.be/files/1999_09_IEEE_MTT.pdf|De Geest et al.]] used such a weighting scheme before to discriminate between variables. The toolbox tries to select suitable values adaptively. In this way, it can eliminate variables which have no significant impact on the output (like in the Kotanchek example).&lt;br /&gt;
&lt;br /&gt;
Please note that &#039;&#039;larger weights&#039;&#039; correspond to &#039;&#039;less important variables&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Two extra options are of interest:&lt;br /&gt;
# Selection of base function (a function handle)&lt;br /&gt;
# The frequencyVariable parameter (a variable name, or the keywords auto or off)&lt;br /&gt;
&lt;br /&gt;
It is sometimes advantageous to use a different set of base functions. The default set is just the power function: 1, x, x^2, ... The toolbox provides two alternatives for this, the Legendre base functions, and the Chebyshev base functions. Each occurrence of x^i in the above should be read as &#039;&#039;the value of the i&#039;th base function in x&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When the frequencyVariable parameter resolves to a variable name, or when it is set to auto and there is a variable named f, freq or frequency, that variable is treated differently. First of all it is scaled to by strictly positive. To do this the standard interval [-1,1] is rescaled to [j,2*j], in order to represent a true complex frequency. Then, a standard RationalModel is built, using &#039;&#039;only real coefficients&#039;&#039;. Only use this feature when [[Outputs#Complex_handling|complexHandling]] is set to &#039;complex&#039;, otherwise it is pointless.&lt;br /&gt;
&lt;br /&gt;
== SVMModel ==&lt;br /&gt;
&lt;br /&gt;
SVMModel is the SUMO class for Support Vector Machines (SVM). It is a wrapper class for three different SVM implementations: LibSVM [http://www.csie.ntu.edu.tw/~cjlin/libsvm/], SVM-Light [http://svmlight.joachims.org/] and LS-SVM [http://www.esat.kuleuven.be/sista/lssvmlab/]. You can find more information about each implementation on their websites and in the SVMModel code.&lt;br /&gt;
&lt;br /&gt;
SVMModel has the following properties (note that some of these properties only apply to one specific implementation):&lt;br /&gt;
&lt;br /&gt;
* backend: Chooses which SVM implementation to use. The following options are valid: libSVM, libSVM, and lssvm. By default LibSVM is used.&lt;br /&gt;
* kernel: Chooses the kernel of the SVM. The following options are available: rbf (radial basis functions), lin (linear), poly (polynomial), and sig (sigmoid)&lt;br /&gt;
* kernelParams: Lets you specify the specific kernel parameters, the options here are dependent on the backend used&lt;br /&gt;
* regularizationParam: Lets you specify the trade-off parameter between the margin and the training error. The regularization parameter will be 10^regularizationParam&lt;br /&gt;
* epsilon: Sets the epsilon parameter of support vector regression (SVR). &lt;br /&gt;
* stoppingTolerance: Sets the tolerance for the stopping criterion.&lt;br /&gt;
* nu: Set the nu parameter of nu-SVR and nu-SVC (only for LibSVM)&lt;br /&gt;
* type: Sets the type of LibSVM (nu-SVR, epsilon-SVR, etc...)&lt;br /&gt;
* crossvalidationFolds: Set the number of folds for LibSVM in cross-validation mode&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== EureqaModel ==&lt;br /&gt;
&lt;br /&gt;
The EureqaModel implements the interface between the SUMO Toolbox and the Eureqa Toolbox. This interface is modified code from [http://www.mathworks.com/matlabcentral/fileexchange/32225-interface-with-eureqa-featuring-symbolic-regression]. The EureqaModel implementation does not do modelling itself, instead it connects to a Eureqa server from which it retrieves the solution. The options for the EureqaModel are the following:&lt;br /&gt;
&lt;br /&gt;
* fitness: Chooses the fitness function of the genetic search. The fitness functions are coded, e.g. 0 -&amp;gt; mean absolute error. The complete list of fitness functions can be found [http://code.google.com/p/eureqa-api/wiki/doc_fitness_types here].&lt;br /&gt;
* operators: A string with the operators allowed in the genetic search. The operators can be given in arbitrary order spaces not necessary. The set of possible operators is limited compared to the standalone GUI version of Eureqa. Only &#039;constant, +, -, *, /, ^, exp, log, sin, cos, abs, tan&#039; are supported.&lt;br /&gt;
* duration: The amount of time allocated to the genetic search in second. &lt;br /&gt;
* debug: Displays intermediate information during the search.&lt;br /&gt;
* doStart: If this is true, SUMO will automatically start a Eureqa server. If additional options about the server are given (see below) SUMO will start the server with these options. Otherwise a Eureqa server has to be started manually. &lt;br /&gt;
* pathToServer: The path where the Eureqa server is located. By default SUMO will look in the directory of the EureqaFactory class.&lt;br /&gt;
* host: The name of the host of the Eureqa server, by default this is localhost.&lt;br /&gt;
* port: The port with which to connect to the Eureqa Server.&lt;br /&gt;
* forceCores: Forces the server to use a specified amount of CPU cores.&lt;br /&gt;
* maxCores: Set the maximum number of CPU cores the Eureqa server can use.&lt;br /&gt;
* scaleFactors: Models in SUMO normally work in Model space, i.e. the input space is scaled to [-1 1] for all dimensions. The scaleFactors property tells SUMO how this [-1 1] should be scaled instead. When calling a EureqaModel from the EureqaFactory, the scaleFactors will be set equal to those defined in the Simulator.xml of the problem.&lt;br /&gt;
&lt;br /&gt;
EureqaModel returns a solution string which can be accessed by the method model.getFormula. The method model.getAllSolutions will give the entire pareto front of solutions as a cell of strings.&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5790</id>
		<title>Model types explained</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5790"/>
		<updated>2012-02-15T15:52:05Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page gives some additional information about the implementation of Models implemented in the SUMO Toolbox. Note that the information is only given for the Model class and additional options may be available in the corresponding ModelFactory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please dont hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also see the [[Using a model]] and [[Add Model Type]] pages. &lt;br /&gt;
&lt;br /&gt;
== Model (Abstract base class) ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;Model&amp;lt;/code&amp;gt; class serves as an overall base class, it is the interface to which all models should adhere.&lt;br /&gt;
&lt;br /&gt;
== RationalModel ==&lt;br /&gt;
&lt;br /&gt;
A rational model tries to interpolate or approximate data by a rational function, like&lt;br /&gt;
&amp;lt;math&amp;gt;3 x^2 y + 5 x y + 2x + 1&amp;lt;/math&amp;gt;&lt;br /&gt;
or by a quotient of 2 polynomial, like&lt;br /&gt;
&amp;lt;math&amp;gt;\dfrac{xy + 2x + 6y + 2}{xy + 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To decide which degrees (monomials) are present in numerator and denominator, the rational model depends on three model parameters:&lt;br /&gt;
* Variable weights W1 ... Wd (integer values, one for each dimension)&lt;br /&gt;
* Variable flags F1 ... Fd (boolean values, one for each dimension)&lt;br /&gt;
* An indicator for the degrees of freedom, P&lt;br /&gt;
&lt;br /&gt;
To determine which degrees to use, this procedure is followed:&lt;br /&gt;
# Determine the number of sample points N&lt;br /&gt;
# Use P to determine the requested degrees of freedom: freedom = N * P / 100&lt;br /&gt;
# Select degrees based on weighting and flags, using following rules:&lt;br /&gt;
#* Only variables for which Fi == false (0) are allowed in the denominator&lt;br /&gt;
#* Monomials with degrees (a1 ... ad) get precedence over monomials with degrees (b1 ... bd) if and only if the expression a1*W1 + ... + ad*Wd &amp;lt; b1*W1 + ... + bd*Wd&lt;br /&gt;
&lt;br /&gt;
The calculation of these suitable degrees are delegated to the Degrees class, which uses a Java implementation (Diophantine Solver) to order the monomials using the weighted expression.&lt;br /&gt;
&lt;br /&gt;
Rationale: The weighting scheme is in place because the number of model parameters had to be restricted in some way. [[http://www.sumo.intec.ugent.be/files/1999_09_IEEE_MTT.pdf|De Geest et al.]] used such a weighting scheme before to discriminate between variables. The toolbox tries to select suitable values adaptively. In this way, it can eliminate variables which have no significant impact on the output (like in the Kotanchek example).&lt;br /&gt;
&lt;br /&gt;
Please note that &#039;&#039;larger weights&#039;&#039; correspond to &#039;&#039;less important variables&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Two extra options are of interest:&lt;br /&gt;
# Selection of base function (a function handle)&lt;br /&gt;
# The frequencyVariable parameter (a variable name, or the keywords auto or off)&lt;br /&gt;
&lt;br /&gt;
It is sometimes advantageous to use a different set of base functions. The default set is just the power function: 1, x, x^2, ... The toolbox provides two alternatives for this, the Legendre base functions, and the Chebyshev base functions. Each occurrence of x^i in the above should be read as &#039;&#039;the value of the i&#039;th base function in x&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When the frequencyVariable parameter resolves to a variable name, or when it is set to auto and there is a variable named f, freq or frequency, that variable is treated differently. First of all it is scaled to by strictly positive. To do this the standard interval [-1,1] is rescaled to [j,2*j], in order to represent a true complex frequency. Then, a standard RationalModel is built, using &#039;&#039;only real coefficients&#039;&#039;. Only use this feature when [[Outputs#Complex_handling|complexHandling]] is set to &#039;complex&#039;, otherwise it is pointless.&lt;br /&gt;
&lt;br /&gt;
== SVMModel ==&lt;br /&gt;
&lt;br /&gt;
SVMModel is the SUMO class for Support Vector Machines (SVM). It is a wrapper class for three different SVM implementations: LibSVM [http://www.csie.ntu.edu.tw/~cjlin/libsvm/], SVM-Light [http://svmlight.joachims.org/] and LS-SVM [http://www.esat.kuleuven.be/sista/lssvmlab/]. You can find more information about each implementation on their websites and in the SVMModel code.&lt;br /&gt;
&lt;br /&gt;
SVMModel has the following properties (note that some of these properties only apply to one specific implementation):&lt;br /&gt;
&lt;br /&gt;
* backend: Chooses which SVM implementation to use. The following options are valid: libSVM, libSVM, and lssvm. By default LibSVM is used.&lt;br /&gt;
* kernel: Chooses the kernel of the SVM. The following options are available: rbf (radial basis functions), lin (linear), poly (polynomial), and sig (sigmoid)&lt;br /&gt;
* kernelParams: Lets you specify the specific kernel parameters, the options here are dependent on the backend used&lt;br /&gt;
* regularizationParam: Lets you specify the trade-off parameter between the margin and the training error. The regularization parameter will be 10^regularizationParam&lt;br /&gt;
* epsilon: Sets the epsilon parameter of support vector regression (SVR). &lt;br /&gt;
* stoppingTolerance: Sets the tolerance for the stopping criterion.&lt;br /&gt;
* nu: Set the nu parameter of nu-SVR and nu-SVC (only for LibSVM)&lt;br /&gt;
* type: Sets the type of LibSVM (nu-SVR, epsilon-SVR, etc...)&lt;br /&gt;
* crossvalidationFolds: Set the number of folds for LibSVM in cross-validation mode&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== EureqaModel ==&lt;br /&gt;
&lt;br /&gt;
The EureqaModel implements the interface between the SUMO Toolbox and the Eureqa Toolbox. This interface is modified code from [http://www.mathworks.com/matlabcentral/fileexchange/32225-interface-with-eureqa-featuring-symbolic-regression]. The EureqaModel implementation does not do modelling itself, instead it connects to a Eureqa server from which it retrieves the solution. The options for the EureqaModel are the following:&lt;br /&gt;
&lt;br /&gt;
* fitness: Chooses the fitness function of the genetic search. The fitness functions are coded, e.g. 0 -&amp;gt; mean absolute error. The complete list of fitness functions can be found [http://code.google.com/p/eureqa-api/wiki/doc_fitness_types here].&lt;br /&gt;
* operators: A string with the operators allowed in the genetic search. The operators can be given in arbitrary order spaces not necessary. The set of possible operators is limited compared to the standalone GUI version of Eureqa. Only &#039;constant, +, -, *, /, ^, exp, log, sin, cos, abs, tan&#039; are supported.&lt;br /&gt;
* duration: The amount of time allocated to the genetic search in second. &lt;br /&gt;
* debug: Displays intermediate information during the search.&lt;br /&gt;
* doStart: If this is true, SUMO will automatically start a Eureqa server. Otherwise a Eureqa server has to be started manually. &lt;br /&gt;
* pathToServer: The path where the Eureqa server is located. By default SUMO will look in the directory of the EureqaFactory class.&lt;br /&gt;
* host: The name of the host of the Eureqa server, by default this is localhost.&lt;br /&gt;
* port: The port with which to connect to the Eureqa Server.&lt;br /&gt;
* forceCores: Forces the server to use a specified amount of CPU cores.&lt;br /&gt;
* maxCores: Set the maximum number of CPU cores the Eureqa server can use.&lt;br /&gt;
* scaleFactors: Models in SUMO normally work in Model space, i.e. the input space is scaled to [-1 1] for all dimensions. The scaleFactors property tells SUMO how this [-1 1] should be scaled instead. When calling a EureqaModel from the EureqaFactory, the scaleFactors will be set equal to those defined in the Simulator.xml of the problem.&lt;br /&gt;
&lt;br /&gt;
EureqaModel returns a solution string which can be accessed by the method model.getFormula. The method model.getAllSolutions will give the entire pareto front of solutions as a cell of strings.&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5789</id>
		<title>Model types explained</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5789"/>
		<updated>2012-02-15T15:49:49Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* SVMModel */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please dont hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also see the [[Using a model]] and [[Add Model Type]] pages. &lt;br /&gt;
&lt;br /&gt;
== Model (Abstract base class) ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;Model&amp;lt;/code&amp;gt; class serves as an overall base class, it is the interface to which all models should adhere.&lt;br /&gt;
&lt;br /&gt;
== RationalModel ==&lt;br /&gt;
&lt;br /&gt;
A rational model tries to interpolate or approximate data by a rational function, like&lt;br /&gt;
&amp;lt;math&amp;gt;3 x^2 y + 5 x y + 2x + 1&amp;lt;/math&amp;gt;&lt;br /&gt;
or by a quotient of 2 polynomial, like&lt;br /&gt;
&amp;lt;math&amp;gt;\dfrac{xy + 2x + 6y + 2}{xy + 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To decide which degrees (monomials) are present in numerator and denominator, the rational model depends on three model parameters:&lt;br /&gt;
* Variable weights W1 ... Wd (integer values, one for each dimension)&lt;br /&gt;
* Variable flags F1 ... Fd (boolean values, one for each dimension)&lt;br /&gt;
* An indicator for the degrees of freedom, P&lt;br /&gt;
&lt;br /&gt;
To determine which degrees to use, this procedure is followed:&lt;br /&gt;
# Determine the number of sample points N&lt;br /&gt;
# Use P to determine the requested degrees of freedom: freedom = N * P / 100&lt;br /&gt;
# Select degrees based on weighting and flags, using following rules:&lt;br /&gt;
#* Only variables for which Fi == false (0) are allowed in the denominator&lt;br /&gt;
#* Monomials with degrees (a1 ... ad) get precedence over monomials with degrees (b1 ... bd) if and only if the expression a1*W1 + ... + ad*Wd &amp;lt; b1*W1 + ... + bd*Wd&lt;br /&gt;
&lt;br /&gt;
The calculation of these suitable degrees are delegated to the Degrees class, which uses a Java implementation (Diophantine Solver) to order the monomials using the weighted expression.&lt;br /&gt;
&lt;br /&gt;
Rationale: The weighting scheme is in place because the number of model parameters had to be restricted in some way. [[http://www.sumo.intec.ugent.be/files/1999_09_IEEE_MTT.pdf|De Geest et al.]] used such a weighting scheme before to discriminate between variables. The toolbox tries to select suitable values adaptively. In this way, it can eliminate variables which have no significant impact on the output (like in the Kotanchek example).&lt;br /&gt;
&lt;br /&gt;
Please note that &#039;&#039;larger weights&#039;&#039; correspond to &#039;&#039;less important variables&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Two extra options are of interest:&lt;br /&gt;
# Selection of base function (a function handle)&lt;br /&gt;
# The frequencyVariable parameter (a variable name, or the keywords auto or off)&lt;br /&gt;
&lt;br /&gt;
It is sometimes advantageous to use a different set of base functions. The default set is just the power function: 1, x, x^2, ... The toolbox provides two alternatives for this, the Legendre base functions, and the Chebyshev base functions. Each occurrence of x^i in the above should be read as &#039;&#039;the value of the i&#039;th base function in x&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When the frequencyVariable parameter resolves to a variable name, or when it is set to auto and there is a variable named f, freq or frequency, that variable is treated differently. First of all it is scaled to by strictly positive. To do this the standard interval [-1,1] is rescaled to [j,2*j], in order to represent a true complex frequency. Then, a standard RationalModel is built, using &#039;&#039;only real coefficients&#039;&#039;. Only use this feature when [[Outputs#Complex_handling|complexHandling]] is set to &#039;complex&#039;, otherwise it is pointless.&lt;br /&gt;
&lt;br /&gt;
== SVMModel ==&lt;br /&gt;
&lt;br /&gt;
SVMModel is the SUMO class for Support Vector Machines (SVM). It is a wrapper class for three different SVM implementations: LibSVM [http://www.csie.ntu.edu.tw/~cjlin/libsvm/], SVM-Light [http://svmlight.joachims.org/] and LS-SVM [http://www.esat.kuleuven.be/sista/lssvmlab/]. You can find more information about each implementation on their websites and in the SVMModel code.&lt;br /&gt;
&lt;br /&gt;
SVMModel has the following properties (note that some of these properties only apply to one specific implementation):&lt;br /&gt;
&lt;br /&gt;
* backend: Chooses which SVM implementation to use. The following options are valid: libSVM, libSVM, and lssvm. By default LibSVM is used.&lt;br /&gt;
* kernel: Chooses the kernel of the SVM. The following options are available: rbf (radial basis functions), lin (linear), poly (polynomial), and sig (sigmoid)&lt;br /&gt;
* kernelParams: Lets you specify the specific kernel parameters, the options here are dependent on the backend used&lt;br /&gt;
* regularizationParam: Lets you specify the trade-off parameter between the margin and the training error. The regularization parameter will be 10^regularizationParam&lt;br /&gt;
* epsilon: Sets the epsilon parameter of support vector regression (SVR). &lt;br /&gt;
* stoppingTolerance: Sets the tolerance for the stopping criterion.&lt;br /&gt;
* nu: Set the nu parameter of nu-SVR and nu-SVC (only for LibSVM)&lt;br /&gt;
* type: Sets the type of LibSVM (nu-SVR, epsilon-SVR, etc...)&lt;br /&gt;
* crossvalidationFolds: Set the number of folds for LibSVM in cross-validation mode&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== EureqaModel ==&lt;br /&gt;
&lt;br /&gt;
The EureqaModel implements the interface between the SUMO Toolbox and the Eureqa Toolbox. This interface is modified code from [http://www.mathworks.com/matlabcentral/fileexchange/32225-interface-with-eureqa-featuring-symbolic-regression]. The EureqaModel implementation does not do modelling itself, instead it connects to a Eureqa server from which it retrieves the solution. The options for the EureqaModel are the following:&lt;br /&gt;
&lt;br /&gt;
* fitness: Chooses the fitness function of the genetic search. The fitness functions are coded, e.g. 0 -&amp;gt; mean absolute error. The complete list of fitness functions can be found [http://code.google.com/p/eureqa-api/wiki/doc_fitness_types here].&lt;br /&gt;
* operators: A string with the operators allowed in the genetic search. The operators can be given in arbitrary order spaces not necessary. The set of possible operators is limited compared to the standalone GUI version of Eureqa. Only &#039;constant, +, -, *, /, ^, exp, log, sin, cos, abs, tan&#039; are supported.&lt;br /&gt;
* duration: The amount of time allocated to the genetic search in second. &lt;br /&gt;
* debug: Displays intermediate information during the search.&lt;br /&gt;
* doStart: If this is true, SUMO will automatically start a Eureqa server. Otherwise a Eureqa server has to be started manually. &lt;br /&gt;
* pathToServer: The path where the Eureqa server is located. By default SUMO will look in the directory of the EureqaFactory class.&lt;br /&gt;
* host: The name of the host of the Eureqa server, by default this is localhost.&lt;br /&gt;
* port: The port with which to connect to the Eureqa Server.&lt;br /&gt;
* forceCores: Forces the server to use a specified amount of CPU cores.&lt;br /&gt;
* maxCores: Set the maximum number of CPU cores the Eureqa server can use.&lt;br /&gt;
* scaleFactors: Models in SUMO normally work in Model space, i.e. the input space is scaled to [-1 1] for all dimensions. The scaleFactors property tells SUMO how this [-1 1] should be scaled instead. When calling a EureqaModel from the EureqaFactory, the scaleFactors will be set equal to those defined in the Simulator.xml of the problem.&lt;br /&gt;
&lt;br /&gt;
EureqaModel returns a solution string which can be accessed by the method model.getFormula. The method model.getAllSolutions will give the entire pareto front of solutions as a cell of strings.&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5788</id>
		<title>Model types explained</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5788"/>
		<updated>2012-02-15T13:58:52Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* SVMModel */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please dont hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also see the [[Using a model]] and [[Add Model Type]] pages. &lt;br /&gt;
&lt;br /&gt;
== Model (Abstract base class) ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;Model&amp;lt;/code&amp;gt; class serves as an overall base class, it is the interface to which all models should adhere.&lt;br /&gt;
&lt;br /&gt;
== RationalModel ==&lt;br /&gt;
&lt;br /&gt;
A rational model tries to interpolate or approximate data by a rational function, like&lt;br /&gt;
&amp;lt;math&amp;gt;3 x^2 y + 5 x y + 2x + 1&amp;lt;/math&amp;gt;&lt;br /&gt;
or by a quotient of 2 polynomial, like&lt;br /&gt;
&amp;lt;math&amp;gt;\dfrac{xy + 2x + 6y + 2}{xy + 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To decide which degrees (monomials) are present in numerator and denominator, the rational model depends on three model parameters:&lt;br /&gt;
* Variable weights W1 ... Wd (integer values, one for each dimension)&lt;br /&gt;
* Variable flags F1 ... Fd (boolean values, one for each dimension)&lt;br /&gt;
* An indicator for the degrees of freedom, P&lt;br /&gt;
&lt;br /&gt;
To determine which degrees to use, this procedure is followed:&lt;br /&gt;
# Determine the number of sample points N&lt;br /&gt;
# Use P to determine the requested degrees of freedom: freedom = N * P / 100&lt;br /&gt;
# Select degrees based on weighting and flags, using following rules:&lt;br /&gt;
#* Only variables for which Fi == false (0) are allowed in the denominator&lt;br /&gt;
#* Monomials with degrees (a1 ... ad) get precedence over monomials with degrees (b1 ... bd) if and only if the expression a1*W1 + ... + ad*Wd &amp;lt; b1*W1 + ... + bd*Wd&lt;br /&gt;
&lt;br /&gt;
The calculation of these suitable degrees are delegated to the Degrees class, which uses a Java implementation (Diophantine Solver) to order the monomials using the weighted expression.&lt;br /&gt;
&lt;br /&gt;
Rationale: The weighting scheme is in place because the number of model parameters had to be restricted in some way. [[http://www.sumo.intec.ugent.be/files/1999_09_IEEE_MTT.pdf|De Geest et al.]] used such a weighting scheme before to discriminate between variables. The toolbox tries to select suitable values adaptively. In this way, it can eliminate variables which have no significant impact on the output (like in the Kotanchek example).&lt;br /&gt;
&lt;br /&gt;
Please note that &#039;&#039;larger weights&#039;&#039; correspond to &#039;&#039;less important variables&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Two extra options are of interest:&lt;br /&gt;
# Selection of base function (a function handle)&lt;br /&gt;
# The frequencyVariable parameter (a variable name, or the keywords auto or off)&lt;br /&gt;
&lt;br /&gt;
It is sometimes advantageous to use a different set of base functions. The default set is just the power function: 1, x, x^2, ... The toolbox provides two alternatives for this, the Legendre base functions, and the Chebyshev base functions. Each occurrence of x^i in the above should be read as &#039;&#039;the value of the i&#039;th base function in x&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When the frequencyVariable parameter resolves to a variable name, or when it is set to auto and there is a variable named f, freq or frequency, that variable is treated differently. First of all it is scaled to by strictly positive. To do this the standard interval [-1,1] is rescaled to [j,2*j], in order to represent a true complex frequency. Then, a standard RationalModel is built, using &#039;&#039;only real coefficients&#039;&#039;. Only use this feature when [[Outputs#Complex_handling|complexHandling]] is set to &#039;complex&#039;, otherwise it is pointless.&lt;br /&gt;
&lt;br /&gt;
== SVMModel ==&lt;br /&gt;
&lt;br /&gt;
SVMModel is the SUMO class for Support Vector Machines (SVM). It is a wrapper class for three different SVM implementations: LibSVM [http://www.csie.ntu.edu.tw/~cjlin/libsvm/], SVM-Light [http://svmlight.joachims.org/] and LS-SVM [http://www.esat.kuleuven.be/sista/lssvmlab/]. You can find more information about each implementation on their websites and in the SVMModel code.&lt;br /&gt;
&lt;br /&gt;
SVMModel has the following properties (note that some of these properties only apply to one specific implementation):&lt;br /&gt;
&lt;br /&gt;
* backend: Chooses which SVM implementation to use. The following options are valid: libSVM, libSVM, and lssvm. By default LibSVM is used.&lt;br /&gt;
* kernel: Chooses the kernel of the SVM. The following options are available: rbf (radial basis functions), lin (linear), poly (polynomial), and sig (sigmoid)&lt;br /&gt;
* kernelParams: Lets you specify the specific kernel parameters, the options here are dependent on the backend used&lt;br /&gt;
* regularizationParam: Lets you specify the trade-off parameter between the margin and the training error. The regularization parameter will be 10^regularizationParam&lt;br /&gt;
* epsilon: Sets the epsilon parameter of support vector regression (SVR). &lt;br /&gt;
* stoppingTolerance: Sets the tolerance for the stopping criterion.&lt;br /&gt;
* nu: Set the nu parameter of nu-SVR and nu-SVC (only for LibSVM)&lt;br /&gt;
* type: Sets the type of LibSVM (nu-SVR, epsilon-SVR, etc...)&lt;br /&gt;
* crossvalidationFolds: Set the number of folds for LibSVM in cross-validation mode&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5787</id>
		<title>Model types explained</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5787"/>
		<updated>2012-02-15T13:56:25Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* SVMModel */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please dont hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also see the [[Using a model]] and [[Add Model Type]] pages. &lt;br /&gt;
&lt;br /&gt;
== Model (Abstract base class) ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;Model&amp;lt;/code&amp;gt; class serves as an overall base class, it is the interface to which all models should adhere.&lt;br /&gt;
&lt;br /&gt;
== RationalModel ==&lt;br /&gt;
&lt;br /&gt;
A rational model tries to interpolate or approximate data by a rational function, like&lt;br /&gt;
&amp;lt;math&amp;gt;3 x^2 y + 5 x y + 2x + 1&amp;lt;/math&amp;gt;&lt;br /&gt;
or by a quotient of 2 polynomial, like&lt;br /&gt;
&amp;lt;math&amp;gt;\dfrac{xy + 2x + 6y + 2}{xy + 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To decide which degrees (monomials) are present in numerator and denominator, the rational model depends on three model parameters:&lt;br /&gt;
* Variable weights W1 ... Wd (integer values, one for each dimension)&lt;br /&gt;
* Variable flags F1 ... Fd (boolean values, one for each dimension)&lt;br /&gt;
* An indicator for the degrees of freedom, P&lt;br /&gt;
&lt;br /&gt;
To determine which degrees to use, this procedure is followed:&lt;br /&gt;
# Determine the number of sample points N&lt;br /&gt;
# Use P to determine the requested degrees of freedom: freedom = N * P / 100&lt;br /&gt;
# Select degrees based on weighting and flags, using following rules:&lt;br /&gt;
#* Only variables for which Fi == false (0) are allowed in the denominator&lt;br /&gt;
#* Monomials with degrees (a1 ... ad) get precedence over monomials with degrees (b1 ... bd) if and only if the expression a1*W1 + ... + ad*Wd &amp;lt; b1*W1 + ... + bd*Wd&lt;br /&gt;
&lt;br /&gt;
The calculation of these suitable degrees are delegated to the Degrees class, which uses a Java implementation (Diophantine Solver) to order the monomials using the weighted expression.&lt;br /&gt;
&lt;br /&gt;
Rationale: The weighting scheme is in place because the number of model parameters had to be restricted in some way. [[http://www.sumo.intec.ugent.be/files/1999_09_IEEE_MTT.pdf|De Geest et al.]] used such a weighting scheme before to discriminate between variables. The toolbox tries to select suitable values adaptively. In this way, it can eliminate variables which have no significant impact on the output (like in the Kotanchek example).&lt;br /&gt;
&lt;br /&gt;
Please note that &#039;&#039;larger weights&#039;&#039; correspond to &#039;&#039;less important variables&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Two extra options are of interest:&lt;br /&gt;
# Selection of base function (a function handle)&lt;br /&gt;
# The frequencyVariable parameter (a variable name, or the keywords auto or off)&lt;br /&gt;
&lt;br /&gt;
It is sometimes advantageous to use a different set of base functions. The default set is just the power function: 1, x, x^2, ... The toolbox provides two alternatives for this, the Legendre base functions, and the Chebyshev base functions. Each occurrence of x^i in the above should be read as &#039;&#039;the value of the i&#039;th base function in x&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When the frequencyVariable parameter resolves to a variable name, or when it is set to auto and there is a variable named f, freq or frequency, that variable is treated differently. First of all it is scaled to by strictly positive. To do this the standard interval [-1,1] is rescaled to [j,2*j], in order to represent a true complex frequency. Then, a standard RationalModel is built, using &#039;&#039;only real coefficients&#039;&#039;. Only use this feature when [[Outputs#Complex_handling|complexHandling]] is set to &#039;complex&#039;, otherwise it is pointless.&lt;br /&gt;
&lt;br /&gt;
== SVMModel ==&lt;br /&gt;
&lt;br /&gt;
SVMModel is the SUMO class for Support Vector Machines (SVM). It is a wrapper class for three different SVM implementations: LibSVM [http://www.csie.ntu.edu.tw/~cjlin/libsvm/], SVM-Light [http://svmlight.joachims.org/] and LS-SVM [http://www.esat.kuleuven.be/sista/lssvmlab/]. You can find more information about each implementation on their websites and in the SVMModel code.&lt;br /&gt;
&lt;br /&gt;
SVMModel has the following properties (note that some of these properties only apply to one specific implementation):&lt;br /&gt;
&lt;br /&gt;
* backend: Chooses which SVM implementation to use. The following options are valid: libSVM, libSVM, and lssvm. By default LibSVM is used.&lt;br /&gt;
* kernel: Chooses the kernel of the SVM. The following options are available: rbf (radial basis functions), lin (linear), poly (polynomial), and sig (sigmoid)&lt;br /&gt;
* kernelParams: Lets you specify the specific kernel parameters, the options here are dependent on the backend used&lt;br /&gt;
* regularizationParam: Lets you specify the trade-off parameter between the margin and the training error. The regularization parameter will be 10^regularizationParam&lt;br /&gt;
* epsilon: Sets the epsilon parameter of support vector regression (SVR). &lt;br /&gt;
* stoppingTolerance: Sets the tolerance for the stopping criterion.&lt;br /&gt;
* nu: Set the nu parameter of nu-SVR and nu-SVC (only for LibSVM)&lt;br /&gt;
* type: Sets the type of LibSVM&lt;br /&gt;
* crossvalidationFolds: Set the number of &lt;br /&gt;
	    &#039;crossvalidationFolds&#039;,	0, ...&lt;br /&gt;
	    &#039;extraParams&#039;,&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5786</id>
		<title>Model types explained</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5786"/>
		<updated>2012-02-15T13:38:02Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* SVMModel */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please dont hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also see the [[Using a model]] and [[Add Model Type]] pages. &lt;br /&gt;
&lt;br /&gt;
== Model (Abstract base class) ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;Model&amp;lt;/code&amp;gt; class serves as an overall base class, it is the interface to which all models should adhere.&lt;br /&gt;
&lt;br /&gt;
== RationalModel ==&lt;br /&gt;
&lt;br /&gt;
A rational model tries to interpolate or approximate data by a rational function, like&lt;br /&gt;
&amp;lt;math&amp;gt;3 x^2 y + 5 x y + 2x + 1&amp;lt;/math&amp;gt;&lt;br /&gt;
or by a quotient of 2 polynomial, like&lt;br /&gt;
&amp;lt;math&amp;gt;\dfrac{xy + 2x + 6y + 2}{xy + 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To decide which degrees (monomials) are present in numerator and denominator, the rational model depends on three model parameters:&lt;br /&gt;
* Variable weights W1 ... Wd (integer values, one for each dimension)&lt;br /&gt;
* Variable flags F1 ... Fd (boolean values, one for each dimension)&lt;br /&gt;
* An indicator for the degrees of freedom, P&lt;br /&gt;
&lt;br /&gt;
To determine which degrees to use, this procedure is followed:&lt;br /&gt;
# Determine the number of sample points N&lt;br /&gt;
# Use P to determine the requested degrees of freedom: freedom = N * P / 100&lt;br /&gt;
# Select degrees based on weighting and flags, using following rules:&lt;br /&gt;
#* Only variables for which Fi == false (0) are allowed in the denominator&lt;br /&gt;
#* Monomials with degrees (a1 ... ad) get precedence over monomials with degrees (b1 ... bd) if and only if the expression a1*W1 + ... + ad*Wd &amp;lt; b1*W1 + ... + bd*Wd&lt;br /&gt;
&lt;br /&gt;
The calculation of these suitable degrees are delegated to the Degrees class, which uses a Java implementation (Diophantine Solver) to order the monomials using the weighted expression.&lt;br /&gt;
&lt;br /&gt;
Rationale: The weighting scheme is in place because the number of model parameters had to be restricted in some way. [[http://www.sumo.intec.ugent.be/files/1999_09_IEEE_MTT.pdf|De Geest et al.]] used such a weighting scheme before to discriminate between variables. The toolbox tries to select suitable values adaptively. In this way, it can eliminate variables which have no significant impact on the output (like in the Kotanchek example).&lt;br /&gt;
&lt;br /&gt;
Please note that &#039;&#039;larger weights&#039;&#039; correspond to &#039;&#039;less important variables&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Two extra options are of interest:&lt;br /&gt;
# Selection of base function (a function handle)&lt;br /&gt;
# The frequencyVariable parameter (a variable name, or the keywords auto or off)&lt;br /&gt;
&lt;br /&gt;
It is sometimes advantageous to use a different set of base functions. The default set is just the power function: 1, x, x^2, ... The toolbox provides two alternatives for this, the Legendre base functions, and the Chebyshev base functions. Each occurrence of x^i in the above should be read as &#039;&#039;the value of the i&#039;th base function in x&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When the frequencyVariable parameter resolves to a variable name, or when it is set to auto and there is a variable named f, freq or frequency, that variable is treated differently. First of all it is scaled to by strictly positive. To do this the standard interval [-1,1] is rescaled to [j,2*j], in order to represent a true complex frequency. Then, a standard RationalModel is built, using &#039;&#039;only real coefficients&#039;&#039;. Only use this feature when [[Outputs#Complex_handling|complexHandling]] is set to &#039;complex&#039;, otherwise it is pointless.&lt;br /&gt;
&lt;br /&gt;
== SVMModel ==&lt;br /&gt;
&lt;br /&gt;
SVMModel is the SUMO class for Support Vector Machines (SVM). It is a wrapper class for three different SVM implementations: LibSVM [http://www.csie.ntu.edu.tw/~cjlin/libsvm/], SVM-Light [http://svmlight.joachims.org/] and LS-SVM [http://www.esat.kuleuven.be/sista/lssvmlab/]. You can find more information about each implementation on their websites.&lt;br /&gt;
&lt;br /&gt;
SVMModel has the following properties (note that some of these properties only apply to one specific implementation):&lt;br /&gt;
&lt;br /&gt;
* backend: Chooses which SVM implementation to use. The following options are valid: libSVM, libSVM, and lssvm. By default LibSVM is used.&lt;br /&gt;
* kernel: Chooses the kernel of the SVM. The following options are available: rbf (radial basis functions), lin (linear), poly (polynomial), and sig (sigmoid)&lt;br /&gt;
* kernelParams: Lets you specify the specific kernel parameters, the options here are dependent on the backend used&lt;br /&gt;
* regularizationParam: Lets you specify the trade-off parameter between the margin and the training error. The regularization parameter will be 10^regularizationParam&lt;br /&gt;
* nu:&lt;br /&gt;
* type: &lt;br /&gt;
&lt;br /&gt;
	    &#039;nu&#039;,			0.01, ...&lt;br /&gt;
	    &#039;epsilon&#039;,			1e-4, ...&lt;br /&gt;
	    &#039;stoppingTolerance&#039;,	1e-5, ...&lt;br /&gt;
	    &#039;crossvalidationFolds&#039;,	0, ...&lt;br /&gt;
	    &#039;extraParams&#039;,&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5785</id>
		<title>Model types explained</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5785"/>
		<updated>2012-02-15T13:00:15Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* SVMModel */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please dont hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also see the [[Using a model]] and [[Add Model Type]] pages. &lt;br /&gt;
&lt;br /&gt;
== Model (Abstract base class) ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;Model&amp;lt;/code&amp;gt; class serves as an overall base class, it is the interface to which all models should adhere.&lt;br /&gt;
&lt;br /&gt;
== RationalModel ==&lt;br /&gt;
&lt;br /&gt;
A rational model tries to interpolate or approximate data by a rational function, like&lt;br /&gt;
&amp;lt;math&amp;gt;3 x^2 y + 5 x y + 2x + 1&amp;lt;/math&amp;gt;&lt;br /&gt;
or by a quotient of 2 polynomial, like&lt;br /&gt;
&amp;lt;math&amp;gt;\dfrac{xy + 2x + 6y + 2}{xy + 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To decide which degrees (monomials) are present in numerator and denominator, the rational model depends on three model parameters:&lt;br /&gt;
* Variable weights W1 ... Wd (integer values, one for each dimension)&lt;br /&gt;
* Variable flags F1 ... Fd (boolean values, one for each dimension)&lt;br /&gt;
* An indicator for the degrees of freedom, P&lt;br /&gt;
&lt;br /&gt;
To determine which degrees to use, this procedure is followed:&lt;br /&gt;
# Determine the number of sample points N&lt;br /&gt;
# Use P to determine the requested degrees of freedom: freedom = N * P / 100&lt;br /&gt;
# Select degrees based on weighting and flags, using following rules:&lt;br /&gt;
#* Only variables for which Fi == false (0) are allowed in the denominator&lt;br /&gt;
#* Monomials with degrees (a1 ... ad) get precedence over monomials with degrees (b1 ... bd) if and only if the expression a1*W1 + ... + ad*Wd &amp;lt; b1*W1 + ... + bd*Wd&lt;br /&gt;
&lt;br /&gt;
The calculation of these suitable degrees are delegated to the Degrees class, which uses a Java implementation (Diophantine Solver) to order the monomials using the weighted expression.&lt;br /&gt;
&lt;br /&gt;
Rationale: The weighting scheme is in place because the number of model parameters had to be restricted in some way. [[http://www.sumo.intec.ugent.be/files/1999_09_IEEE_MTT.pdf|De Geest et al.]] used such a weighting scheme before to discriminate between variables. The toolbox tries to select suitable values adaptively. In this way, it can eliminate variables which have no significant impact on the output (like in the Kotanchek example).&lt;br /&gt;
&lt;br /&gt;
Please note that &#039;&#039;larger weights&#039;&#039; correspond to &#039;&#039;less important variables&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Two extra options are of interest:&lt;br /&gt;
# Selection of base function (a function handle)&lt;br /&gt;
# The frequencyVariable parameter (a variable name, or the keywords auto or off)&lt;br /&gt;
&lt;br /&gt;
It is sometimes advantageous to use a different set of base functions. The default set is just the power function: 1, x, x^2, ... The toolbox provides two alternatives for this, the Legendre base functions, and the Chebyshev base functions. Each occurrence of x^i in the above should be read as &#039;&#039;the value of the i&#039;th base function in x&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When the frequencyVariable parameter resolves to a variable name, or when it is set to auto and there is a variable named f, freq or frequency, that variable is treated differently. First of all it is scaled to by strictly positive. To do this the standard interval [-1,1] is rescaled to [j,2*j], in order to represent a true complex frequency. Then, a standard RationalModel is built, using &#039;&#039;only real coefficients&#039;&#039;. Only use this feature when [[Outputs#Complex_handling|complexHandling]] is set to &#039;complex&#039;, otherwise it is pointless.&lt;br /&gt;
&lt;br /&gt;
== SVMModel ==&lt;br /&gt;
&lt;br /&gt;
SVMModel is the SUMO class for Support Vector Machines (SVM). It is a wrapper class for three different SVM implementations: LibSVM [http://www.csie.ntu.edu.tw/~cjlin/libsvm/], SVM-Light [http://svmlight.joachims.org/] and LS-SVM [http://www.esat.kuleuven.be/sista/lssvmlab/]. You can find more information about each implementation on their websites.&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5784</id>
		<title>Model types explained</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Model_types_explained&amp;diff=5784"/>
		<updated>2012-02-15T12:37:39Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please dont hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Also see the [[Using a model]] and [[Add Model Type]] pages. &lt;br /&gt;
&lt;br /&gt;
== Model (Abstract base class) ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;Model&amp;lt;/code&amp;gt; class serves as an overall base class, it is the interface to which all models should adhere.&lt;br /&gt;
&lt;br /&gt;
== RationalModel ==&lt;br /&gt;
&lt;br /&gt;
A rational model tries to interpolate or approximate data by a rational function, like&lt;br /&gt;
&amp;lt;math&amp;gt;3 x^2 y + 5 x y + 2x + 1&amp;lt;/math&amp;gt;&lt;br /&gt;
or by a quotient of 2 polynomial, like&lt;br /&gt;
&amp;lt;math&amp;gt;\dfrac{xy + 2x + 6y + 2}{xy + 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To decide which degrees (monomials) are present in numerator and denominator, the rational model depends on three model parameters:&lt;br /&gt;
* Variable weights W1 ... Wd (integer values, one for each dimension)&lt;br /&gt;
* Variable flags F1 ... Fd (boolean values, one for each dimension)&lt;br /&gt;
* An indicator for the degrees of freedom, P&lt;br /&gt;
&lt;br /&gt;
To determine which degrees to use, this procedure is followed:&lt;br /&gt;
# Determine the number of sample points N&lt;br /&gt;
# Use P to determine the requested degrees of freedom: freedom = N * P / 100&lt;br /&gt;
# Select degrees based on weighting and flags, using following rules:&lt;br /&gt;
#* Only variables for which Fi == false (0) are allowed in the denominator&lt;br /&gt;
#* Monomials with degrees (a1 ... ad) get precedence over monomials with degrees (b1 ... bd) if and only if the expression a1*W1 + ... + ad*Wd &amp;lt; b1*W1 + ... + bd*Wd&lt;br /&gt;
&lt;br /&gt;
The calculation of these suitable degrees are delegated to the Degrees class, which uses a Java implementation (Diophantine Solver) to order the monomials using the weighted expression.&lt;br /&gt;
&lt;br /&gt;
Rationale: The weighting scheme is in place because the number of model parameters had to be restricted in some way. [[http://www.sumo.intec.ugent.be/files/1999_09_IEEE_MTT.pdf|De Geest et al.]] used such a weighting scheme before to discriminate between variables. The toolbox tries to select suitable values adaptively. In this way, it can eliminate variables which have no significant impact on the output (like in the Kotanchek example).&lt;br /&gt;
&lt;br /&gt;
Please note that &#039;&#039;larger weights&#039;&#039; correspond to &#039;&#039;less important variables&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Two extra options are of interest:&lt;br /&gt;
# Selection of base function (a function handle)&lt;br /&gt;
# The frequencyVariable parameter (a variable name, or the keywords auto or off)&lt;br /&gt;
&lt;br /&gt;
It is sometimes advantageous to use a different set of base functions. The default set is just the power function: 1, x, x^2, ... The toolbox provides two alternatives for this, the Legendre base functions, and the Chebyshev base functions. Each occurrence of x^i in the above should be read as &#039;&#039;the value of the i&#039;th base function in x&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When the frequencyVariable parameter resolves to a variable name, or when it is set to auto and there is a variable named f, freq or frequency, that variable is treated differently. First of all it is scaled to by strictly positive. To do this the standard interval [-1,1] is rescaled to [j,2*j], in order to represent a true complex frequency. Then, a standard RationalModel is built, using &#039;&#039;only real coefficients&#039;&#039;. Only use this feature when [[Outputs#Complex_handling|complexHandling]] is set to &#039;complex&#039;, otherwise it is pointless.&lt;br /&gt;
&lt;br /&gt;
== SVMModel ==&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Running&amp;diff=5782</id>
		<title>Running</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Running&amp;diff=5782"/>
		<updated>2012-02-15T10:22:55Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* Getting started */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Getting started ==&lt;br /&gt;
&lt;br /&gt;
If you are just getting started with the toolbox and you want to find out how everything works, this section should help you on your way.&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;features&#039;&#039;&#039; and scope of the SUMO Toolbox are detailed on this [[About#Intended_use|page]] where you can find out whether the SUMO Toolbox suits your needs. To find out more about the SUMO Toolbox in general, check out the documentation on this [[About#Documentation|page]].&lt;br /&gt;
&lt;br /&gt;
* If you want to get hands-on with the SUMO Toolbox, we recommend using this [http://www.sumowiki.intec.ugent.be/images/7/7b/SUMO_hands_on.pdf guide]. The guide explains the basic SUMO framework, how to &#039;&#039;&#039;install&#039;&#039;&#039; the SUMO Toolbox on your computer and provides some &#039;&#039;&#039;examples&#039;&#039;&#039; on running the toolbox.&lt;br /&gt;
&lt;br /&gt;
* Since the SUMO Toolbox is [[Configuration|configured]] by editing XML files it might be a good idea to read [[FAQ#What is XML?|this page]], if you are not familiar with XML files. You can also check out this [[Config:ToolboxConfiguration#Interpreting_the_configuration_file| page]] which has more info on how the SUMO Toolbox uses XML.&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;installation&#039;&#039;&#039; information can also be found [[Installation|on this wiki]] and more information on running a different example the SUMO Toolbox can be found [[Running#Running_different_examples|here]]. &lt;br /&gt;
&lt;br /&gt;
* The SUMO Toolbox also comes with a set of &#039;&#039;&#039;demo&#039;s&#039;&#039;&#039; showing the different uses of the toolbox. You can find the configuration files for these demo&#039;s in the &#039;config/demo&#039; directory.&lt;br /&gt;
&lt;br /&gt;
* We have also provided some [[General_guidelines|general modelling guidelines]] which you can use a starting point to model your problems.&lt;br /&gt;
&lt;br /&gt;
* Also be sure to check out the &#039;&#039;&#039;Frequently Asked Questions&#039;&#039;&#039; ([[FAQ|FAQ]]) page as it might answer some of your questions.&lt;br /&gt;
&lt;br /&gt;
Finally if you get stuck or have any problems [[Reporting problems|feel free to let us know]] and will do our best to help you.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please don&#039;t hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Running different examples  ==&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
This section is about running a different example problem, if you want to model your own problem see [[Adding an example]].  Make sure you [[configuration|understand the difference between the simulator configuration file and the toolbox configuration file]] and understand how these configuration files are [[Toolbox configuration#Structure|structured]].&lt;br /&gt;
&lt;br /&gt;
=== Changing the configuration xml ===&lt;br /&gt;
The &amp;lt;code&amp;gt;examples/&amp;lt;/code&amp;gt; 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 &amp;lt;code&amp;gt;config/default.xml&amp;lt;/code&amp;gt; and edit the [[Simulator| &amp;lt;Simulator&amp;gt;]] tag to suit your needs (for more information about editing the configuration xml, go to this [[Config:ToolboxConfiguration#Interpreting_the_configuration_file|page]]).&lt;br /&gt;
&lt;br /&gt;
For example, originally the default &#039;&#039;&#039;configuration xml&#039;&#039;&#039; file, default.xml, contains:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Simulator&amp;gt;Math/Academic/Academic2DTwice.xml&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The toolbox will look in the examples directory for a project directory called &amp;lt;code&amp;gt;Math/Academic&amp;lt;/code&amp;gt; and load the &#039;&#039;&#039;simulator xml&#039;&#039;&#039; file named &#039;Academic2DTwice.xml&#039;. If no simulator xml file name is specified, the SUMO Toolbox will load the simulator xml with the same name as directory. For example &amp;lt;code&amp;gt;Math/Peaks&amp;lt;/code&amp;gt; is equivalent to &amp;lt;code&amp;gt;Math/Peaks/Peaks.xml&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now let&#039;s say you want to run one of the different example problems, for example, lets say you want to try the &#039;Michalewicz&#039; example.  In this case you would replace the original Simulator tag with: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Simulator&amp;gt;Math/Michalewicz&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In addition you would have to change the &amp;lt;code&amp;gt;&amp;lt;Outputs&amp;gt;&amp;lt;/code&amp;gt; tag.  The &amp;lt;code&amp;gt;Math/Academic/Academic2DTwice.xml&amp;lt;/code&amp;gt; example has two outputs (&#039;&#039;out&#039;&#039; and &#039;&#039;outinverse&#039;&#039;).  However, the Michalewicz example has only one (&#039;&#039;out&#039;&#039;).  Thus telling the SUMO Toolbox to model the &#039;&#039;outinverse&#039;&#039; output in that case makes no sense since it does not exist for the &#039;Michalewicz&#039; example.  So the following output configuration suffices:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Outputs&amp;gt;&lt;br /&gt;
   &amp;lt;Output name=&amp;quot;out&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/Output&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The rest of default.xml can be kept the same, then simply type in &#039;&amp;lt;code&amp;gt;go&amp;lt;/code&amp;gt;&#039; in the SUMO root to run the example. If you do not specify any arguments, the SUMO Toolbox will use the settings in the default.xml file. If you wish run a different configuration file use the following command &#039;&amp;lt;code&amp;gt;go(pathToYourConfig/yourConfig.xml)&amp;lt;/code&amp;gt;&#039; where pathToYourConfig is the path to where your configuration XML-file is located, and yourConfig.xml is the name of your configuration XML-file.&lt;br /&gt;
&lt;br /&gt;
As noted above, it is also possible to specify an absolute path or refer to a particular simulator xml file directly.  For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Simulator&amp;gt;/path/to/your/project/directory&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Simulator&amp;gt;Ackley/Ackley2D.xml&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Important notes ===&lt;br /&gt;
&lt;br /&gt;
If you start changing default.xml to try out different examples, there are a number of important things you should be aware of.&lt;br /&gt;
&lt;br /&gt;
==== Select matching Inputs and Outputs ====&lt;br /&gt;
Using the &amp;lt;code&amp;gt;&amp;lt;Inputs&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;Outputs&amp;gt;&amp;lt;/code&amp;gt; tags in the SUMO-Toolbox configuration file you can tell the toolbox which outputs should be modeled and how.  Note that these tags are optional.  You can delete them and then the toolbox will simply model all available inputs and outputs.  If you do specify a particular output, for example say you tell the toolbox to model output &#039;&#039;temperature&#039;&#039; of the simulator &#039;ChemistryProblem&#039;.  If you then change the configuration file to model &#039;BiologyProblem&#039; you will have to change the name of the selected output (or input) since most likely &#039;BiologyProblem&#039; will not have an output called &#039;&#039;temperature&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Information on how to further customize to modelling of the outputs can be found [[Outputs|here]].&lt;br /&gt;
&lt;br /&gt;
==== Select a matching SampleEvaluator ====&lt;br /&gt;
There is one important caveat. Some examples consist of a fixed data set, some are implemented as a Matlab function, others as a C++ executable, etc.  When running a different example you have to tell the SUMO Toolbox how the example is implemented so the toolbox knows how to extract data (eg: should it load a data file or should it call a Matlab function).  This is done by specifying the correct [[Config:SampleEvaluator|SampleEvaluator]] tag.  The default SampleEvaluator is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;SampleEvaluator&amp;gt;matlab&amp;lt;/SampleEvaluator&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So this means that the toolbox expects the example you want to run is implemented as a Matlab function.  Thus it is no use running an example that is implemented as a static dataset using the &#039;[[Config:SampleEvaluator#matlab|matlab]]&#039; or &#039;[[Config:SampleEvaluator#local|local]]&#039; sample evaluators.  Doing this will result in an error.  In this case you should use &#039;[[Config:SampleEvaluator#scatteredDataset|scatteredDataset]]&#039; (or sometimes [[Config:SampleEvaluator#griddedDataset|griddedDataset]]).&lt;br /&gt;
&lt;br /&gt;
To see how an example is implemented open the XML file inside the example directory and look at the &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;Implementation&amp;gt;&amp;lt;/source&amp;gt; tag.  To see which SampleEvaluators are available see [[Config:SampleEvaluator]].&lt;br /&gt;
&lt;br /&gt;
=== Select an appropriate model type ===&lt;br /&gt;
The choice of the model type which you use to model your problem has a great impact on the overall accuracy. If you switch to a different example you may also have to change the model type used. For example, if you are using a spline model (which only works in 2D) and you decide to model a problem with many dimensions (e.g., CompActive or BostonHousing) you will have to switch to a different model type (e.g., any of the SVM or LS-SVM model builders). &lt;br /&gt;
&lt;br /&gt;
The &amp;lt;AdaptiveModelBuilder&amp;gt; tag specifies which model type is used to model problem. In most cases the &#039;AdaptiveModelBuilder&#039; also specifies an optimization algorithm to find the best &#039;hyperparameters&#039; of the models. Hyperparameters are parameters which define model, such as the order of a polynomial or the the number of hidden nodes of an Artificial Neural Network. To see all the AdaptiveModelBuilder options and what they do go to [[Config:AdaptiveModelBuilder| this page]].&lt;br /&gt;
&lt;br /&gt;
=== One-shot designs ===&lt;br /&gt;
If you want to use the toolbox to simply model all your data without instead of using the default sequential approach,  see [[Adaptive_Modeling_Mode]] for how to do this.&lt;br /&gt;
&lt;br /&gt;
== Running different configuration files ==&lt;br /&gt;
&lt;br /&gt;
If you just type &amp;quot;go&amp;quot; the SUMO-Toolbox will run using the configuration options in default.xml.  However you may want to make a copy of default.xml and play around with that, leaving your original default.xml intact.  So the question is, how do you run that file?  Lets say your copy is called MyConfigFile.xml.  In order to tell SUMO to run that file you would type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
go(&#039;/path/to/MyConfigFile.xml&#039;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The path can be an absolute path, or a path relative to the SUMO Toolbox root directory.&lt;br /&gt;
To see what other options you have when running go type &#039;&#039;help go&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remember to always run go from the toolbox root directory.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Merging your configuration ===&lt;br /&gt;
&lt;br /&gt;
If you know what you are doing, you can merge your own custom configuration with the default configuration by using the &#039;-merge&#039; option.  Options or tags that are missing in this custom file will then be filled up with the values from the default configuration.  This prevents you from having to duplicate tags in default.xml and creates xml files which are easier to manipulate. However, if you are unfamiliar with XML and not quite sure what you are doing we advise against using it.&lt;br /&gt;
&lt;br /&gt;
=== Running optimization examples ===&lt;br /&gt;
The SUMO toolbox can also be used for minimizing the simulator in an intelligent way. There are 2 examples in included in &amp;lt;code&amp;gt;config/Optimization&amp;lt;/code&amp;gt;. To run these examples is exactly the same as always, e.g. &amp;lt;code&amp;gt;go(&#039;config/optimization/Branin.xml&#039;)&amp;lt;/code&amp;gt;. The only difference is in the sample selector which is specified in the configuration file itself.&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Image:ISCSampleSelector2.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
The example configuration files are well documented, it is advised to go through them for more detailed information.&lt;br /&gt;
&lt;br /&gt;
== Understanding the control flow ==&lt;br /&gt;
&lt;br /&gt;
[[Image:sumo-control-flow.png|thumb|300px|right|The general SUMO-Toolbox control flow]]&lt;br /&gt;
&lt;br /&gt;
When the toolbox is running you might wonder what exactly is going on. The high level control flow that the toolbox goes through is illustrated in the flow chart and explained in more detail below.  You may also refer to the [[About#Presentation|general SUMO presentation]].&lt;br /&gt;
&lt;br /&gt;
# Select samples according to the [[InitialDesign|initial design]] and execute the [[Simulator]] for each of the points&lt;br /&gt;
# Once enough points are available, start the [[Add_Model_Type#Models.2C_Model_builders.2C_and_Factories|Model builder]] which will start producing models as it optimizes the model parameters&lt;br /&gt;
## the number of models generated depends on the [[Config:AdaptiveModelBuilder|AdaptiveModelBuilder]] used. Usually the AdaptiveModelBuilder tag contains a setting like &#039;&#039;maxFunEvals&#039;&#039; or &#039;&#039;popSize&#039;&#039;.  This indicates to the algorithm that is optimizing the model parameters (and thus generating models) how many models it should maximally generate before stopping.  By increasing this number you will generate more models in between sampling iterations, thus have a higher chance of getting a better model, but increasing the computation time.  This step is what we refer to as a &#039;&#039;modeling iteration&#039;&#039;.&lt;br /&gt;
## optimization over the model parameters is driven by the [[Measures|Measure(s)]] that are enabled. Selection of the Measure is thus very important for the modeling process!&lt;br /&gt;
## each time the model builder generates a model that has a lower measure score than the previous best model, the toolbox will trigger a &amp;quot;New best model found&amp;quot; event, save the model, generate a plot, and trigger all the profilers to update themselves.&lt;br /&gt;
## so note that by default, you only see something happen when a new best model is found, you do not see all the other models that are being generated in the background.  If you want to see those, you must increase the logging granularity (or just look in the log file) or [[FAQ#How_do_I_enable_more_profilers.3F|enable more profilers]].&lt;br /&gt;
# So the model builder will run until it has completed&lt;br /&gt;
# Then, if the current best model satisfies all the targets in the enabled Measures, it means we have reached the requirements and the toolbox terminates.&lt;br /&gt;
# If not, the [[SampleSelector]] selects a new set of samples (= a &#039;&#039;sampling iteration&#039;&#039;), they are simulated, and the model building resumes or is restarted according to the configured restart strategy&lt;br /&gt;
# This whole loop continues (thus the toolbox will keep running) until one of the following conditions is true:&lt;br /&gt;
## the targets specified in the active measure tags have been reached (each Measure has a target value which you can set). Note though, that when you are using multiple measures (see [[Multi-Objective Modeling]]) or when using single measures like AIC or LRM, it becomes difficult to set a priori targets since you cant really interpret the scores (in contrast to the simple case with a single measure like CrossValidation where your target is simply the error you require).  In those cases you should usually set the targets to 0 and use one of the other criteria below to make sure the toolbox stops.&lt;br /&gt;
## the maximum running time has been reached (&#039;&#039;maximumTime&#039;&#039; property in the [[Config:SUMO]] tag)&lt;br /&gt;
## the maximum number of samples has been reached (&#039;&#039;maximumTotalSamples&#039;&#039; property in the [[Config:SUMO]] tag)&lt;br /&gt;
## the maximum number of modeling iterations has been reached (&#039;&#039;maxModelingIterations&#039;&#039; property in the [[Config:SUMO]] tag)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that it is also possible to disable the sample selection loop, see [[Adaptive Modeling Mode]].  Also note that while you might think the toolbox is not doing anything, it is actually building models in the background (see above for how to see the details).  The toolbox will only inform you (unless configured otherwise) if it finds a model that is better than the previous best model (using that particular measure!!).  If not it will continue running until one of the stopping conditions is true.&lt;br /&gt;
&lt;br /&gt;
== SUMO Toolbox output ==&lt;br /&gt;
&lt;br /&gt;
All output is stored under the [[Config:ContextConfig#OutputDirectory|directory]] specified in the [[Config:ContextConfig]] section of the configuration file (by default this is set to &amp;quot;&amp;lt;code&amp;gt;output&amp;lt;/code&amp;gt;&amp;quot;). &lt;br /&gt;
&lt;br /&gt;
Starting from version 6.0 the output directory is always relative to the project directory of your example.  Unless you specify an absolute path.&lt;br /&gt;
&lt;br /&gt;
After completion of a SUMO Toolbox run, the following files and directories can be found there (e.g. : in &amp;lt;code&amp;gt;output/&amp;lt;run_name+date+time&amp;gt;/&amp;lt;/code&amp;gt; subdirectory) :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt;: The xml file that was used by this run. Can be used to reproduce the entire modeling process for that run.&lt;br /&gt;
* &amp;lt;code&amp;gt;randstate.dat&amp;lt;/code&amp;gt;: contains states of the random number generators, so that it becomes possible to deterministically repeat a run (see the [[Random state]] page).&lt;br /&gt;
* &amp;lt;code&amp;gt;samples.txt&amp;lt;/code&amp;gt;: a list of all the samples that were evaluated, and their outputs.&lt;br /&gt;
* &amp;lt;code&amp;gt;profilers&amp;lt;/code&amp;gt;-dir: contains information and plots about convergence rates, resource usage, and so on.&lt;br /&gt;
* &amp;lt;code&amp;gt;best&amp;lt;/code&amp;gt;-dir: contains the best models (+ plots) of all outputs that were constructed during the run.  This is continuously updated as the modeling progresses.&lt;br /&gt;
* &amp;lt;code&amp;gt;models_outputName&amp;lt;/code&amp;gt;-dir: contains a history of all intermediate models (+ plots + movie) for each output that was modeled.&lt;br /&gt;
&lt;br /&gt;
If you generated models [[Multi-Objective Modeling|multi-objectively]] you will also find the following directory:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;paretoFronts&amp;lt;/code&amp;gt;-dir: contains snapshots of the population during multi-objective optimization of the model parameters.&lt;br /&gt;
&lt;br /&gt;
== Debugging ==&lt;br /&gt;
&lt;br /&gt;
Remember to always check the log file first if problems occur!&lt;br /&gt;
When [[reporting problems]] please attach your log file and the xml configuration file you used.&lt;br /&gt;
&lt;br /&gt;
To aid understanding and debugging you should set the console and file logging level to FINE (or even FINER, FINEST)&lt;br /&gt;
as follows: &lt;br /&gt;
&lt;br /&gt;
Change the level of the ConsoleHandler tag to FINE, FINER or FINEST.  Do the same for the FileHandler tag. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- Configure ConsoleHandler instances --&amp;gt;&lt;br /&gt;
&amp;lt;ConsoleHandler&amp;gt;&lt;br /&gt;
	&amp;lt;Option key=&amp;quot;Level&amp;quot; value=&amp;quot;FINE&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/ConsoleHandler&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Using models ==&lt;br /&gt;
&lt;br /&gt;
Once you have generated a model, you might wonder what you can do with it. To see how to load, export, and use SUMO generated models see the [[Using a model]] page.&lt;br /&gt;
&lt;br /&gt;
== Modelling complex outputs ==&lt;br /&gt;
&lt;br /&gt;
The toolbox supports the modeling of complex valued data.  If you do not specify any specific &amp;lt;[[Outputs|Output]]&amp;gt; tags, all outputs will be modeled with [[Outputs#Complex_handling|complexHandling]] set to &#039;&amp;lt;code&amp;gt;complex&amp;lt;/code&amp;gt;&#039;. This means that a real output will be modeled as a real value, and a complex output will be modeled as a complex value (with a real and imaginary part).  If you don&#039;t want this (i.e., you want to model the modulus of a complex output or you want to model real and imaginary parts separately), you explicitly have to set [[Outputs#Complex_handling|complexHandling]] to &#039;modulus&#039;, &#039;real&#039;, &#039;imaginary&#039;, or &#039;split&#039;.&lt;br /&gt;
 &lt;br /&gt;
More information on this subject can be found at the [[Outputs#Complex_handling|Outputs]] page.&lt;br /&gt;
&lt;br /&gt;
== Models with multiple outputs ==&lt;br /&gt;
&lt;br /&gt;
If multiple [[Outputs]] are selected, by default the toolbox will model each output separately using a separate adaptive model builder object.  So if you have a system with 3 outputs you will get three different models each with one output.  However, sometimes you may want a single model with multiple outputs.  For example instead of having a neural network for each component of a complex output (real/imaginary) you might prefer a single network with 2 outputs.  To do this simply set the &#039;combineOutputs&#039; attribute of the &amp;lt;AdaptiveModelBuilder&amp;gt; tag to &#039;true&#039;.  That means that each time that model builder is selected for an output, the same model builder object will be used instead of creating a new one.&lt;br /&gt;
&lt;br /&gt;
Note though, that not all model types support multiple outputs.  If they don&#039;t you will get an error message.&lt;br /&gt;
&lt;br /&gt;
Also note that you can also generate models with multiple outputs in a multi-objective fashion.  For information on this see the page on [[Multi-Objective Modeling]].&lt;br /&gt;
&lt;br /&gt;
== Multi-Objective Model generation ==&lt;br /&gt;
&lt;br /&gt;
See the page on [[Multi-Objective Modeling]].&lt;br /&gt;
&lt;br /&gt;
== Interfacing with the SUMO Toolbox ==&lt;br /&gt;
&lt;br /&gt;
To learn how to interface with the toolbox or model your own problem see the [[Adding an example]] and [[Interfacing with the toolbox]] pages.&lt;br /&gt;
&lt;br /&gt;
== Test Suite ==&lt;br /&gt;
&lt;br /&gt;
A test harness is provided that can be run manually or automatically as part of a cron job.  The test suite consists of a number of test XML files (in the config/test/ directory), each describing a particular surrogate modeling experiment.  The file config/test/suite.xml dictates which tests are run and their order.  The suite.xml file also contains the accuracy and sample bounds that are checked after each test.  If the final model found does not fall within the accuracy or number-of-samples bounds, the test is considered failed.&lt;br /&gt;
&lt;br /&gt;
Note also that some of the predefined test cases may rely on data sets or simulation code that are not publically available for confidentiality reasons.  However, since these test problems typically make very good benchmark problems we left them in for illustration purposes.&lt;br /&gt;
&lt;br /&gt;
The coordinating class is the Matlab TestSuite class found in the src/matlab directory. Besides running the tests defined in suite.xml it also tests each of the model member functions.&lt;br /&gt;
&lt;br /&gt;
Assuming the SUMO Toolbox is setup properly and the necessary libraries are compiled ([[Installation#Optional:_Compiling_libraries|see here]]), the test suite should be run as follows (from the SUMO root directory):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
s = TestEngine(&#039;config/test/suite.xml&#039;) ; s.run()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;run()&amp;quot; method also supports an optional parameter (a vector) that dictates which tests to run (e.g., run([2 5 3]) will run tests 2,5 and 3).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note that due to randomization the final accuracy and number of samples used may vary slightly from run to run (causing failed tests).  Thus the bounds must be set sufficiently loose.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Tips ==&lt;br /&gt;
&lt;br /&gt;
See the [[Tips]] page for various tips and gotchas.&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Running&amp;diff=5781</id>
		<title>Running</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Running&amp;diff=5781"/>
		<updated>2012-02-15T10:19:43Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* Getting started */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Getting started ==&lt;br /&gt;
&lt;br /&gt;
If you are just getting started with the toolbox and you want to find out how everything works, this section should help you on your way.&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;features&#039;&#039;&#039; and scope of the SUMO Toolbox are detailed on this [[About#Intended_use|page]]. To find out more about the SUMO Toolbox in general, check out the documentation on this [[About#Documentation|page]].&lt;br /&gt;
&lt;br /&gt;
* If you want to get hands-on with the SUMO Toolbox, we recommend using this [http://www.sumowiki.intec.ugent.be/images/7/7b/SUMO_hands_on.pdf guide]. The guide explains the basic SUMO framework, how to &#039;&#039;&#039;install&#039;&#039;&#039; the SUMO Toolbox on your computer and provides some &#039;&#039;&#039;examples&#039;&#039;&#039; on running the toolbox.&lt;br /&gt;
&lt;br /&gt;
* Since the SUMO Toolbox is [[Configuration|configured]] by editing XML files it might be a good idea to read [[FAQ#What is XML?|this page]], if you are not familiar with XML files.&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;installation&#039;&#039;&#039; information can also be found [[Installation|on this wiki]] and more information on running a different example the SUMO Toolbox can be found [[Running#Running_different_examples|here]]. &lt;br /&gt;
&lt;br /&gt;
* The SUMO Toolbox also comes with a set of &#039;&#039;&#039;demo&#039;s&#039;&#039;&#039; showing the different uses of the toolbox. You can find the configuration files for these demo&#039;s in the &#039;config/demo&#039; directory.&lt;br /&gt;
&lt;br /&gt;
* We have also provided some [[General_guidelines|general modelling guidelines]] which you can use a starting point to model your problems.&lt;br /&gt;
&lt;br /&gt;
* Also be sure to check out the &#039;&#039;&#039;Frequently Asked Questions&#039;&#039;&#039; ([[FAQ|FAQ]]) page as it might answer some of your questions.&lt;br /&gt;
&lt;br /&gt;
Finally if you get stuck or have any problems [[Reporting problems|feel free to let us know]] and will do our best to help you.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please don&#039;t hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Running different examples  ==&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
This section is about running a different example problem, if you want to model your own problem see [[Adding an example]].  Make sure you [[configuration|understand the difference between the simulator configuration file and the toolbox configuration file]] and understand how these configuration files are [[Toolbox configuration#Structure|structured]].&lt;br /&gt;
&lt;br /&gt;
=== Changing the configuration xml ===&lt;br /&gt;
The &amp;lt;code&amp;gt;examples/&amp;lt;/code&amp;gt; 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 &amp;lt;code&amp;gt;config/default.xml&amp;lt;/code&amp;gt; and edit the [[Simulator| &amp;lt;Simulator&amp;gt;]] tag to suit your needs (for more information about editing the configuration xml, go to this [[Config:ToolboxConfiguration#Interpreting_the_configuration_file|page]]).&lt;br /&gt;
&lt;br /&gt;
For example, originally the default &#039;&#039;&#039;configuration xml&#039;&#039;&#039; file, default.xml, contains:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Simulator&amp;gt;Math/Academic/Academic2DTwice.xml&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The toolbox will look in the examples directory for a project directory called &amp;lt;code&amp;gt;Math/Academic&amp;lt;/code&amp;gt; and load the &#039;&#039;&#039;simulator xml&#039;&#039;&#039; file named &#039;Academic2DTwice.xml&#039;. If no simulator xml file name is specified, the SUMO Toolbox will load the simulator xml with the same name as directory. For example &amp;lt;code&amp;gt;Math/Peaks&amp;lt;/code&amp;gt; is equivalent to &amp;lt;code&amp;gt;Math/Peaks/Peaks.xml&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now let&#039;s say you want to run one of the different example problems, for example, lets say you want to try the &#039;Michalewicz&#039; example.  In this case you would replace the original Simulator tag with: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Simulator&amp;gt;Math/Michalewicz&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In addition you would have to change the &amp;lt;code&amp;gt;&amp;lt;Outputs&amp;gt;&amp;lt;/code&amp;gt; tag.  The &amp;lt;code&amp;gt;Math/Academic/Academic2DTwice.xml&amp;lt;/code&amp;gt; example has two outputs (&#039;&#039;out&#039;&#039; and &#039;&#039;outinverse&#039;&#039;).  However, the Michalewicz example has only one (&#039;&#039;out&#039;&#039;).  Thus telling the SUMO Toolbox to model the &#039;&#039;outinverse&#039;&#039; output in that case makes no sense since it does not exist for the &#039;Michalewicz&#039; example.  So the following output configuration suffices:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Outputs&amp;gt;&lt;br /&gt;
   &amp;lt;Output name=&amp;quot;out&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/Output&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The rest of default.xml can be kept the same, then simply type in &#039;&amp;lt;code&amp;gt;go&amp;lt;/code&amp;gt;&#039; in the SUMO root to run the example. If you do not specify any arguments, the SUMO Toolbox will use the settings in the default.xml file. If you wish run a different configuration file use the following command &#039;&amp;lt;code&amp;gt;go(pathToYourConfig/yourConfig.xml)&amp;lt;/code&amp;gt;&#039; where pathToYourConfig is the path to where your configuration XML-file is located, and yourConfig.xml is the name of your configuration XML-file.&lt;br /&gt;
&lt;br /&gt;
As noted above, it is also possible to specify an absolute path or refer to a particular simulator xml file directly.  For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Simulator&amp;gt;/path/to/your/project/directory&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Simulator&amp;gt;Ackley/Ackley2D.xml&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Important notes ===&lt;br /&gt;
&lt;br /&gt;
If you start changing default.xml to try out different examples, there are a number of important things you should be aware of.&lt;br /&gt;
&lt;br /&gt;
==== Select matching Inputs and Outputs ====&lt;br /&gt;
Using the &amp;lt;code&amp;gt;&amp;lt;Inputs&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;Outputs&amp;gt;&amp;lt;/code&amp;gt; tags in the SUMO-Toolbox configuration file you can tell the toolbox which outputs should be modeled and how.  Note that these tags are optional.  You can delete them and then the toolbox will simply model all available inputs and outputs.  If you do specify a particular output, for example say you tell the toolbox to model output &#039;&#039;temperature&#039;&#039; of the simulator &#039;ChemistryProblem&#039;.  If you then change the configuration file to model &#039;BiologyProblem&#039; you will have to change the name of the selected output (or input) since most likely &#039;BiologyProblem&#039; will not have an output called &#039;&#039;temperature&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Information on how to further customize to modelling of the outputs can be found [[Outputs|here]].&lt;br /&gt;
&lt;br /&gt;
==== Select a matching SampleEvaluator ====&lt;br /&gt;
There is one important caveat. Some examples consist of a fixed data set, some are implemented as a Matlab function, others as a C++ executable, etc.  When running a different example you have to tell the SUMO Toolbox how the example is implemented so the toolbox knows how to extract data (eg: should it load a data file or should it call a Matlab function).  This is done by specifying the correct [[Config:SampleEvaluator|SampleEvaluator]] tag.  The default SampleEvaluator is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;SampleEvaluator&amp;gt;matlab&amp;lt;/SampleEvaluator&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So this means that the toolbox expects the example you want to run is implemented as a Matlab function.  Thus it is no use running an example that is implemented as a static dataset using the &#039;[[Config:SampleEvaluator#matlab|matlab]]&#039; or &#039;[[Config:SampleEvaluator#local|local]]&#039; sample evaluators.  Doing this will result in an error.  In this case you should use &#039;[[Config:SampleEvaluator#scatteredDataset|scatteredDataset]]&#039; (or sometimes [[Config:SampleEvaluator#griddedDataset|griddedDataset]]).&lt;br /&gt;
&lt;br /&gt;
To see how an example is implemented open the XML file inside the example directory and look at the &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;Implementation&amp;gt;&amp;lt;/source&amp;gt; tag.  To see which SampleEvaluators are available see [[Config:SampleEvaluator]].&lt;br /&gt;
&lt;br /&gt;
=== Select an appropriate model type ===&lt;br /&gt;
The choice of the model type which you use to model your problem has a great impact on the overall accuracy. If you switch to a different example you may also have to change the model type used. For example, if you are using a spline model (which only works in 2D) and you decide to model a problem with many dimensions (e.g., CompActive or BostonHousing) you will have to switch to a different model type (e.g., any of the SVM or LS-SVM model builders). &lt;br /&gt;
&lt;br /&gt;
The &amp;lt;AdaptiveModelBuilder&amp;gt; tag specifies which model type is used to model problem. In most cases the &#039;AdaptiveModelBuilder&#039; also specifies an optimization algorithm to find the best &#039;hyperparameters&#039; of the models. Hyperparameters are parameters which define model, such as the order of a polynomial or the the number of hidden nodes of an Artificial Neural Network. To see all the AdaptiveModelBuilder options and what they do go to [[Config:AdaptiveModelBuilder| this page]].&lt;br /&gt;
&lt;br /&gt;
=== One-shot designs ===&lt;br /&gt;
If you want to use the toolbox to simply model all your data without instead of using the default sequential approach,  see [[Adaptive_Modeling_Mode]] for how to do this.&lt;br /&gt;
&lt;br /&gt;
== Running different configuration files ==&lt;br /&gt;
&lt;br /&gt;
If you just type &amp;quot;go&amp;quot; the SUMO-Toolbox will run using the configuration options in default.xml.  However you may want to make a copy of default.xml and play around with that, leaving your original default.xml intact.  So the question is, how do you run that file?  Lets say your copy is called MyConfigFile.xml.  In order to tell SUMO to run that file you would type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
go(&#039;/path/to/MyConfigFile.xml&#039;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The path can be an absolute path, or a path relative to the SUMO Toolbox root directory.&lt;br /&gt;
To see what other options you have when running go type &#039;&#039;help go&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remember to always run go from the toolbox root directory.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Merging your configuration ===&lt;br /&gt;
&lt;br /&gt;
If you know what you are doing, you can merge your own custom configuration with the default configuration by using the &#039;-merge&#039; option.  Options or tags that are missing in this custom file will then be filled up with the values from the default configuration.  This prevents you from having to duplicate tags in default.xml and creates xml files which are easier to manipulate. However, if you are unfamiliar with XML and not quite sure what you are doing we advise against using it.&lt;br /&gt;
&lt;br /&gt;
=== Running optimization examples ===&lt;br /&gt;
The SUMO toolbox can also be used for minimizing the simulator in an intelligent way. There are 2 examples in included in &amp;lt;code&amp;gt;config/Optimization&amp;lt;/code&amp;gt;. To run these examples is exactly the same as always, e.g. &amp;lt;code&amp;gt;go(&#039;config/optimization/Branin.xml&#039;)&amp;lt;/code&amp;gt;. The only difference is in the sample selector which is specified in the configuration file itself.&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Image:ISCSampleSelector2.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
The example configuration files are well documented, it is advised to go through them for more detailed information.&lt;br /&gt;
&lt;br /&gt;
== Understanding the control flow ==&lt;br /&gt;
&lt;br /&gt;
[[Image:sumo-control-flow.png|thumb|300px|right|The general SUMO-Toolbox control flow]]&lt;br /&gt;
&lt;br /&gt;
When the toolbox is running you might wonder what exactly is going on. The high level control flow that the toolbox goes through is illustrated in the flow chart and explained in more detail below.  You may also refer to the [[About#Presentation|general SUMO presentation]].&lt;br /&gt;
&lt;br /&gt;
# Select samples according to the [[InitialDesign|initial design]] and execute the [[Simulator]] for each of the points&lt;br /&gt;
# Once enough points are available, start the [[Add_Model_Type#Models.2C_Model_builders.2C_and_Factories|Model builder]] which will start producing models as it optimizes the model parameters&lt;br /&gt;
## the number of models generated depends on the [[Config:AdaptiveModelBuilder|AdaptiveModelBuilder]] used. Usually the AdaptiveModelBuilder tag contains a setting like &#039;&#039;maxFunEvals&#039;&#039; or &#039;&#039;popSize&#039;&#039;.  This indicates to the algorithm that is optimizing the model parameters (and thus generating models) how many models it should maximally generate before stopping.  By increasing this number you will generate more models in between sampling iterations, thus have a higher chance of getting a better model, but increasing the computation time.  This step is what we refer to as a &#039;&#039;modeling iteration&#039;&#039;.&lt;br /&gt;
## optimization over the model parameters is driven by the [[Measures|Measure(s)]] that are enabled. Selection of the Measure is thus very important for the modeling process!&lt;br /&gt;
## each time the model builder generates a model that has a lower measure score than the previous best model, the toolbox will trigger a &amp;quot;New best model found&amp;quot; event, save the model, generate a plot, and trigger all the profilers to update themselves.&lt;br /&gt;
## so note that by default, you only see something happen when a new best model is found, you do not see all the other models that are being generated in the background.  If you want to see those, you must increase the logging granularity (or just look in the log file) or [[FAQ#How_do_I_enable_more_profilers.3F|enable more profilers]].&lt;br /&gt;
# So the model builder will run until it has completed&lt;br /&gt;
# Then, if the current best model satisfies all the targets in the enabled Measures, it means we have reached the requirements and the toolbox terminates.&lt;br /&gt;
# If not, the [[SampleSelector]] selects a new set of samples (= a &#039;&#039;sampling iteration&#039;&#039;), they are simulated, and the model building resumes or is restarted according to the configured restart strategy&lt;br /&gt;
# This whole loop continues (thus the toolbox will keep running) until one of the following conditions is true:&lt;br /&gt;
## the targets specified in the active measure tags have been reached (each Measure has a target value which you can set). Note though, that when you are using multiple measures (see [[Multi-Objective Modeling]]) or when using single measures like AIC or LRM, it becomes difficult to set a priori targets since you cant really interpret the scores (in contrast to the simple case with a single measure like CrossValidation where your target is simply the error you require).  In those cases you should usually set the targets to 0 and use one of the other criteria below to make sure the toolbox stops.&lt;br /&gt;
## the maximum running time has been reached (&#039;&#039;maximumTime&#039;&#039; property in the [[Config:SUMO]] tag)&lt;br /&gt;
## the maximum number of samples has been reached (&#039;&#039;maximumTotalSamples&#039;&#039; property in the [[Config:SUMO]] tag)&lt;br /&gt;
## the maximum number of modeling iterations has been reached (&#039;&#039;maxModelingIterations&#039;&#039; property in the [[Config:SUMO]] tag)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that it is also possible to disable the sample selection loop, see [[Adaptive Modeling Mode]].  Also note that while you might think the toolbox is not doing anything, it is actually building models in the background (see above for how to see the details).  The toolbox will only inform you (unless configured otherwise) if it finds a model that is better than the previous best model (using that particular measure!!).  If not it will continue running until one of the stopping conditions is true.&lt;br /&gt;
&lt;br /&gt;
== SUMO Toolbox output ==&lt;br /&gt;
&lt;br /&gt;
All output is stored under the [[Config:ContextConfig#OutputDirectory|directory]] specified in the [[Config:ContextConfig]] section of the configuration file (by default this is set to &amp;quot;&amp;lt;code&amp;gt;output&amp;lt;/code&amp;gt;&amp;quot;). &lt;br /&gt;
&lt;br /&gt;
Starting from version 6.0 the output directory is always relative to the project directory of your example.  Unless you specify an absolute path.&lt;br /&gt;
&lt;br /&gt;
After completion of a SUMO Toolbox run, the following files and directories can be found there (e.g. : in &amp;lt;code&amp;gt;output/&amp;lt;run_name+date+time&amp;gt;/&amp;lt;/code&amp;gt; subdirectory) :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt;: The xml file that was used by this run. Can be used to reproduce the entire modeling process for that run.&lt;br /&gt;
* &amp;lt;code&amp;gt;randstate.dat&amp;lt;/code&amp;gt;: contains states of the random number generators, so that it becomes possible to deterministically repeat a run (see the [[Random state]] page).&lt;br /&gt;
* &amp;lt;code&amp;gt;samples.txt&amp;lt;/code&amp;gt;: a list of all the samples that were evaluated, and their outputs.&lt;br /&gt;
* &amp;lt;code&amp;gt;profilers&amp;lt;/code&amp;gt;-dir: contains information and plots about convergence rates, resource usage, and so on.&lt;br /&gt;
* &amp;lt;code&amp;gt;best&amp;lt;/code&amp;gt;-dir: contains the best models (+ plots) of all outputs that were constructed during the run.  This is continuously updated as the modeling progresses.&lt;br /&gt;
* &amp;lt;code&amp;gt;models_outputName&amp;lt;/code&amp;gt;-dir: contains a history of all intermediate models (+ plots + movie) for each output that was modeled.&lt;br /&gt;
&lt;br /&gt;
If you generated models [[Multi-Objective Modeling|multi-objectively]] you will also find the following directory:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;paretoFronts&amp;lt;/code&amp;gt;-dir: contains snapshots of the population during multi-objective optimization of the model parameters.&lt;br /&gt;
&lt;br /&gt;
== Debugging ==&lt;br /&gt;
&lt;br /&gt;
Remember to always check the log file first if problems occur!&lt;br /&gt;
When [[reporting problems]] please attach your log file and the xml configuration file you used.&lt;br /&gt;
&lt;br /&gt;
To aid understanding and debugging you should set the console and file logging level to FINE (or even FINER, FINEST)&lt;br /&gt;
as follows: &lt;br /&gt;
&lt;br /&gt;
Change the level of the ConsoleHandler tag to FINE, FINER or FINEST.  Do the same for the FileHandler tag. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- Configure ConsoleHandler instances --&amp;gt;&lt;br /&gt;
&amp;lt;ConsoleHandler&amp;gt;&lt;br /&gt;
	&amp;lt;Option key=&amp;quot;Level&amp;quot; value=&amp;quot;FINE&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/ConsoleHandler&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Using models ==&lt;br /&gt;
&lt;br /&gt;
Once you have generated a model, you might wonder what you can do with it. To see how to load, export, and use SUMO generated models see the [[Using a model]] page.&lt;br /&gt;
&lt;br /&gt;
== Modelling complex outputs ==&lt;br /&gt;
&lt;br /&gt;
The toolbox supports the modeling of complex valued data.  If you do not specify any specific &amp;lt;[[Outputs|Output]]&amp;gt; tags, all outputs will be modeled with [[Outputs#Complex_handling|complexHandling]] set to &#039;&amp;lt;code&amp;gt;complex&amp;lt;/code&amp;gt;&#039;. This means that a real output will be modeled as a real value, and a complex output will be modeled as a complex value (with a real and imaginary part).  If you don&#039;t want this (i.e., you want to model the modulus of a complex output or you want to model real and imaginary parts separately), you explicitly have to set [[Outputs#Complex_handling|complexHandling]] to &#039;modulus&#039;, &#039;real&#039;, &#039;imaginary&#039;, or &#039;split&#039;.&lt;br /&gt;
 &lt;br /&gt;
More information on this subject can be found at the [[Outputs#Complex_handling|Outputs]] page.&lt;br /&gt;
&lt;br /&gt;
== Models with multiple outputs ==&lt;br /&gt;
&lt;br /&gt;
If multiple [[Outputs]] are selected, by default the toolbox will model each output separately using a separate adaptive model builder object.  So if you have a system with 3 outputs you will get three different models each with one output.  However, sometimes you may want a single model with multiple outputs.  For example instead of having a neural network for each component of a complex output (real/imaginary) you might prefer a single network with 2 outputs.  To do this simply set the &#039;combineOutputs&#039; attribute of the &amp;lt;AdaptiveModelBuilder&amp;gt; tag to &#039;true&#039;.  That means that each time that model builder is selected for an output, the same model builder object will be used instead of creating a new one.&lt;br /&gt;
&lt;br /&gt;
Note though, that not all model types support multiple outputs.  If they don&#039;t you will get an error message.&lt;br /&gt;
&lt;br /&gt;
Also note that you can also generate models with multiple outputs in a multi-objective fashion.  For information on this see the page on [[Multi-Objective Modeling]].&lt;br /&gt;
&lt;br /&gt;
== Multi-Objective Model generation ==&lt;br /&gt;
&lt;br /&gt;
See the page on [[Multi-Objective Modeling]].&lt;br /&gt;
&lt;br /&gt;
== Interfacing with the SUMO Toolbox ==&lt;br /&gt;
&lt;br /&gt;
To learn how to interface with the toolbox or model your own problem see the [[Adding an example]] and [[Interfacing with the toolbox]] pages.&lt;br /&gt;
&lt;br /&gt;
== Test Suite ==&lt;br /&gt;
&lt;br /&gt;
A test harness is provided that can be run manually or automatically as part of a cron job.  The test suite consists of a number of test XML files (in the config/test/ directory), each describing a particular surrogate modeling experiment.  The file config/test/suite.xml dictates which tests are run and their order.  The suite.xml file also contains the accuracy and sample bounds that are checked after each test.  If the final model found does not fall within the accuracy or number-of-samples bounds, the test is considered failed.&lt;br /&gt;
&lt;br /&gt;
Note also that some of the predefined test cases may rely on data sets or simulation code that are not publically available for confidentiality reasons.  However, since these test problems typically make very good benchmark problems we left them in for illustration purposes.&lt;br /&gt;
&lt;br /&gt;
The coordinating class is the Matlab TestSuite class found in the src/matlab directory. Besides running the tests defined in suite.xml it also tests each of the model member functions.&lt;br /&gt;
&lt;br /&gt;
Assuming the SUMO Toolbox is setup properly and the necessary libraries are compiled ([[Installation#Optional:_Compiling_libraries|see here]]), the test suite should be run as follows (from the SUMO root directory):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
s = TestEngine(&#039;config/test/suite.xml&#039;) ; s.run()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;run()&amp;quot; method also supports an optional parameter (a vector) that dictates which tests to run (e.g., run([2 5 3]) will run tests 2,5 and 3).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note that due to randomization the final accuracy and number of samples used may vary slightly from run to run (causing failed tests).  Thus the bounds must be set sufficiently loose.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Tips ==&lt;br /&gt;
&lt;br /&gt;
See the [[Tips]] page for various tips and gotchas.&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Config:ToolboxConfiguration&amp;diff=5780</id>
		<title>Config:ToolboxConfiguration</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Config:ToolboxConfiguration&amp;diff=5780"/>
		<updated>2012-02-13T16:45:56Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* Changing configuration components of an experimental run */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Toolbox configuration file ==&lt;br /&gt;
This is the default SUMO toolbox configuration, this is what gets used when you run &#039;go&#039; without any arguments You can edit this file directly or make a copy and run that. See the wiki for detailed information.&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:ToolboxConfiguration|ToolboxConfiguration]] version=&amp;quot;7.0&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;[[Config:Plan|Plan]]/&amp;gt;&lt;br /&gt;
	&amp;lt;[[Config:ContextConfig|ContextConfig]]/&amp;gt;&lt;br /&gt;
	&amp;lt;[[Config:Logging|Logging]]/&amp;gt;&lt;br /&gt;
	&amp;lt;[[Config:LevelPlot|LevelPlot]]/&amp;gt;&lt;br /&gt;
	&amp;lt;[[Config:SUMO|SUMO]]/&amp;gt;&lt;br /&gt;
	&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]]/&amp;gt;&lt;br /&gt;
	&amp;lt;[[Config:SampleSelector|SampleSelector]]/&amp;gt;&lt;br /&gt;
	&amp;lt;[[Config:AdaptiveModelBuilder|AdaptiveModelBuilder]]/&amp;gt;&lt;br /&gt;
	&amp;lt;[[Config:BasisFunction|BasisFunction]]/&amp;gt;&lt;br /&gt;
	&amp;lt;[[Config:InitialDesign|InitialDesign]]/&amp;gt;&lt;br /&gt;
	&amp;lt;[[Config:Optimizer|Optimizer]]/&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:ToolboxConfiguration|ToolboxConfiguration]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Interpreting the configuration file == &lt;br /&gt;
&lt;br /&gt;
When first looking at the default.xml you are presented with a lot of information and it can be a bit difficult to understand what is going, especially if you are not familiar with XML. However there is method in the madness, and this section will help you to break down the components that make up the configuration file. &lt;br /&gt;
&lt;br /&gt;
=== Comments ===&lt;br /&gt;
Comments in the XML are displayed like so:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;!-- This is an example comment. --&amp;gt;        &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default.xml contains a lot of comments with information about the different sections or example usage.&lt;br /&gt;
&lt;br /&gt;
=== Tags ===&lt;br /&gt;
XML groups information that logically belong to with each other within so called &#039;&#039;&#039;tags&#039;&#039;&#039;. Here is an example of a &#039;&#039;recipe&#039;&#039; tag. This is a recipe to make pancakes, which is grouped in a logical way; all the ingredients &#039;&#039;items&#039;&#039; are grouped within the &#039;&#039;ingredients&#039;&#039; tag. The &#039;&#039;items&#039;&#039; themselves in turn group information about the &#039;&#039;type&#039;&#039; of ingredient and the required &#039;&#039;amount&#039;&#039;. Tags can also have attributes, here the &#039;&#039;recipe&#039;&#039; tag has an attribute called &#039;&#039;category&#039;&#039; with the value &#039;&#039;desert&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;recipe category=&amp;quot;dessert&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;title&amp;gt;Pancakes&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;sumo@intec.ugent.be&amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;date&amp;gt;Wed, 14 Jun 95&amp;lt;/date&amp;gt;&lt;br /&gt;
  &amp;lt;description&amp;gt;&lt;br /&gt;
    Good old fashioned pancakes.&lt;br /&gt;
  &amp;lt;/description&amp;gt;&lt;br /&gt;
  &amp;lt;ingredients&amp;gt;&lt;br /&gt;
    &amp;lt;item&amp;gt;&lt;br /&gt;
        &amp;lt;amount&amp;gt;3&amp;lt;/amount&amp;gt;&lt;br /&gt;
        &amp;lt;type&amp;gt;eggs&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;/item&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;item&amp;gt;&lt;br /&gt;
         &amp;lt;amount&amp;gt;0.5 tablespoon&amp;lt;/amount&amp;gt;&lt;br /&gt;
         &amp;lt;type&amp;gt;salt&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;/item&amp;gt;&lt;br /&gt;
     ...&lt;br /&gt;
  &amp;lt;/ingredients&amp;gt;&lt;br /&gt;
  &amp;lt;preparation&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
  &amp;lt;/preparation&amp;gt;&lt;br /&gt;
 &amp;lt;/recipe&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The configuration file uses XML to group information about the Toolbox into logical units. Here is an example configuration of a [[Config:SampleSelector#delaunay|SampleSelector]] called delaunay. It has three attributes &#039;&#039;id&#039;&#039;, &#039;&#039;type&#039;&#039; and &#039;&#039;combineOutputs&#039;&#039;. The SUMO Toolbox uses the &#039;&#039;id&#039;&#039; to refer to this configuration section in other places in the configuration file. The &#039;&#039;type&#039;&#039; refers tells the toolbox what class of sample selector it has to look for in the &amp;lt;code&amp;gt;src&amp;lt;/code&amp;gt; folder, in this case the class &#039;&#039;PipeLinSampleSelector&#039;&#039; which you can find under &amp;lt;code&amp;gt;src/matlab/sampleselector/@PipeLineSampleSelector&amp;lt;/code&amp;gt;. The &#039;&#039;combineOutputs&#039;&#039; tells the SUMO how the SampleSelector has to deal with multiple outputs.&lt;br /&gt;
&lt;br /&gt;
If you look at the implementation of the PipeLineSampleSelector you will see that it requires a &#039;&#039;CandidateGenerator&#039;&#039;, &#039;&#039;CandidateRanker&#039;&#039; and a &#039;&#039;MergeCriterion&#039;&#039; all of which are specified here within the &#039;&#039;SampleSelector&#039;&#039; tag.&lt;br /&gt;
&lt;br /&gt;
Other components (such as [[Config:AdaptiveModelBuilder|AdaptiveModelBuilder]], [[Config:InitialDesign|initial design]], etc...) require different information. To find what options and configurations you need/can give to a component check out their wiki page or their implementation in the Toolbox.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=xml&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;SampleSelector id=&amp;quot;delaunay&amp;quot; type=&amp;quot;PipelineSampleSelector&amp;quot; combineOutputs=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
		&amp;lt;CandidateGenerator type=&amp;quot;DelaunayCandidateGenerator&amp;quot;/&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;modelDifference&amp;quot;&amp;gt;&lt;br /&gt;
        		&amp;lt;Option key=&amp;quot;criterion_parameter&amp;quot; value=&amp;quot;2&amp;quot;/&amp;gt;&lt;br /&gt;
       		&amp;lt;/CandidateRanker&amp;gt;&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;delaunayVolume&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        	&amp;lt;MergeCriterion type=&amp;quot;WeightedAverage&amp;quot; weights=&amp;quot;[1 1]&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing configuration components of an experimental run ===&lt;br /&gt;
The SUMO Toolbox was written with flexibility in mind, making it easy to experiment with different combinations of algorithms. Here is a snippet from a configuration XML. The snippet show the &amp;lt;Plan&amp;gt; tag which determines how the experimental runs are configured and two different pre-defined &amp;lt;SampleSelector&amp;gt; tags, &#039;&#039;random&#039;&#039; and &#039;&#039;delaunay&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;ISO-8859-1&amp;quot; ?&amp;gt;&lt;br /&gt;
&amp;lt;ToolboxConfiguration version=&amp;quot;7.0&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;Plan&amp;gt;&lt;br /&gt;
                &amp;lt;ContextConfig&amp;gt;default&amp;lt;/ContextConfig&amp;gt;&lt;br /&gt;
		&amp;lt;SUMO&amp;gt;default&amp;lt;/SUMO&amp;gt;&lt;br /&gt;
		&amp;lt;LevelPlot&amp;gt;default&amp;lt;/LevelPlot&amp;gt;&lt;br /&gt;
		&amp;lt;Simulator&amp;gt;Math/Academic/Academic2DTwice.xml&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
                &amp;lt;Run name=&amp;quot;&amp;quot; repeat=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;InitialDesign&amp;gt;lhdWithCornerPoints&amp;lt;/InitialDesign&amp;gt;&lt;br /&gt;
			&amp;lt;SampleSelector&amp;gt;random&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
			&amp;lt;SampleEvaluator&amp;gt;matlab&amp;lt;/SampleEvaluator&amp;gt;&lt;br /&gt;
			&amp;lt;AdaptiveModelBuilder&amp;gt;kriging&amp;lt;/AdaptiveModelBuilder&amp;gt;&lt;br /&gt;
			&amp;lt;Measure type=&amp;quot;CrossValidation&amp;quot; target=&amp;quot;0.01&amp;quot; errorFcn=&amp;quot;rootRelativeSquareError&amp;quot; use=&amp;quot;on&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Outputs&amp;gt;&lt;br /&gt;
				&amp;lt;Output name=&amp;quot;out&amp;quot;&amp;gt;&lt;br /&gt;
				&amp;lt;/Output&amp;gt;&lt;br /&gt;
				&amp;lt;Output name=&amp;quot;outinverse&amp;quot;&amp;gt;&lt;br /&gt;
				&amp;lt;/Output&amp;gt;&lt;br /&gt;
			&amp;lt;/Outputs&amp;gt;&lt;br /&gt;
		&amp;lt;/Run&amp;gt;&lt;br /&gt;
	&amp;lt;/Plan&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 	...&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;SampleSelector id=&amp;quot;random&amp;quot; type=&amp;quot;RandomSampleSelector&amp;quot; combineOutputs=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;SampleSelector id=&amp;quot;delaunay&amp;quot; type=&amp;quot;PipelineSampleSelector&amp;quot; combineOutputs=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
		&amp;lt;CandidateGenerator type=&amp;quot;DelaunayCandidateGenerator&amp;quot;/&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;modelDifference&amp;quot;&amp;gt;&lt;br /&gt;
        		&amp;lt;Option key=&amp;quot;criterion_parameter&amp;quot; value=&amp;quot;2&amp;quot;/&amp;gt;&lt;br /&gt;
       		&amp;lt;/CandidateRanker&amp;gt;&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;delaunayVolume&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        	&amp;lt;MergeCriterion type=&amp;quot;WeightedAverage&amp;quot; weights=&amp;quot;[1 1]&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
	&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ToolboxConfiguration&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All the tags within the &amp;lt;Plan&amp;gt; tag, except for Measure, Inputs and Outputs, refer to a configuration section defined further in the configuration xml. These tags determine what algorithm will be used for the experimental run. For example in this case the tag: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;SampleSelector&amp;gt;random&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
refers to the SampleSelector tag with an &#039;&#039;id=random&#039;&#039;. So even though both the &#039;&#039;random&#039;&#039; SampleSelector and &#039;&#039;delaunay&#039;&#039; SampleSelector are defined, it is the random SampleSelector which will be used in the experimental run. To use the &#039;&#039;delaunay&#039;&#039; SampleSelector simply replace &#039;&#039;random&#039;&#039; by &#039;&#039;delaunay&#039;&#039; in the &amp;lt;Plan&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The default.xml already has a number of configuration section already defined, making it easier for you to experiment with them. All you have to do is use the appropriate &#039;&#039;id&#039;&#039; in the right tags.&lt;br /&gt;
&lt;br /&gt;
=== Modifying/Creating your own configuration section ===&lt;br /&gt;
&lt;br /&gt;
In some cases the default configuration sections might no suit your needs. For example if you require a lhdWithCornerPoints [[Config:InitialDesign|initial design]] with 40 instead of the default 20 points. In this case you can either create a new configuration section like so:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;InitialDesign id=&amp;quot;lhdWithCornerPoints40&amp;quot; type=&amp;quot;CombinedDesign&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;InitialDesign type=&amp;quot;LatinHypercubeDesign&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;!-- how many points to generate --&amp;gt;&lt;br /&gt;
			&amp;lt;Option key=&amp;quot;points&amp;quot; value=&amp;quot;40&amp;quot;/&amp;gt;&lt;br /&gt;
		&amp;lt;/InitialDesign&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		&amp;lt;InitialDesign type=&amp;quot;FactorialDesign&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;Option key=&amp;quot;levels&amp;quot; value=&amp;quot;2&amp;quot; /&amp;gt;&lt;br /&gt;
		&amp;lt;/InitialDesign&amp;gt;&lt;br /&gt;
	&amp;lt;/InitialDesign&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and refer to it in the plan using the &#039;&#039;id&#039;&#039; lhdWithCornerPoints40 or you can simply edit the default lhdWithCornerPoints :). When making your own configuration section, make sure you specify all necessary tags and options and you&#039;re set to go!&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=FAQ&amp;diff=5779</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=FAQ&amp;diff=5779"/>
		<updated>2012-02-13T16:43:07Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* What is XML? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General ==&lt;br /&gt;
&lt;br /&gt;
=== What is a global surrogate model? ===&lt;br /&gt;
&lt;br /&gt;
A global [http://en.wikipedia.org/wiki/Surrogate_model surrogate model] is a mathematical model that mimics the behavior of a computationally expensive simulation code over &#039;&#039;&#039;the complete parameter space&#039;&#039;&#039; as accurately as possible, using as little data points as possible. So note that optimization is not the primary goal, although it can be done as a post-processing step. Global surrogate models are useful for:&lt;br /&gt;
&lt;br /&gt;
* design space exploration, to get a &#039;&#039;feel&#039;&#039; of how the different parameters behave&lt;br /&gt;
* sensitivity analysis&lt;br /&gt;
* &#039;&#039;what-if&#039;&#039; analysis&lt;br /&gt;
* prototyping&lt;br /&gt;
* visualization&lt;br /&gt;
* ...&lt;br /&gt;
&lt;br /&gt;
In addition they are a cheap way to model large scale systems, multiple global surrogate models can be chained together in a model cascade.&lt;br /&gt;
&lt;br /&gt;
See also the [[About]] page.&lt;br /&gt;
&lt;br /&gt;
=== What about surrogate driven optimization? ===&lt;br /&gt;
&lt;br /&gt;
When coining the term &#039;&#039;&#039;surrogate driven optimization&#039;&#039;&#039; most people associate it with trust-region strategies and simple polynomial models. These frameworks first construct a local surrogate which is optimized to find an optimum. Afterwards, a move limit strategy decides how the local surrogate is scaled and/or moved through the input space. Subsequently the surrogate is rebuild and optimized. I.e. the surrogate zooms in to the global optimum. For instance the [http://www.cs.sandia.gov/DAKOTA/ DAKOTA] Toolbox implements such strategies where the surrogate construction is separated from optimization.&lt;br /&gt;
&lt;br /&gt;
Such a framework was earlier implemented in the SUMO Toolbox but was deprecated as it didn&#039;t fit the philosophy and design of the toolbox. &lt;br /&gt;
&lt;br /&gt;
Instead another, equally powerful, approach was taken. The current optimization framework is in fact a sampling selection strategy that balances local and global search. In other words, it balances between exploring the input space and exploiting the information the surrogate gives us.&lt;br /&gt;
&lt;br /&gt;
A configuration example can be found [[Config:SampleSelector#expectedImprovement|here]].&lt;br /&gt;
&lt;br /&gt;
=== What is (adaptive) sampling? Why is it used? ===&lt;br /&gt;
&lt;br /&gt;
In classical Design of Experiments you need to specify the design of your experiment up-front. Or in other words, you have to say up-front how many data points you need and how they should be distributed.  Two examples are Central Composite Designs and Latin Hypercube designs.  However, if your data is expensive to generate (e.g., an expensive simulation code) it is not clear how many points are needed up-front.  Instead data points are selected adaptively, only a couple at a time.  This process of incrementally selecting new data points in regions that are the most interesting is called adaptive sampling, sequential design, or active learning.  Of course the sampling process needs to start from somewhere so the very first set of points is selected based on a fixed, classic experimental design.  See also [[Running#Understanding_the_control_flow]].&lt;br /&gt;
SUMO provides a number of different sampling algorithms: [[SampleSelector]]&lt;br /&gt;
&lt;br /&gt;
Of course sometimes you dont want to do sampling.  For example if you have a fixed dataset you just want to load all the data in one go and model that.  For how to do this see [[FAQ#How_do_I_turn_off_adaptive_sampling_.28run_the_toolbox_for_a_fixed_set_of_samples.29.3F]].&lt;br /&gt;
&lt;br /&gt;
=== What about dynamical, time dependent data? ===&lt;br /&gt;
&lt;br /&gt;
The original design and purpose was to tackle static input-output systems, where there is no memory. Just a complex mapping that must be learnt and approximated. Of course you can take a fixed time interval and apply the toolbox but that typically is not a desired solution.  Usually you are interested in time series prediction, e.g., given a set of output values from time t=0 to t=k, predict what happens at time t=k+1,k+2,...&lt;br /&gt;
&lt;br /&gt;
The toolbox was originally not intended for this purpose.  However, it is quite easy to add support for recurrent models.  Automatic generation of dynamical models would involve adding a new model type (just like you would add a new regression technique) or require adapting an existing one.  For example it would not be too much work to adapt the ANN or SVM models to support dynamic problems.  The only extra work besides that would be to add a new [[Measures|Measure]] that can evaluate the fidelity of the models&#039; prediction.&lt;br /&gt;
&lt;br /&gt;
Naturally though, you would be unable to use sample selection (since it makes no sense in those problems).  Unless of course there is a specialized need for it.  In that case you would add a new [[SampleSelector]].&lt;br /&gt;
&lt;br /&gt;
For more information on this topic [[Contact]] us.&lt;br /&gt;
&lt;br /&gt;
=== What about classification problems? ===&lt;br /&gt;
&lt;br /&gt;
The main focus of the SUMO Toolbox is on regression/function approximation.  However, the framework for hyperparameter optimization, model selection, etc.  can also be used for classification.  Starting from version 6.3 a demo file is included in the distribution that shows how this works on the well known two spiral test problem.&lt;br /&gt;
&lt;br /&gt;
=== Does SUMO support discrete inputs/outputs ===&lt;br /&gt;
&lt;br /&gt;
Not, if you mean in a smart way.  There is a way to flag an input/output as discrete but it is not used anywhere.  It is on the wishlist but we have not been able to get to it yet.  Discrete inputs are just handled as if they were continuous.  Depending on how many levels there are and if there is an ordering this may work ok or not work at all.  You could of course add your own model type that can handle these :)  As for discrete outputs see [[FAQ#What_about_classification_problems.3F]].&lt;br /&gt;
&lt;br /&gt;
=== Can the toolbox drive my simulation code directly? ===&lt;br /&gt;
&lt;br /&gt;
Yes it can.  See the [[Interfacing with the toolbox]] page.&lt;br /&gt;
&lt;br /&gt;
=== What is the difference between the M3-Toolbox and the SUMO-Toolbox? ===&lt;br /&gt;
&lt;br /&gt;
The SUMO toolbox is a complete, feature-full framework for automatically generating approximation models and performing adaptive sampling. In contrast, the M3-Toolbox was more of a proof-of-principle.&lt;br /&gt;
&lt;br /&gt;
=== What happened to the M3-Toolbox? ===&lt;br /&gt;
&lt;br /&gt;
The M3 Toolbox project has been discontinued (Fall 2007) and superseded by the SUMO Toolbox. Please contact tom.dhaene@ua.ac.be for any inquiries and requests about the M3 Toolbox.&lt;br /&gt;
&lt;br /&gt;
=== How can I stay up to date with the latest news? ===&lt;br /&gt;
&lt;br /&gt;
To stay up to date with the latest news and releases, we also recommend subscribing to our newsletter [http://www.sumo.intec.ugent.be here].  Traffic will be kept to a minimum (1 message every 2-3 months) and you can unsubscribe at any time.&lt;br /&gt;
&lt;br /&gt;
You can also follow our blog: [http://sumolab.blogspot.com/ http://sumolab.blogspot.com/].&lt;br /&gt;
&lt;br /&gt;
=== What is the roadmap for the future? ===&lt;br /&gt;
&lt;br /&gt;
There is no explicit roadmap since much depends on where our research leads us, what feedback we get, which problems we are working on, etc.  However, to get an idea of features to come you can always check the [[Whats new]] page.&lt;br /&gt;
&lt;br /&gt;
You can also follow our blog: [http://sumolab.blogspot.com/ http://sumolab.blogspot.com/].&lt;br /&gt;
&lt;br /&gt;
=== Will there be an R/Scilab/Octave/Sage/.. version? ===&lt;br /&gt;
&lt;br /&gt;
At the start of the project we considered moving from Matlab to one of the available open source alternatives.  However, after much discussion we decided against this for several reasons, including:&lt;br /&gt;
&lt;br /&gt;
* Existing experience and know-how of the development team&lt;br /&gt;
* The widespread use of the Matlab platform in the target application domains&lt;br /&gt;
* The quality and amount of available Matlab documentation&lt;br /&gt;
* The quality and number of Matlab toolboxes&lt;br /&gt;
* Support for object orientation (inheritance, polymorphism, etc.)&lt;br /&gt;
* Many well documented interfacing options (especially the seamless integration with Java)&lt;br /&gt;
&lt;br /&gt;
Matlab, as a proprietary platform, definitely has its problems and deficiencies but the number of advanced algorithms and available toolboxes make it a very attractive platform.  Equally important is the fact that every function is properly documented, tested, and includes examples, tutorials, and in some cases GUI tools.  A lot of things would have been a lot harder and/or time consuming to implement on one of the other platforms.  Add to that the fact that many engineers (particularly in aerospace) already use Matlab quite heavily.  Thus given our situation, goals, and resources at the time, Matlab was the best choice for us.  &lt;br /&gt;
&lt;br /&gt;
The other platforms remain on our radar however, and we do look into them from time to time.  Though, with our limited resources porting to one of those platforms is not (yet) cost effective.&lt;br /&gt;
&lt;br /&gt;
=== What are collaboration options? ===&lt;br /&gt;
&lt;br /&gt;
We will gladly help out with any SUMO-Toolbox related questions or problems. However, since we are a university research group the most interesting goal for us is to work towards some joint publication (e.g., we can help with the modeling of your problem).  Alternatively, it is always nice if we could use your data/problem (fully referenced and/or anonymized if necessary of course) as an example application during a conference presentation or in a PhD thesis.&lt;br /&gt;
&lt;br /&gt;
The most interesting case is if your problem involves sample selection and modeling.  This means you have some simulation code or script to drive and you want an accurate model while minimizing the number of data points.  In this case, in order for us to optimally help you it would be easiest if we could run your simulation code (or script) locally or access it remotely.  Else its difficult to give good recommendations about what settings to use.&lt;br /&gt;
&lt;br /&gt;
If this is not possible (e.g., expensive, proprietary or secret modeling code) or if your problem does not involve sample selection, you can send us a fixed data set that is representative of your problem. Again, this may be fully anonymized and will be kept confidential of course.&lt;br /&gt;
&lt;br /&gt;
In either case (code or dataset) remember:&lt;br /&gt;
&lt;br /&gt;
* the data file should be an ASCII file in column format (each row containing one data point) (see also [[Interfacing_with_the_toolbox]])&lt;br /&gt;
* include a short description of your data:&lt;br /&gt;
** number of inputs and number of outputs&lt;br /&gt;
** the range of each input (or scaled to [-1 1] if you do not wish to disclose this)&lt;br /&gt;
** if the outputs are real or complex valued&lt;br /&gt;
** how noisy the data is or if it is completely deterministic (computer simulation) (please also see: [[FAQ#My_data_contains_noise_can_the_SUMO-Toolbox_help_me.3F]]).&lt;br /&gt;
** if possible the expected range of each output (or scaled if you do not wish to disclose this)&lt;br /&gt;
** if possible the names of each input/output + a short description of what they mean&lt;br /&gt;
** any further insight you have about the data, expected behavior, expected importance of each input, etc.&lt;br /&gt;
&lt;br /&gt;
If you have any further questions or comments related to this please [[Contact]] us.&lt;br /&gt;
&lt;br /&gt;
=== Can you help me model my problem? ===&lt;br /&gt;
&lt;br /&gt;
Please see the previous question: [[FAQ#What_are_collaboration_options.3F]]&lt;br /&gt;
&lt;br /&gt;
== Installation and Configuration ==&lt;br /&gt;
&lt;br /&gt;
=== What is the relationship between Matlab and Java? ===&lt;br /&gt;
&lt;br /&gt;
Many people do not know this, but your Matlab installation automatically includes a Java virtual machine.  By default, Matlab seamlessly integrates with Java, allowing you to create Java objects from the command line (e.g., &#039;s = java.lang.String&#039;).  It is possible to disable java support but in order to use the SUMO Toolbox it should not be.  To check if Java is enabled you can use the &#039;usejava&#039; command.&lt;br /&gt;
&lt;br /&gt;
=== What is Java, why do I need it, do I have to install it, etc. ? ===&lt;br /&gt;
&lt;br /&gt;
The short answer is: no, dont worry about it.  The long answer is: Some of the code of the SUMO Toolbox is written in [http://en.wikipedia.org/wiki/Java_(programming_language) Java], since it makes a lot more sense in many situations and is a proper programming language instead of a scripting language like Matlab.  Since Matlab automatically includes a JVM to run Java code there is nothing you need to do or worry about (see the previous FAQ entry).  Unless its not working of course, in that case see [[FAQ#When_running_the_toolbox_you_get_something_like_.27.3F.3F.3F_Undefined_variable_.22ibbt.22_or_class_.22ibbt.sumo.config.ContextConfig.setRootDirectory.22.27]].&lt;br /&gt;
&lt;br /&gt;
=== What is XML? ===&lt;br /&gt;
&lt;br /&gt;
XML stands for eXtensible Markup Language and is related to HTML (= the stuff web pages are written in).  The first thing you have to understand is that &#039;&#039;&#039;does not do anything&#039;&#039;&#039;. Honest. Many engineers are not used to it and think it is some complicated computer programming language-stuff-thingy.  This is of course not the case (we ignore some of the fancy stuff you can do with it for now).  XML is a markup language meaning, it provides some rules how you can annotate or structure existing text.&lt;br /&gt;
&lt;br /&gt;
The way SUMO uses XML is really simple and there is not much to understand (for more information on how SUMO uses XML go this  [[Config:ToolboxConfiguration#Interpreting_the_configuration_file|page]]). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First some simple terminology.  Take the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;Foo attr=&amp;quot;bar&amp;quot;&amp;gt;bla bla bla&amp;lt;/Foo&amp;gt; &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here we have &#039;&#039;&#039;a tag&#039;&#039;&#039; called &#039;&#039;Foo&#039;&#039; containing text &#039;&#039;bla bla bla&#039;&#039;.  The tag Foo also has an &#039;&#039;&#039;attribute&#039;&#039;&#039; &#039;&#039;attr&#039;&#039; with value &#039;&#039;bar&#039;&#039;.  &#039;&amp;lt;Foo&amp;gt;&#039; is what we call the &#039;&#039;&#039;opening tag&#039;&#039;&#039;, and &#039;&amp;lt;/Foo&amp;gt;&#039; is the &#039;&#039;&#039;closing tag&#039;&#039;&#039;.  Each time you open a tag you must close it again.  How you name the tags or attributes it totally up to you, you choose :)&lt;br /&gt;
&lt;br /&gt;
Lets take a more interesting example.  Here we have used XML to represent information about a receipe for pancakes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;recipe category=&amp;quot;dessert&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;title&amp;gt;Pancakes&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;sumo@intec.ugent.be&amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;date&amp;gt;Wed, 14 Jun 95&amp;lt;/date&amp;gt;&lt;br /&gt;
  &amp;lt;description&amp;gt;&lt;br /&gt;
    Good old fashioned pancakes.&lt;br /&gt;
  &amp;lt;/description&amp;gt;&lt;br /&gt;
  &amp;lt;ingredients&amp;gt;&lt;br /&gt;
    &amp;lt;item&amp;gt;&lt;br /&gt;
        &amp;lt;amount&amp;gt;3&amp;lt;/amount&amp;gt;&lt;br /&gt;
        &amp;lt;type&amp;gt;eggs&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;/item&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;item&amp;gt;&lt;br /&gt;
         &amp;lt;amount&amp;gt;0.5 tablespoon&amp;lt;/amount&amp;gt;&lt;br /&gt;
         &amp;lt;type&amp;gt;salt&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;/item&amp;gt;&lt;br /&gt;
     ...&lt;br /&gt;
  &amp;lt;/ingredients&amp;gt;&lt;br /&gt;
  &amp;lt;preparation&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
  &amp;lt;/preparation&amp;gt;&lt;br /&gt;
 &amp;lt;/recipe&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So basically, you see that XML is just a way to structure, order, and group information.  Thats it!  So SUMO basically uses it to store and structure configuration options.  And this works well due to the nice hierarchical nature of XML.&lt;br /&gt;
&lt;br /&gt;
If you understand this there is nothing else to it in order to be able to understand the SUMO configuration files.  If you need more information see the tutorial here: [http://www.w3schools.com/XML/xml_whatis.asp http://www.w3schools.com/XML/xml_whatis.asp].  You can also have a look at the wikipedia page here: [http://en.wikipedia.org/wiki/XML http://en.wikipedia.org/wiki/XML]&lt;br /&gt;
&lt;br /&gt;
=== Why does SUMO use XML? ===&lt;br /&gt;
&lt;br /&gt;
XML is the de facto standard way of structuring information. This ranges from spreadsheet files (Microsoft Excel for example), to configuration data, to scientific data, ...  There are even whole database systems based solely on XML.  So basically, its an intuitive way to structure data and it is used everywhere.  This makes that there are a very large number of libraries and programming languages available that can parse, and handle XML easily.  That means less work for the programmer.  Then of course there is stuff like XSLT, XQuery, etc that makes life even easier.&lt;br /&gt;
So basically, it would not make sense for SUMO to use any other format :). For more information on how SUMO uses XML go this [[Config:ToolboxConfiguration#Interpreting_the_configuration_file|page]].&lt;br /&gt;
&lt;br /&gt;
=== I get an error that SUMO is not yet activated ===&lt;br /&gt;
&lt;br /&gt;
Make sure you installed the activation file that was mailed to you as is explained in the [[Installation]] instructions.  Also double check your system meets the [[System requirements]] and that [http://www.sumowiki.intec.ugent.be/index.php/FAQ#When_running_the_toolbox_you_get_something_like_.27.3F.3F.3F_Undefined_variable_.22ibbt.22_or_class_.22ibbt.sumo.config.ContextConfig.setRootDirectory.22.27|java java is enabled].  To fully verify that the activation file installation is correct ensure that the file ContextConfig.class is present in the directory &#039;&#039;&amp;lt;SUMO installation directory&amp;gt;/bin/java/ibbt/sumo/config&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Please note that more flexible research licenses are available if it is possible to [[FAQ#What_are_collaboration_options.3F|collaborate in any way]].&lt;br /&gt;
&lt;br /&gt;
== Upgrading ==&lt;br /&gt;
&lt;br /&gt;
=== How do I upgrade to a newer version? ===&lt;br /&gt;
&lt;br /&gt;
Delete your old &amp;lt;code&amp;gt;&amp;lt;SUMO-Toolbox-directory&amp;gt;&amp;lt;/code&amp;gt; completely and replace it by the new one.  Install the new activation file / extension pack as  before (see [[Installation]]), start Matlab and make sure the default run works.  To port your old configuration files to the new version: make a copy of default.xml (from the new version) and copy over your custom changes (from the old version) one by one.  This should prevent any weirdness if the XML structure has changed between releases.&lt;br /&gt;
&lt;br /&gt;
If you had a valid activation file for the previous version, just [[Contact]] us (giving your SUMOlab website username) and we will send you a new activation file.  Note that to update an activation file you must first unzip a copy of the toolbox to a new directory and install the activation file as if it was the very first time.  Upgrading of an activation file without performing a new toolbox install is (unfortunately) not (yet) supported.&lt;br /&gt;
&lt;br /&gt;
== Using ==&lt;br /&gt;
&lt;br /&gt;
=== I have no idea how to use the toolbox, what should I do? ===&lt;br /&gt;
&lt;br /&gt;
See: [[Running#Getting_started]]&lt;br /&gt;
&lt;br /&gt;
=== I want to try one of the different examples ===&lt;br /&gt;
&lt;br /&gt;
See [[Running#Running_different_examples]].&lt;br /&gt;
&lt;br /&gt;
=== I want to model my own problem ===&lt;br /&gt;
&lt;br /&gt;
See : [[Adding an example]].&lt;br /&gt;
&lt;br /&gt;
=== I want to contribute some data/patch/documentation/... ===&lt;br /&gt;
&lt;br /&gt;
See : [[Contributing]].&lt;br /&gt;
&lt;br /&gt;
=== How do I interface with the SUMO Toolbox? ===&lt;br /&gt;
&lt;br /&gt;
See : [[Interfacing with the toolbox]].&lt;br /&gt;
&lt;br /&gt;
=== What configuration options (model type, sample selection algorithm, ...) should I use for my problem? ===&lt;br /&gt;
&lt;br /&gt;
See [[General_guidelines]].&lt;br /&gt;
&lt;br /&gt;
=== Ok, I generated a model, what can I do with it? ===&lt;br /&gt;
&lt;br /&gt;
See: [[Using a model]].&lt;br /&gt;
&lt;br /&gt;
=== How can I share a model created by the SUMO Toolbox? ===&lt;br /&gt;
&lt;br /&gt;
See : [[Using a model#Model_portability| Model portability]].&lt;br /&gt;
&lt;br /&gt;
=== I dont like the final model generated by SUMO how do I improve it? ===&lt;br /&gt;
&lt;br /&gt;
Before you start the modeling you should really ask youself this question: &#039;&#039;What properties do I want to see in the final model?&#039;&#039;  You have to think about what for you constitutes a good model and what constitutes a poor model. Then you should rank those properties depending on how important you find them.  Examples are:&lt;br /&gt;
&lt;br /&gt;
* accuracy in the training data&lt;br /&gt;
** is it important that the error in the training data is exactly 0, or do you prefer some smoothing&lt;br /&gt;
* accuracy outside the training data&lt;br /&gt;
** this is the validation or test error, how important is proper generalization (usually this is very important)&lt;br /&gt;
* what does accuracy mean to you? a low maximum error, a low average error, both, ...&lt;br /&gt;
* smoothness&lt;br /&gt;
** should your model be perfectly smooth or is it acceptable that you have a few small ripples here and there for example&lt;br /&gt;
* are some regions of the response more important than others?&lt;br /&gt;
** for example you may want to be certain that the minima/maxima are captured very accurately but everything in between is less important&lt;br /&gt;
* are there particular special features that your model should have&lt;br /&gt;
** for example, capture underlying poles or discontinuities correctly&lt;br /&gt;
* extrapolation capability&lt;br /&gt;
* ...&lt;br /&gt;
&lt;br /&gt;
It is important to note that often these criteria may be conflicting.  The classical example is fitting noisy data: the lower your training error the higher your testing error.  A natural approach is to combine multiple criteria, see [[Multi-Objective Modeling]].&lt;br /&gt;
&lt;br /&gt;
Once you have decided on a set of requirements the question is then, can the SUMO-Toolbox produce a model that meets them? In SUMO model generation is driven by one or more [[Measures]].  So you should choose the combination of [[Measures]] that most closely match your requirements.  Of course we can not provide a Measure for every single property, but it is very straightforward to [[Add_Measure|add your own Measure]].&lt;br /&gt;
&lt;br /&gt;
Now, lets say you have chosen what you think are the best Measures but you are still not happy with the final model.  Reasons could be:&lt;br /&gt;
&lt;br /&gt;
* you need more modeling iterations or you need to build more models per iteration (see [[Running#Understanding_the_control_flow]]). This will result in a more extensive search of the model parameter space, but will take longer to run.&lt;br /&gt;
* you should switch to a different model parameter optimization algorithm (e.g., for example instead of the Pattern Search variant, try the Genetic Algorithm variant of your AdaptiveModelBuilder.)&lt;br /&gt;
* the model type you are using is not ideally suited to your data&lt;br /&gt;
* there simply is not enough data, use a larger initial design or perform more sampling iterations to get more information per dimension&lt;br /&gt;
* maybe the sample distribution is causing troubles for your model (e.g., Kriging can have problems with clustered data).  In that case it could be worthwhile to choose a different sample selection algorithm.&lt;br /&gt;
* the range of your response variable is not ideal (for example, neural networks have trouble modeling data if the range of the outputs is very very small)&lt;br /&gt;
&lt;br /&gt;
You may also refer to the following [[General_guidelines]].  Finally, of course it may be that your problem is simply a very difficult one and does not approximate well.  But, still you should at least get something satisfactory.&lt;br /&gt;
&lt;br /&gt;
If you are having these kinds of problems, please [[Reporting_problems|let us know]] and we will gladly help out.&lt;br /&gt;
&lt;br /&gt;
=== My data contains noise can the SUMO-Toolbox help me? ===&lt;br /&gt;
&lt;br /&gt;
The original purpose of the SUMO-Toolbox was for it to be used in conjunction with computer simulations.  Since these are fully deterministic you do not have to worry about noise in the data and all the problems it causes.  However, the methods in the toolbox are general fitting methods that work on noisy data as well.  So yes, the toolbox can be used with noisy data, but you will just have to be more careful about how you apply the methods and how you perform model selection.  Its only when you use the toolbox with a noisy simulation engine that a few special  options may need to be set.  In that case [[Contact]] us for more information.&lt;br /&gt;
&lt;br /&gt;
Note though, that the toolbox is not a statistical package, if you have noisy data and you need noise estimation algorithms, kernel smoothing algorithms, etc.  you should look towards other tools.&lt;br /&gt;
&lt;br /&gt;
=== What is the difference between a ModelBuilder and a ModelFactory? ===&lt;br /&gt;
&lt;br /&gt;
See [[Add Model Type]].&lt;br /&gt;
&lt;br /&gt;
=== Why are the Neural Networks so slow? ===&lt;br /&gt;
&lt;br /&gt;
The ANN models are an extremely powerful model type that give very good results in many problems.  However, they are quite slow to use.  There are some things you can do:&lt;br /&gt;
&lt;br /&gt;
* use trainlm or trainscg instead of the default training function trainbr.  trainbr gives very good, smooth results but is slower to use.  If results with trainlm are not good enough, try using msereg as a performance function.&lt;br /&gt;
* try setting the training goal (= the SSE to reach during training) to a small positive number (e.g., 1e-5) instead of 0.&lt;br /&gt;
* check that the output range of your problem is not very small.  If your response data lies between 10e-5 and 10e-9 for example it will be very hard for the neural net to learn it.  In that case rescale your data to a more sane range.&lt;br /&gt;
* switch from ANN to one of the other neural network modelers: fanngenetic or nanngenetic. These are a lot faster than the default backend based on the [http://www.mathworks.com/products/neuralnet/ Matlab Neural Network Toolbox].  However, the accuracy is usually not as good.&lt;br /&gt;
* If you are using [[Measures#CrossValidation| CrossValidation]] try to switch to a different measure since CrossValidation is very expensive to use. CrossValidation is used by default if you have not defined a [[Measures| measure]] yourself.  When using one of the neural network model types, try to use a different measure if you can.  For example, our tests have shown that minimizing the sum of [[Measures#SampleError| SampleError]] and [[Measures#LRMMeasure| LRMMeasure]] can give equal or even better results than CrossValidation, while being much cheaper (see [[Multi-Objective Modeling]] for how to combine multiple measures).  See also the comments in &amp;lt;code&amp;gt;default.xml&amp;lt;/code&amp;gt; for examples.&lt;br /&gt;
* Finally, as with any model type things will slow down if you have many dimensions or very large amounts of data.  If that is the case, try some dimensionality reduction or subsampling techniques.&lt;br /&gt;
&lt;br /&gt;
See also [[FAQ#How_can_I_make_the_toolbox_run_faster.3F]]&lt;br /&gt;
&lt;br /&gt;
=== How can I make the toolbox run faster? ===&lt;br /&gt;
&lt;br /&gt;
There are a number of things you can do to speed things up.  These are listed below.  Remember though that the main reason the toolbox may seem to be slow is due to the many models being built as part of the hyperparameter optimization.  Please make sure you fully understand the [[Running#Understanding_the_control_flow|control flow described here]] before trying more advanced options.&lt;br /&gt;
&lt;br /&gt;
* First of all check that your virus scanner is not interfering with Matlab. If McAfee or any other program wants to scan every file SUMO generates this really slows things down and your computer becomes unusable.&lt;br /&gt;
&lt;br /&gt;
* Turn off the plotting of models in [[Config:ContextConfig#PlotOptions| ContextConfig]], you can always generate plots from the saved mat files&lt;br /&gt;
&lt;br /&gt;
* This is an important one.  For most model builders there is an option &amp;quot;maxFunEals&amp;quot;, &amp;quot;maxIterations&amp;quot;, or equivalent.  Change this value to change the maximum number of models built between 2 sampling iterations.  The higher this number, the slower, but the better the models &#039;&#039;may&#039;&#039; be.  Equivalently, for the Genetic model builders reduce the population size and the number of generations.&lt;br /&gt;
&lt;br /&gt;
* If you are using [[Measures#CrossValidation]] see if you can avoid it and use one of the other measures or a combination of measures (see [[Multi-Objective Modeling]]&lt;br /&gt;
&lt;br /&gt;
* If you are using a very dense [[Measures#ValidationSet]] as your Measure, this means that every single model will be evaluated on that data set.  For some models like RBF, Kriging, SVM, this can slow things down.&lt;br /&gt;
&lt;br /&gt;
* Disable some, or even all of the [[Config:ContextConfig#Profiling| profilers]] or disable the output handlers that draw charts.  For example, you might use the following configuration for the profilers:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Profiling&amp;gt;&lt;br /&gt;
	&amp;lt;Profiler name=&amp;quot;.*share.*|.*ensemble.*|.*Level.*&amp;quot; enabled=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;Output type=&amp;quot;toImage&amp;quot;/&amp;gt;&lt;br /&gt;
		&amp;lt;Output type=&amp;quot;toFile&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;/Profiler&amp;gt;&lt;br /&gt;
			&lt;br /&gt;
	&amp;lt;Profiler name=&amp;quot;.*&amp;quot; enabled=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;Output type=&amp;quot;toFile&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;/Profiler&amp;gt;&lt;br /&gt;
&amp;lt;/Profiling&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;.*&amp;quot; means match any one or more characters ([http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html see here for the full list of supported wildcards]).  Thus in this example all the profilers that have &amp;quot;share&amp;quot;, &amp;quot;ensemble&amp;quot;, or &amp;quot;Level&amp;quot; in their name shoud be enabled and should be saved as a text file (toFile) AND as an image file (toImage).  All the other profilers should be saved just to file. The idea is to only save to image what you want as an image since image generation is expensive.  If you do this or switch off image generation completely you will see everything run much faster.&lt;br /&gt;
&lt;br /&gt;
* Decrease the logging granularity, a log level of FINE (the default is FINEST or ALL) is more then granular enough.  Setting it to FINE, INFO, or even WARNING should speed things up.&lt;br /&gt;
&lt;br /&gt;
* If you have a multi-core/multi-cpu machine:&lt;br /&gt;
** if you have the Matlab Parallel Computing Toolbox, try setting the parallelMode option to true in [[Config:ContextConfig]].  Now all model training occurs in parallel.  This may give unexpected errors in some cases so beware when using.&lt;br /&gt;
** if you are using a native executable or script as the sample evaluator set the threadCount variable in [[Config:SampleEvaluator#LocalSampleEvaluator| LocalSampleEvaluator]] equal to the number of cores/CPUs (only do this if it is ok to start multiple instances of your simulation script in parallel!)&lt;br /&gt;
&lt;br /&gt;
* Dont use the Min-Max measure, it can slow things down. See also [[FAQ#How_do_I_force_the_output_of_the_model_to_lie_in_a_certain_range]]&lt;br /&gt;
&lt;br /&gt;
* If you are using neural networks see [[FAQ#Why_are_the_Neural_Networks_so_slow.3F]]&lt;br /&gt;
&lt;br /&gt;
* If you are having problems with very slow or seemingly hanging runs:&lt;br /&gt;
** Do a run inside the [http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/matlab_env/f9-17018.html&amp;amp;http://www.google.be/search?client=firefox-a&amp;amp;rls=org.mozilla%3Aen-US%3Aofficial&amp;amp;channel=s&amp;amp;hl=nl&amp;amp;q=matlab+profiler&amp;amp;meta=&amp;amp;btnG=Google+zoeken Matlab profiler] and see where most time is spent.&lt;br /&gt;
&lt;br /&gt;
** Monitor CPU and physical/virtual memory usage while the SUMO toolbox is running and see if you notice anything strange.  &lt;br /&gt;
&lt;br /&gt;
* Also note that by default Matlab only allocates about 117 MB memory space for the Java Virtual Machine. If you would like to increase this limit (which you should) please follow the instructions [http://www.mathworks.com/support/solutions/data/1-18I2C.html?solution=1-18I2C here]. See also the general memory instructions [http://www.mathworks.com/support/tech-notes/1100/1106.html here].&lt;br /&gt;
&lt;br /&gt;
To check if your SUMO run has hanged, monitor your log file (with the level set at least to FINE).  If you see no changes for about 30 minutes the toolbox will probably have stalled.  [[Reporting problems| report the problems here]].&lt;br /&gt;
&lt;br /&gt;
Such problems are hard to identify and fix so it is best to work towards a reproducible test case if you think you found a performance or scalability issue.&lt;br /&gt;
&lt;br /&gt;
=== How do I build models with more than one output ===&lt;br /&gt;
&lt;br /&gt;
Sometimes you have multiple responses that you want to model at once.  See [[Running#Models_with_multiple_outputs]]&lt;br /&gt;
&lt;br /&gt;
=== How do I turn off adaptive sampling (run the toolbox for a fixed set of samples)? ===&lt;br /&gt;
&lt;br /&gt;
See : [[Adaptive Modeling Mode]].&lt;br /&gt;
&lt;br /&gt;
=== How do I change the error function (relative error, RMSE, ...)? ===&lt;br /&gt;
&lt;br /&gt;
The [[Measures| &amp;lt;Measure&amp;gt;]] tag specifies the algorithm to use to assign models a score, e.g., [[Measures#CrossValidation| CrossValidation]].  It is also possible to specify which &#039;&#039;&#039;error function&#039;&#039;&#039; to  use, in the measure.  The default error function is &#039;&amp;lt;code&amp;gt;rootRelativeSquareError&amp;lt;/code&amp;gt;&#039;.&lt;br /&gt;
&lt;br /&gt;
Say you want to use [[Measures#CrossValidation| CrossValidation]] with the maximum absolute error, then you would put:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Measure type=&amp;quot;CrossValidation&amp;quot; target=&amp;quot;0.001&amp;quot; errorFcn=&amp;quot;maxAbsoluteError&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On the other hand, if you wanted to use the [[Measures#ValidationSet| ValidationSet]] measure with a relative root-mean-square error you would put:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Measure type=&amp;quot;ValidationSet&amp;quot; target=&amp;quot;0.001&amp;quot; errorFcn=&amp;quot;relativeRms&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default error function is &#039;&amp;lt;code&amp;gt;rootRelativeSquareError&amp;lt;/code&amp;gt;&#039;.  These error functions can be found in the &amp;lt;code&amp;gt;src/matlab/tools/errorFunctions&amp;lt;/code&amp;gt; directory.  You are free to modify them and add your own.  Remember that the choice of error function is very important! Make sure you think well about it.  Also see [[Multi-Objective Modeling]].&lt;br /&gt;
&lt;br /&gt;
=== How do I enable more profilers? ===&lt;br /&gt;
&lt;br /&gt;
Go to the [[Config:ContextConfig#Profiling| &amp;lt;Profiling&amp;gt;]] tag and put &amp;lt;code&amp;gt;&amp;quot;&amp;lt;nowiki&amp;gt;.*&amp;lt;/nowiki&amp;gt;&amp;quot;&amp;lt;/code&amp;gt; as the regular expression.  See also the next question.&lt;br /&gt;
&lt;br /&gt;
=== What regular expressions can I use to filter profilers? ===&lt;br /&gt;
&lt;br /&gt;
See the syntax [http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html here].&lt;br /&gt;
&lt;br /&gt;
=== How can I ensure deterministic results? ===&lt;br /&gt;
&lt;br /&gt;
See : [[Random state]].&lt;br /&gt;
&lt;br /&gt;
=== How do I get a simple closed-form model (symbolic expression)? ===&lt;br /&gt;
&lt;br /&gt;
See : [[Using a model]].&lt;br /&gt;
&lt;br /&gt;
=== How do I enable the Heterogenous evolution to automatically select the best model type? ===&lt;br /&gt;
&lt;br /&gt;
Simply use the [[Config:AdaptiveModelBuilder#heterogenetic| heterogenetic modelbuilder]] as you would any other.&lt;br /&gt;
&lt;br /&gt;
=== What is the combineOutputs option? ===&lt;br /&gt;
&lt;br /&gt;
See [[Running#Models_with_multiple_outputs]]&lt;br /&gt;
&lt;br /&gt;
=== What error function should I use? ===&lt;br /&gt;
&lt;br /&gt;
The default error function is the Root Relative Square Error (RRSE).  On the other hand meanRelativeError may be more intuitive but in that case you have to be careful if you have function values close to zero since in that case the relative error explodes or even gives infinity.  You could also use one of the combined relative error functions (contain a +1 in the denominator to account for small values) but then you get something between a relative and absolute error (=&amp;gt; hard to interpret).&lt;br /&gt;
&lt;br /&gt;
So to be sure an absolute error seems the safest bet (like the RMSE), however in that case you have to come up with sensible accuracy targets and realize that you will build models that try to fit the regions of high absolute value better than the low ones.&lt;br /&gt;
&lt;br /&gt;
Picking an error function is a very tricky business and many people do not realize this.  Which one is best for you and what targets you use ultimately depends on your application and on what kind of model you want.  There is no general answer.&lt;br /&gt;
&lt;br /&gt;
A recommended read is [http://www.springerlink.com/content/24104526223221u3/ is this paper].  See also the page on [[Multi-Objective Modeling]].&lt;br /&gt;
&lt;br /&gt;
=== I just want to generate an initial design (no sampling, no modeling) ===&lt;br /&gt;
&lt;br /&gt;
Do a regular SUMO run, except set the &#039;maxModelingIterations&#039; in the SUMO tag to 0.  The resulting run will only generate (and evaluate) the initial design and save it to samples.txt in the output directory.&lt;br /&gt;
&lt;br /&gt;
=== How do I start a run with the samples of of a previous run, or with a custom initial design? ===&lt;br /&gt;
&lt;br /&gt;
Use a Dataset design component, for example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;InitialDesign type=&amp;quot;DatasetDesign&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Option key=&amp;quot;file&amp;quot; value=&amp;quot;/path/to/the/file/containing/the/points.txt&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;/InitialDesign&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The points of a previous run can be found in the samples.txt file in the output directory of the run you want to continue.&lt;br /&gt;
&lt;br /&gt;
As a sidenote, remark you can start the toolbox with *data points* of a previous run, but not with the *models* of a previous run.&lt;br /&gt;
&lt;br /&gt;
=== What is a level plot? ===&lt;br /&gt;
&lt;br /&gt;
A level plot is a plot that shows how the error histogram changes as the best model improves. An example is:&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Image:levelplot.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Level plots only work if you have a separate dataset (test set) that the model can be checked against.  See the comments in default.xml for how to enable level plots.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== How do I force the output of the model to lie in a certain range ===&lt;br /&gt;
&lt;br /&gt;
See [[Measures#MinMax]].&lt;br /&gt;
&lt;br /&gt;
=== My problem is high dimensional and has a lot of input parameters (more than 10).  Can I use SUMO? ===&lt;br /&gt;
&lt;br /&gt;
That depends.  Remember that the main focus of SUMO is to generate accurate &#039;global&#039; models. If you want to do sampling the practical dimensionality is limited to around 6-8 (though it depends on the problem and how cheap the simulations are!).  Since the more dimensions the more space you need to fill.  At that point you need to see if you can extend the models with domain specific knowledge (to improve performance) or apply a dimensionality reduction method ([[FAQ#Can_the_toolbox_tell_me_which_are_the_most_important_inputs_.28.3D_variable_selection.29.3F|see the next question]]).  On the other hand, if you don&#039;t need to do sample selection but you have a fixed dataset which you want to model.  Then the performance on high dimensional data just depends on the model type.  For examples SVM type models are independent of the dimension and thus can always be applied.  Though things like feature selection are always recommended.&lt;br /&gt;
&lt;br /&gt;
=== Can the toolbox tell me which are the most important inputs (= variable selection)? ===&lt;br /&gt;
&lt;br /&gt;
When tackling high dimensional problems a crucial question is &amp;quot;Are all my input parameters relevant?&amp;quot;.  Normally domain knowledge would answer this question but this is not always straightforward. In those cases a whole set of algorithms exist for doing dimensionality reduction (= feature selection).  Support for some of these algorithms may eventually make it into the toolbox but are not currently implemented.  That is a whole PhD thesis on its own.  However, if a model type provides functions for input relevance determination the toolbox can leverage this.  For example, the LS-SVM model available in the toolbox supports Automatic Relevance Determination (ARD).  This means that if you use the SUMO Toolbox to generate an LS-SVM model, you can call the function &#039;&#039;ARD()&#039;&#039; on the model and it will give you a list of the inputs it thinks are most important.&lt;br /&gt;
&lt;br /&gt;
=== Should I use a Matlab script or a shell script for interfacing with my simulation code? ===&lt;br /&gt;
&lt;br /&gt;
When you want to link SUMO with an external simulation engine (ADS Momentum, SPECTRE, FEBIO, SWAT, ...) you need a [http://en.wikipedia.org/wiki/Shell_script shell script] (or executable) that can take the requested points from SUMO, setup the simulation engine (e.g., set necessary input files), calls the simulator for all the requested points, reads the output (e.g., one or more output files), and returns the results to SUMO (see [[Interfacing with the toolbox]]).&lt;br /&gt;
&lt;br /&gt;
Which one you choose (matlab script + [[Config:SampleEvaluator#matlab|Matlab Sample Evaluator]], or shell script/executable with [[Config:SampleEvaluator#local|Local Sample Evaluator]] is basically a matter of preference, take whatever is easiest for you.&lt;br /&gt;
&lt;br /&gt;
HOWEVER, there is one important consideration: Matlab does not support threads so this means that if you use a matlab script to interface with the simulation engine, simulations and modeling will happen sequentially, NOT in parallel.  This means the modeling code will sit around waiting, doing nothing, until the simulation(s) have finished.  If your simulation code takes a long time to run this is not very efficient.&lt;br /&gt;
&lt;br /&gt;
On the other hand, using a shell script/executable, does allow the modeling and simulation to occur in parallel (at least if you wrote your interface script in such a way that it can be run multiple times in parallel, i.e., no shared global directories or variables that can cause [http://en.wikipedia.org/wiki/Race_condition race conditions]).&lt;br /&gt;
&lt;br /&gt;
As a sidenote, note that if you already put work into a Matlab script, it is still possible to use a shell script, by writing a shell script that starts Matlab (using -nodisplay or -nojvm options), executes your script (using the -r option), and exits Matlab again.  Of course it is not very elegant and adds some overhead but depending on your situation it may be worth it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== How can I look at the internal structure of a SUMO model ===&lt;br /&gt;
&lt;br /&gt;
See [[Using_a_model#Available_methods]].&lt;br /&gt;
&lt;br /&gt;
=== Is there any design documentation available? ===&lt;br /&gt;
&lt;br /&gt;
An in depth overview of the rationale and philosophy, including a treatment of the software architecture underlying the SUMO Toolbox is available in the form of a PhD dissertation.  A copy of this dissertation [http://www.sumo.intec.ugent.be/?q=system/files/2010_04_PhD_DirkGorissen.pdf is available here].&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
=== I have a problem and I want to report it ===&lt;br /&gt;
&lt;br /&gt;
See : [[Reporting problems]].&lt;br /&gt;
&lt;br /&gt;
===I am getting a java out of memory error, what happened?===&lt;br /&gt;
Datasets are loaded through java. This means that the java heap space is used for storing the data. If you try to load a huge dataset (&amp;gt; 50MB), you might experience problems with the maximum heap size. You can solve this by raising the heap size as described on the following webpage:&lt;br /&gt;
[http://www.mathworks.com/support/solutions/data/1-18I2C.html]&lt;br /&gt;
&lt;br /&gt;
=== I sometimes get flat models when using rational functions ===&lt;br /&gt;
&lt;br /&gt;
First make sure the model is indeed flat, and does not just appear so on the plot. You can verify this by looking at the output axis range and making sure it is within reasonable bounds. When there are poles in the model, the axis range is sometimes stretched to make it possible to plot the high values around the pole, causing the rest of the model to appear flat. If the model contains poles, refer to the next question for the solution.&lt;br /&gt;
&lt;br /&gt;
The [[Config:AdaptiveModelBuilder#rational| RationalModel]] tries to do a least squares fit, based on which monomials are allowed in numerator and denominator. We have experienced that some models just find a flat model as the best least squares fit. There are two causes for this:&lt;br /&gt;
&lt;br /&gt;
* The number of sample points is few, and the model parameters (as explained [[Model types explained#PolynomialModel|here]]) force the model to use only a very small set of degrees of freedom.  The solution in this case is to increase the minimum percentage bound in the RationalFactory section of your configuration file: change the &amp;lt;code&amp;gt;&amp;quot;percentBounds&amp;quot;&amp;lt;/code&amp;gt; option to &amp;lt;code&amp;gt;&amp;quot;60,100&amp;quot;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;quot;80,100&amp;quot;&amp;lt;/code&amp;gt;,  or even &amp;lt;code&amp;gt;&amp;quot;100,100&amp;quot;&amp;lt;/code&amp;gt;.  A setting of &amp;lt;code&amp;gt;&amp;quot;100,100&amp;quot;&amp;lt;/code&amp;gt; will force the polynomial models to always exactly interpolate.  However, note that this does not scale very well with the number of samples (to counter this you can set &amp;lt;code&amp;gt;&amp;quot;maxDegrees&amp;quot;&amp;lt;/code&amp;gt;). If, after increasing the &amp;lt;code&amp;gt;&amp;quot;percentBounds&amp;quot;&amp;lt;/code&amp;gt; you still get weird, spiky, models you simply need more samples or you should switch to a different model type.&lt;br /&gt;
* Another possibility is that given a set of monomial degrees, the flat function is just the best possible least squares fit. In that case you simply need to wait for more samples.&lt;br /&gt;
* The measure you are using is not accurately estimating the true error, try a different measure or error function.  Note that a maximum relative error is dangerous to use since a the 0-function (= a flat model) has a lower maximum relative error than a function which overshoots the true behavior in some places but is otherwise correct.&lt;br /&gt;
&lt;br /&gt;
=== When using rational functions I sometimes get &#039;spikes&#039; (poles) in my model ===&lt;br /&gt;
&lt;br /&gt;
When the denominator polynomial of a rational model has zeros inside the domain, the model will tend to infinity near these points. In most cases these models will only be recognized as being `the best&#039; for a short period of time. As more samples get selected these models get replaced by better ones and the spikes should disappear.&lt;br /&gt;
&lt;br /&gt;
So, it is possible that a rational model with &#039;spikes&#039; (caused by poles inside the domain) will be selected as best model. This may or may not be an issue, depending on what you want to use the model for. If it doesn&#039;t matter that the model is very inaccurate at one particular, small spot (near the pole), you can use the model with the pole and it should perform properly.&lt;br /&gt;
&lt;br /&gt;
However, if the model should have a reasonable error on the entire domain, several methods are available to reduce the chance of getting poles or remove the possibility altogether. The possible solutions are:&lt;br /&gt;
&lt;br /&gt;
* Simply wait for more data, usually spikes disappear (but not always).&lt;br /&gt;
* Lower the maximum of the &amp;lt;code&amp;gt;&amp;quot;percentBounds&amp;quot;&amp;lt;/code&amp;gt; option in the RationalFactory section of your configuration file.  For example, say you have 500 data points and if the maximum of the &amp;lt;code&amp;gt;&amp;quot;percentBounds&amp;quot;&amp;lt;/code&amp;gt; option is set to 100 percent it means the degrees of the polynomials in the rational function can go up to 500.  If you set the maximum of the &amp;lt;code&amp;gt;&amp;quot;percentBounds&amp;quot;&amp;lt;/code&amp;gt; option to 10, on the other hand, the maximum degree is set at 50 (= 10 percent of 500).  You can also use the &amp;lt;code&amp;gt;&amp;quot;maxDegrees&amp;quot;&amp;lt;/code&amp;gt; option to set an absolute bound.&lt;br /&gt;
* If you roughly know the output range your data should have, an easy way to eliminate poles is to use the [[Measures#MinMax| MinMax]] [[Measures| Measure]] together with your current measure ([[Measures#CrossValidation| CrossValidation]] by default).  This will cause models whose response falls outside the min-max bounds to be penalized extra, thus spikes should disappear.&lt;br /&gt;
* Use a different model type (RBF, ANN, SVM,...), as spikes are a typical problem of rational functions.&lt;br /&gt;
* Increase the population size if using the genetic version&lt;br /&gt;
* Try using the [[SampleSelector#RationalPoleSuppressionSampleSelector| RationalPoleSuppressionSampleSelector]], it was designed to get rid of this problem more quickly, but it only selects one sample at the time.&lt;br /&gt;
&lt;br /&gt;
However, these solutions may not still not suffice in some cases.  The underlying reason is that the order selection algorithm contains quite a lot of randomness, making it prone to over-fitting.  This issue is being worked on but will take some time.  Automatic order selection is not an easy problem&lt;br /&gt;
&lt;br /&gt;
=== There is no noise in my data yet the rational functions don&#039;t interpolate ===&lt;br /&gt;
&lt;br /&gt;
[[FAQ#I sometimes get flat models when using rational functions |see this question]].&lt;br /&gt;
&lt;br /&gt;
=== When loading a model from disk I get &amp;quot;Warning: Class &#039;:all:&#039; is an unknown object class.  Object &#039;model&#039; of this class has been converted to a structure.&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
You are trying to load a model file without the SUMO Toolbox in your Matlab path.  Make sure the toolbox is in your Matlab path. &lt;br /&gt;
&lt;br /&gt;
In short: Start Matlab, run &amp;lt;code&amp;gt;&amp;lt;SUMO-Toolbox-directory&amp;gt;/startup.m&amp;lt;/code&amp;gt; (to ensure the toolbox is in your path) and then try to load your model.&lt;br /&gt;
&lt;br /&gt;
=== When running the SUMO Toolbox you get an error like &amp;quot;No component with id &#039;annpso&#039; of type &#039;adaptive model builder&#039; found in config file.&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
This means you have specified to use a component with a certain id (in this case an AdaptiveModelBuilder component with id &#039;annpso&#039;) but a component with that id does not exist further down in the configuration file (in this particular case &#039;annpso&#039; does not exist but &#039;anngenetic&#039; or &#039;ann&#039; does, as a quick search through the configuration file will show).  So make sure you only declare components which have a definition lower down.  So see which components are available, simply scroll down the configuration file and see which id&#039;s are specified.  Please also refer to the [[Toolbox configuration#Declarations and Definitions | Declarations and Definitions]] page.&lt;br /&gt;
&lt;br /&gt;
=== When using NANN models I sometimes get &amp;quot;Runtime error in matrix library, Choldc failed. Matrix not positive definite&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
This is a problem in the mex implementation of the [http://www.iau.dtu.dk/research/control/nnsysid.html NNSYSID] toolbox.  Simply delete the mex files, the Matlab implementation will be used and this will not cause any problems.&lt;br /&gt;
&lt;br /&gt;
=== When using FANN models I sometimes get &amp;quot;Invalid MEX-file createFann.mexa64, libfann.so.2: cannot open shared object file: No such file or directory.&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
This means Matlab cannot find the [http://leenissen.dk/fann/ FANN] library itself to link to dynamically.  Make sure the FANN libraries (stored in src/matlab/contrib/fann/src/.libs/) are in your library path, e.g., on unix systems, make sure they are included in LD_LIBRARY_PATH.&lt;br /&gt;
&lt;br /&gt;
=== Undeﬁned function or method ’createFann’ for input arguments of type ’double’. ===&lt;br /&gt;
&lt;br /&gt;
See [[FAQ#When_using_FANN_models_I_sometimes_get_.22Invalid_MEX-file_createFann.mexa64.2C_libfann.so.2:_cannot_open_shared_object_file:_No_such_file_or_directory..22]]&lt;br /&gt;
&lt;br /&gt;
=== When trying to use SVM models I get &#039;Error during fitness evaluation: Error using ==&amp;gt; svmtrain at 170, Group must be a vector&#039; ===&lt;br /&gt;
&lt;br /&gt;
You forgot to build the SVM mex files for your platform.  For windows they are pre-compiled for you, on other systems you have to compile them yourself with the makefile.&lt;br /&gt;
&lt;br /&gt;
=== When running the toolbox you get something like &#039;??? Undefined variable &amp;quot;ibbt&amp;quot; or class &amp;quot;ibbt.sumo.config.ContextConfig.setRootDirectory&amp;quot;&#039; ===&lt;br /&gt;
&lt;br /&gt;
First see [[FAQ#What_is_the_relationship_between_Matlab_and_Java.3F | this FAQ entry]].&lt;br /&gt;
&lt;br /&gt;
This means Matlab cannot find the needed Java classes.  This typically means that you forgot to run &#039;startup&#039; (to set the path correctly) before running the toolbox (using &#039;go&#039;).  So make sure you always run &#039;startup&#039; before running &#039;go&#039; and that both commands are always executed in the toolbox root directory.&lt;br /&gt;
&lt;br /&gt;
If you did run &#039;startup&#039; correctly and you are still getting an error, check that Java is properly enabled:&lt;br /&gt;
&lt;br /&gt;
# typing &#039;usejava jvm&#039; should return 1 &lt;br /&gt;
# typing &#039;s = java.lang.String&#039;, this should &#039;&#039;not&#039;&#039; give an error&lt;br /&gt;
# typing &#039;version(&#039;-java&#039;)&#039; should return at least version 1.5.0&lt;br /&gt;
&lt;br /&gt;
If (1) returns 0, then the jvm of your Matlab installation is not enabled.  Check your Matlab installation or startup parameters (did you start Matlab with -nojvm?)&lt;br /&gt;
If (2) fails but (1) is ok, there is a very weird problem, check the Matlab documentation.&lt;br /&gt;
If (3) returns a version before 1.5.0 you will have to upgrade Matlab to a newer version or force Matlab to use a custom, newer, jvm (See the Matlab docs for how to do this).&lt;br /&gt;
&lt;br /&gt;
=== You get errors related to &#039;&#039;gaoptimset&#039;&#039;,&#039;&#039;psoptimset&#039;&#039;,&#039;&#039;saoptimset&#039;&#039;,&#039;&#039;newff&#039;&#039; not being found or unknown ===&lt;br /&gt;
&lt;br /&gt;
You are trying to use a component of the SUMO toolbox that requires a Matlab toolbox that you do not have.  See the [[System requirements]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== After upgrading I get all kinds of weird errors or warnings when I run my XML files ===&lt;br /&gt;
&lt;br /&gt;
See [[FAQ#How_do_I_upgrade_to_a_newer_version.3F]]&lt;br /&gt;
&lt;br /&gt;
=== I get a warning about duplicate samples being selected, why is this? ===&lt;br /&gt;
&lt;br /&gt;
Sometimes, in special circumstances, multiple sample selectors may select the same sample at the same time. Even though in most cases this is detected and avoided, it can still happen when multiple outputs are modelled in one run, and each output is sampled by a different sample selector. These sample selectors may then accidentally choose the same new sample location.&lt;br /&gt;
&lt;br /&gt;
=== I sometimes see the error of the best model go up, shouldn&#039;t it decrease monotonically? ===&lt;br /&gt;
&lt;br /&gt;
There is no short answer here, it depends on the situation.  Below &#039;single objective&#039; refers to the case where during the hyperparameter optimization (= the modeling iteration) combineOutputs=false, and there is only a single measure set to &#039;on&#039;.  The other cases are classified as &#039;multi objective&#039;.  See also [[Multi-Objective Modeling]].&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Sampling off&#039;&#039;&#039;&lt;br /&gt;
## &#039;&#039;Single objective&#039;&#039;: the error should always decrease monotonically, you should never see it rise. If it does [[reporting problems|report it as a bug]]&lt;br /&gt;
## &#039;&#039;Multi objective&#039;&#039;: There is a very small chance the error can temporarily decrease but it should be safe to ignore.  In this case it is best to use a multi objective enabled modeling algorithm&lt;br /&gt;
# &#039;&#039;&#039;Sampling on&#039;&#039;&#039;&lt;br /&gt;
## &#039;&#039;Single objective&#039;&#039;: inside each modeling iteration the error should always monotonically decrease.  At each sampling iteration the best models are updated (to reflect the new data), thus there the best model score may increase, this is normal behavior(*).  It is possible that the error increases for a short while, but as more samples come in it should decrease again.  If this does not happen you are using a poor measure or poor hyperparameter optimization algorithm, or there is a problem with the modeling technique itself (e.g., clustering in the datapoints is causing numerical problems).&lt;br /&gt;
## &#039;&#039;Multi objective&#039;&#039;: Combination of 1.2 and 2.1.&lt;br /&gt;
&lt;br /&gt;
(*) This is normal if you are using a measure like cross validation that is less reliable on little data than on more data.  However, in some cases you may wish to override this behavior if you are using a measure that is independent of the number of samples the model is trained with (e.g., a dense, external validation set).  In this case you can force a monotonic decrease by setting the &#039;keepOldModels&#039; option in the SUMO tag to true.  Use with caution!&lt;br /&gt;
&lt;br /&gt;
=== At the end of a run I get Undefined variable &amp;quot;ibbt&amp;quot; or class &amp;quot;ibbt.sumo.util.JpegImagesToMovie.createMovie&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
This is normal, the warning printed out before the error explains why:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;[WARNING] jmf.jar not found in the java classpath, movie creation may not work! Did you install the SUMO extension pack? Alternatively you can install the java media framwork from java.sun.com&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
By default, at the end of a run, the toolbox will try to generate a movie of all the intermediate model plots.  To do this it requires the extension pack to be installed (you can download it from the SUMO lab website).  So install the extension pack and you will no longer get the error.  Alternatively you can simply set the &amp;quot;createMovie&amp;quot; option in the &amp;lt;SUMO&amp;gt; tag to &amp;quot;false&amp;quot;.&lt;br /&gt;
So note that there is nothing to worry about, everything has run correctly, it is just the movie creation that is failing.&lt;br /&gt;
&lt;br /&gt;
=== On startup I get the error &amp;quot;java.io.IOException: Couldn&#039;t get lock for output/SUMO-Toolbox.%g.%u.log&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
This error means that SUMO is unable to create the log file.  Check the output directory exists and has the correct permissions.  If  your output directory is on a shared (network) drive this could also cause problems.  Also make sure you are running the toolbox (calling &#039;go&#039;) from the toolbox root directory, and not in some toolbox sub directory! This is very important.&lt;br /&gt;
&lt;br /&gt;
If you still have problems you can override the default logfile name and location as follows:&lt;br /&gt;
&lt;br /&gt;
In the &amp;lt;FileHandler&amp;gt; tag inside the &amp;lt;Logging&amp;gt; tag add the following option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
&amp;lt;Option key=&amp;quot;Pattern&amp;quot; value=&amp;quot;My_SUMO_Log_file.log&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This means that from now on the sumo log file will be saved as the file &amp;quot;My_SUMO_Log_file.log&amp;quot; in the SUMO root directory.  You can use any path you like.&lt;br /&gt;
For more information about this option see [http://java.sun.com/j2se/1.4.2/docs/api/java/util/logging/FileHandler.html the FileHandler Javadoc].&lt;br /&gt;
&lt;br /&gt;
=== The Toolbox crashes with &amp;quot;Too many open files&amp;quot; what should I do? ===&lt;br /&gt;
&lt;br /&gt;
This is a known bug, see [[Known_bugs#Version_6.1]].&lt;br /&gt;
&lt;br /&gt;
If this does not fix your problem then do the following:&lt;br /&gt;
&lt;br /&gt;
On Windows try increasing the limit in windows as dictated by the error message.  Also, when you get the error, use the fopen(&amp;quot;all&amp;quot;) command to see which files are open and send us the list of filenames.  Then we can maybe further help you debug the problem.  Even better would be to use the Process Explorer utility [http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx available here]. When you get the error, dont shut down Matlab but start Process explorer and see which SUMO-Toolbox related files are open.  If you then [[Reporting_problems|let us know]] we can further debug the problem.&lt;br /&gt;
&lt;br /&gt;
On Linux again don&#039;t shut down Matlab but:&lt;br /&gt;
&lt;br /&gt;
* open a new terminal window&lt;br /&gt;
* type:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
lsof &amp;gt; openFiles.txt&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
* Then [[Contact|send us]] the following information:&lt;br /&gt;
** the file openFiles.txt &lt;br /&gt;
** the exact Linux distribution you are using (Red Hat 10, CentOS 5, SUSE 11, etc).&lt;br /&gt;
** the output of&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
uname -a ; df -T ; mount&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As a temporary workaround you can try increasing the maximum number of open files ([http://www.linuxforums.org/forum/redhat-fedora-linux-help/64716-where-chnage-file-max-permanently.html see for example here]).  We are currently debugging this issue.&lt;br /&gt;
&lt;br /&gt;
In general: to be safe it is always best to do a SUMO run from a clean Matlab startup, especially if the run is important or may take a long time.&lt;br /&gt;
&lt;br /&gt;
=== When using the LS-SVM models I get lots of warnings: &amp;quot;make sure lssvmFILE.x (lssvmFILE.exe) is in the current directory, change now to MATLAB implementation...&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
The LS-SVMs have a C implementation and a Matlab implementation.  If you dont have the compiled mex files it will use the matlab implementation and give a warning.  But everything will work properly.  To get rid of the warnings, compile the mex files [[Installation#Windows|as described here]], this can be done very easily.  Or simply comment out the lines that produce the output in the lssvmlab directory in src/matlab/contrib.&lt;br /&gt;
&lt;br /&gt;
=== I get an error &amp;quot;Undefined function or method &#039;trainlssvm&#039; for input arguments of type &#039;cell&#039;&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
You most likely forgot to [[Installation#Extension_pack|install the extension pack]].&lt;br /&gt;
&lt;br /&gt;
=== When running the SUMO-Toolbox under Linux, the [http://en.wikipedia.org/wiki/X_Window_System X server] suddenly restarts and I am logged out of my session ===&lt;br /&gt;
&lt;br /&gt;
Note that in Linux there is an explicit difference between the [http://en.wikipedia.org/wiki/Linux_kernel kernel] and the [http://en.wikipedia.org/wiki/X_Window_System X display server].  If the kernel crashes or panics your system completely freezes (you have to reset manually) or your computer does a full reboot.  Luckily this is very rare.  However, if you display server (X) crashes or restarts it means your operating system is still running fine, its just that you have to log in again since your graphical session has terminated.  The FAQ entry is only for the latter.  If you find your kernel is panicing or freezing, that is a more fundamental problem and you should contact your system admin.&lt;br /&gt;
&lt;br /&gt;
So what happens is that after a few seconds when the toolbox wants to plot the first model [http://en.wikipedia.org/wiki/X_Window_System X] crashes and you are suddenly presented with a login screen.  The problem is not due to SUMO but rather to the Matlab - Display server interaction.&lt;br /&gt;
&lt;br /&gt;
What you should first do is set plotModels to false in the [[Config:ContextConfig]] tag, run again and see if the problem occurs again.  If it does please [[Reporting_problems| report it]].  If the problem does not occur you can then try the following:&lt;br /&gt;
&lt;br /&gt;
* Log in as root (or use [http://en.wikipedia.org/wiki/Sudo sudo])&lt;br /&gt;
* Edit the following configuration file using a text editor (pico, nano, vi, kwrite, gedit,...)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
/etc/X11/xorg.conf&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: the exact location of the xorg.conf file may vary on your system.&lt;br /&gt;
&lt;br /&gt;
* Look for the following line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
  Load         &amp;quot;glx&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Comment it out by replacing it by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#  Load         &amp;quot;glx&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Then save the file, restart your X server (if you do not know how to do this simply reboot your computer)&lt;br /&gt;
* Log in again, and try running the toolbox (making sure plotModels is set to true again).  It should now work.  If it still does not please [[Reporting_problems| report it]].&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
* this is just an empirical workaround, if you have a better idea please [[Contact|let us know]]&lt;br /&gt;
* if you wish to debug further yourself please check the Xorg log files and those in /var/log&lt;br /&gt;
* another possible workaround is to start matlab with the &amp;quot;-nodisplay&amp;quot; option.  That could work as well.&lt;br /&gt;
&lt;br /&gt;
=== I get the error &amp;quot;Failed to close Matlab pool cleanly, error is Too many output arguments&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
This happens if you run the toolbox on Matlab version 2008a and you have the parallel computing toolbox installed.  You can simply ignore this error message, it does not cause any problems. If you want to use SUMO with the parallel computing toolbox you will need Matlab 2008b.&lt;br /&gt;
&lt;br /&gt;
=== The toolbox seems to keep on running forever, when or how will it stop? ===&lt;br /&gt;
&lt;br /&gt;
The toolbox will keep on generating models and selecting data until one of the termination criteria has been reached. It is up to &#039;&#039;you&#039;&#039; to choose these targets carefully, so how low the toolbox runs simply depends on what targets you choose.  Please see [[Running#Understanding_the_control_flow]].&lt;br /&gt;
&lt;br /&gt;
Of course choosing a-priori targets up front is not always easy and there is no real solution for this, except thinking well about what type of model you want (see [[FAQ#I_dont_like_the_final_model_generated_by_SUMO_how_do_I_improve_it.3F]]).  In doubt you can always use a small value (or 0) and then simply quit the running toolbox using Ctrl-C when you think its been enough.&lt;br /&gt;
&lt;br /&gt;
While one could implement fancy, automatic stopping algorithms, their actual benefit is questionable.&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Installation&amp;diff=5778</id>
		<title>Installation</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Installation&amp;diff=5778"/>
		<updated>2012-02-13T09:56:01Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* Windows */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
This page will walk you through the SUMO Toolbox installation. Please refer to the [[system requirements]] first. See the [[downloading]] section on how to download the toolbox.&lt;br /&gt;
&lt;br /&gt;
== Quick start ==&lt;br /&gt;
&lt;br /&gt;
Quick and dirty instructions:&lt;br /&gt;
&lt;br /&gt;
# Log into the SUMO lab website with the account information mailed to you and download the toolbox&lt;br /&gt;
# Unzip the toolbox zip file, it will create a directory (= the toolbox installation directory)&lt;br /&gt;
&amp;lt;!-- # Unzip the activation zip file &#039;&#039;&#039;INTO the toolbox installation directory&#039;&#039;&#039; (this file was mailed to you after you registered) --&amp;gt;&lt;br /&gt;
# Start Matlab&lt;br /&gt;
# Go to the toolbox directory&lt;br /&gt;
# Run &#039;&amp;lt;code&amp;gt;startup&amp;lt;/code&amp;gt;&#039;&lt;br /&gt;
# Run &#039;&amp;lt;code&amp;gt;go&amp;lt;/code&amp;gt;&#039;&lt;br /&gt;
&lt;br /&gt;
== Basic Installation ==&lt;br /&gt;
&lt;br /&gt;
=== Toolbox ===&lt;br /&gt;
Unzip the toolbox zip file to a directory somewhere on your harddisk, the full path of the SUMO Toolbox (including installation directory) will be referred to as the toolbox installation directory (e.g., c:\software\SUMO-Toolbox-6.3).  Note that you do &#039;&#039;&#039;not&#039;&#039;&#039; have to put the toolbox in the Matlab installation directory, we actually advise against it since it can cause confusing errors.&lt;br /&gt;
&lt;br /&gt;
Once you have unzipped the toolbox zip file the directory structure looks like this:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;toolbox installation directory&amp;gt; &#039;&#039;(e.g., c:\software\SUMO-Toolbox-6.3)&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
** &amp;lt;code&amp;gt;bin/&amp;lt;/code&amp;gt;			: binaries, executable scripts, ...&lt;br /&gt;
** &amp;lt;code&amp;gt;config/&amp;lt;/code&amp;gt;			: configuration files, location of &amp;lt;code&amp;gt;default.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
** &amp;lt;code&amp;gt;config/demo&amp;lt;/code&amp;gt;		: a couple of demo configuration files that may help you&lt;br /&gt;
** &amp;lt;code&amp;gt;doc/&amp;lt;/code&amp;gt; 			: some documentation&lt;br /&gt;
** &amp;lt;code&amp;gt;doc/apidoc&amp;lt;/code&amp;gt; 		: Javadoc and other api docs&lt;br /&gt;
** &amp;lt;code&amp;gt;lib/&amp;lt;/code&amp;gt; 			: required libraries (eg: dom4j)&lt;br /&gt;
** &amp;lt;code&amp;gt;output/&amp;lt;/code&amp;gt;			: some output may be placed here (e.g., a global log file)&lt;br /&gt;
** &amp;lt;code&amp;gt;src/&amp;lt;/code&amp;gt;			: all source code&lt;br /&gt;
** &amp;lt;code&amp;gt;examples/&amp;lt;/code&amp;gt;		: project directories of different examples (you can test with these problems and use them as an example to [[Adding an example|add your own]])&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
=== Activation file ===&lt;br /&gt;
&lt;br /&gt;
Once you have received the activation file simply unzip it &#039;&#039;&#039;INTO&#039;&#039;&#039; in your toolbox installation directory.  So place the zip file in the toolbox installation directory and unzip it there, it should place all files in the correct places (see also the README file in the activation zip).  DO NOT unzip the activation file into its own directory somewhere else. Make sure you restart Matlab (if it was running) after you have done this.&lt;br /&gt;
&lt;br /&gt;
=== Extension pack ===&lt;br /&gt;
&lt;br /&gt;
There are a number of third party tools and modeling libraries that the SUMO Toolbox can use but that we cannot distribute together with the toolbox. These have been bundled in an extension pack.  Only minor patches have been made to the original code to make them work better with SUMO (e.g., remove debug output).  To install the extension pack, download the zip file, and unzip it INTO your toolbox installation directory. The files should be placed in the correct directories.  Simply re-run &#039;startup&#039; to make Matlab aware of the new files.&lt;br /&gt;
&lt;br /&gt;
If you download and/or use these files  please respect their licenses (found in doc/licenses), &#039;&#039;&#039;THIS IS YOUR RESPONSIBILITY !!!&#039;&#039;&#039;.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
=== Setup ===&lt;br /&gt;
&lt;br /&gt;
Setting up the toolbox is very easy.  Start Matlab, navigate to the toolbox installation directory (not anywhere else, this is important!!) and run &#039;&amp;lt;code&amp;gt;startup&amp;lt;/code&amp;gt;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Test run ===&lt;br /&gt;
&lt;br /&gt;
To ensure everything is working you can do a simple run of the toolbox with the default configuration. This means the toolbox will use the setting specified in &amp;lt;code&amp;gt;&amp;lt;SUMO-Toolbox-installation-dir&amp;gt;/config/default.xml&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
# Make sure that you are in the toolbox installation directory and you have run &#039;&amp;lt;code&amp;gt;startup&amp;lt;/code&amp;gt;&#039; (see above)&lt;br /&gt;
# Type &#039;&amp;lt;code&amp;gt;go&amp;lt;/code&amp;gt;&#039; and press enter.&lt;br /&gt;
# The toolbox will start to model the &#039;&#039;Academic2DTwice&#039;&#039; simulator.  This simulator has 2 inputs and 2 outputs, and will be modeled using Kriging models, scored using [[Measures#CrossValidation| CrossValidation]], and samples selected using a combined sample selection method.&lt;br /&gt;
# To see the exact settings used open &amp;lt;code&amp;gt;config/default.xml&amp;lt;/code&amp;gt;.  Feel free to edit this file and play around with the different options.&lt;br /&gt;
&lt;br /&gt;
The examples directory contains many example simulators that you can use to test the toolbox with.  See [[Running#Running_different_examples]].&lt;br /&gt;
&lt;br /&gt;
== Ok, the test run works, now what? ==&lt;br /&gt;
&lt;br /&gt;
See [[Running]] page.&lt;br /&gt;
&lt;br /&gt;
== Problems ==&lt;br /&gt;
&lt;br /&gt;
See the [[reporting problems]] page.&lt;br /&gt;
&lt;br /&gt;
== Optional: Compiling libraries ==&lt;br /&gt;
&lt;br /&gt;
There are some alternative libraries and simulators available that have to be compiled for your specific platform. Instructions depend on your operating system.  Ensure you have installed the extension pack before continuing.&lt;br /&gt;
&lt;br /&gt;
=== Linux/Unix/OSX ===&lt;br /&gt;
&lt;br /&gt;
# Ensure you have the following environment variables set:&lt;br /&gt;
## &amp;lt;code&amp;gt;MATLABDIR=/path/to/your/matlab/installation&amp;lt;/code&amp;gt;&lt;br /&gt;
## &amp;lt;code&amp;gt;JAVA_HOME=/path/to/your/SDK/installation&amp;lt;/code&amp;gt;&lt;br /&gt;
# Ensure you have the usual build tools installed: gcc, g++, autotools, make, etc&lt;br /&gt;
# From the command line shell (so NOT from inside Matlab): Go to the toolbox installation directory and type &#039;&amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;&#039;. This will build everything for you (C/C++ files, SVM libraries, ...).  If you only want to build certain packages simply &#039;&amp;lt;code&amp;gt;make Package&amp;lt;/code&amp;gt;&#039; in the toolbox installation directory. &lt;br /&gt;
## Note: if this is giving you problems, and you just want to compile the LS-SVMs you can try running makeLSSVM from inside Matlab (see the Windows instructions below)&lt;br /&gt;
# A complete list of available packages follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;margin: 1em auto 1em auto&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Package&lt;br /&gt;
! Description&lt;br /&gt;
! Requires extension pack&lt;br /&gt;
|-&lt;br /&gt;
| contrib&lt;br /&gt;
| Builds the FANN, SVM (libsvm, LS-SVMlab) and NNSYSID libraries&lt;br /&gt;
| Yes&lt;br /&gt;
|-&lt;br /&gt;
| cexamples&lt;br /&gt;
| Builds the binaries for several C/C++ simulators&lt;br /&gt;
| No&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note: if you want to use FANN you will have to ensure Matlab knows of the FANN libraries. See [[FAQ#When_using_FANN_models_I_sometimes_get_.22Invalid_MEX-file_createFann.mexa64.2C_libfann.so.2:_cannot_open_shared_object_file:_No_such_file_or_directory..22 | the FAQ]].&lt;br /&gt;
&lt;br /&gt;
=== Windows ===&lt;br /&gt;
&lt;br /&gt;
# Compiling C/C++ codes (examples):&lt;br /&gt;
## You will have to do this on your own using a C/C++ compiler of your choice: Dev-c++/Visual Studio/...&lt;br /&gt;
# Compiling LS-SVM libraries:&lt;br /&gt;
## In order to use the [http://www.esat.kuleuven.be/sista/lssvmlab/ LS-SVM] backend, you will have to compile the LS-SVM mex files (it will work if you dont but you will get a lot of warning messages about a missing CFile implementation).&lt;br /&gt;
## This can be done using the built-in LCC compiler of matlab, by calling &#039;&amp;lt;code&amp;gt;makeLSSVM&amp;lt;/code&amp;gt;&#039; from the Matlab command prompt (make sure the SUMO Toolbox is in your path)&lt;br /&gt;
# Compiling ANN libraries:&lt;br /&gt;
## In order to use the [http://leenissen.dk/fann/ FANN] backend, you will have to compile the FANN library and mex files.&lt;br /&gt;
## So far nobody has yet got it to work under Windows, but don&#039;t let that stop you.&lt;br /&gt;
# Compiling Java classes using Eclipse (only for SVN version of the Toolbox, on linux you can just use the make command)&lt;br /&gt;
## open eclipse&lt;br /&gt;
## import ant buildfile&lt;br /&gt;
### File-&amp;gt;New-&amp;gt;Other&lt;br /&gt;
### Java-&amp;gt;Java Project from Existing Ant Buildfile&lt;br /&gt;
### Select build.xml in the SUMO root directory&lt;br /&gt;
### Finish&lt;br /&gt;
### Add external jars from Matlab install to buildpath if necessary&lt;br /&gt;
## Open configure.m in the SUMO root directory and change bin/ to src/ for the java paths (the lines below &#039;&#039;% add java paths&#039;&#039;)&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Installing_Eureqa&amp;diff=5777</id>
		<title>Installing Eureqa</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Installing_Eureqa&amp;diff=5777"/>
		<updated>2012-02-10T23:34:58Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* On Windows using Visual Studio 2010 and Matlab */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Eureqa is a symbolic regression tool which allows you to find mathematical equations behind your data. This page details how to get Eureqa ([http://creativemachines.cornell.edu/eureqa]) working in SUMO. The Matlab interface is a modified version of code found [http://www.mathworks.com/matlabcentral/fileexchange/32225-interface-with-eureqa-featuring-symbolic-regression here]. The original code and license agreement can be found in the EureqaModel folder in the SUMO Toolbox.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
&lt;br /&gt;
* Go to [http://creativemachines.cornell.edu/eureqa the Eureqa website] and download the latest Eureqa standalone server for your operating system&lt;br /&gt;
* Place the Eureqa server in the @EureqaFactory folder which is located in the src folder of the SUMO root.&lt;br /&gt;
* Make sure you have a mex compilation of the modified &#039;&#039;&#039;eureqa_select.cpp&#039;&#039;&#039; which is based on code from Johannes Jenkner (which you can find [http://www.mathworks.com/matlabcentral/fileexchange/32225-interface-with-eureqa-featuring-symbolic-regression here]). There are two possibilities either the required mex file is already included with your SUMO installation in the contrib folder (a subfolder of the src folder) or you have to build it your self. You can check whether the mex is present by first configuring the toolbox (in the Matlab console type &amp;lt;code&amp;gt;configure&amp;lt;/code&amp;gt; from the SUMO root) and then typing in &amp;lt;code&amp;gt;eureqa_select&amp;lt;/code&amp;gt;. You will either see an instruction on how to the eureqa_select function or you will get an &amp;quot;Undefined function or variable &#039;eureqa_select&#039;&amp;quot; error which means you will have to build or obtain the proper mex files.&lt;br /&gt;
&lt;br /&gt;
==Building the mex files yourself==&lt;br /&gt;
&lt;br /&gt;
===On linux===&lt;br /&gt;
* Install the Boost C++ libraries ([http://www.boost.org Boost.org]) following the instructions on the Boost website. Make sure you build the asio, system, thread, date_time and serialization libraries&lt;br /&gt;
* Download the Eureqa API&lt;br /&gt;
* Extract the eureqa_select.zip which you can find in the EureqaModel folder&lt;br /&gt;
* Edit the Makefile to point to your Matlab install, the Boost include files, the Boost library files and the Eureqa API files. Note that you don&#039;t need the &amp;quot;&amp;lt;&amp;quot; and &amp;quot;&amp;gt;&amp;quot; brackets&lt;br /&gt;
* Type in &amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt; in a linux terminal and the building process should start&lt;br /&gt;
* When the building process is done you will have a eureqa_select_SUMO.mexglx file or a eureqa_select.mexa64 depending on your system architecture to put in the contrib folder.&lt;br /&gt;
&lt;br /&gt;
===On Windows using Visual Studio 2010 and Matlab===&lt;br /&gt;
&lt;br /&gt;
These instructions are based on these [http://coachk.cs.ucf.edu/GPGPU/Compiling_a_MEX_file_with_Visual_Studio2.htm instructions] and came about with the help of [http://sumo.intec.ugent.be/?q=joerir Joeri Ruyssinck].&lt;br /&gt;
&lt;br /&gt;
* Install the Boost C++ libraries for Windows ([http://www.boost.org Boost.org]) following the &amp;quot;Getting started instructions&amp;quot;. Alternatively you can watch this [http://www.youtube.com/watch?v=5AmwIwedTCM youtube video]. Note that if you are working on a &#039;&#039;&#039;64-bit system&#039;&#039;&#039; you need to add this &amp;quot;address-model=64&amp;quot; option to the build options.&lt;br /&gt;
* This [http://stackoverflow.com/questions/2629421/how-to-use-boost-in-visual-studio-2010 website] also has instructions on how to install Boost.&lt;br /&gt;
* Start Visual Studio&lt;br /&gt;
* Create a new Win32 project -&amp;gt; click next and select empty project&lt;br /&gt;
* Name the project &#039;&#039;eureqa_select&#039;&#039;&lt;br /&gt;
* Make sure you are working in &#039;&#039;Release&#039;&#039; mode if you only build the &#039;&#039;release&#039;&#039; version of Boost. You can change this in the &#039;&#039;Solution Configurations&#039;&#039;&lt;br /&gt;
* If you are using a &#039;&#039;&#039;64-bit system&#039;&#039;&#039;, you need to change the &#039;&#039;Solution Platform&amp;quot; from &#039;&#039;Win32&#039;&#039; to &#039;&#039;x64&#039;&#039;.&lt;br /&gt;
* OPTIONAL STEP: Add mexversion.rc (matlab root\extern\include) to your project (Project -&amp;gt; Add Existing Item). Matlab 2010a and later do not have this file.&lt;br /&gt;
* Create a .def file with the following text (Project -&amp;gt; Add New Item)&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
   LIBRARY &amp;quot;eureqa_select.mexw32&amp;quot;&lt;br /&gt;
   EXPORTS mexFunction &lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
if you are using a 32-bit system. If you are using a &#039;&#039;&#039;64-bit system&#039;&#039;&#039; change the extension to mexw64&lt;br /&gt;
&lt;br /&gt;
* Right click on &amp;quot;Resource Files&amp;quot; in the Solution Explorer and select add Existing Item and browse to the eureqa_select.cpp file.&lt;br /&gt;
* Right click on eureqa_select in the Solution Explorer and select Properties&lt;br /&gt;
** In &#039;&#039;&#039;C/C++ General&#039;&#039;&#039; add to &amp;quot;Additional Include Directory&amp;quot; the Matlab include directory (MatlabRoot\extern\include), the Eureqa API (the folder that contains the folder &#039;&#039;eureqa&#039;&#039;, &#039;&#039;examples&#039;&#039; and the &#039;&#039;server&#039;&#039; folder) and the Boost include files&lt;br /&gt;
** In &#039;&#039;&#039;C/C++ Preprocessor properties&#039;&#039;&#039; add MATLAB_MEX_FILE as preprocessor definition&lt;br /&gt;
** Under &#039;&#039;&#039;Linker General properties&#039;&#039;&#039; add to &amp;quot;Additional Library Directories&amp;quot; the folder MatlabRoot\extern\lib\win32 or win64\microsoft and the Boost library folder (BoostRoot\stage\lib)&lt;br /&gt;
** Under &#039;&#039;&#039;Linker General properties&#039;&#039;&#039; change the value of Output File to &#039;&#039;$(OutDir)$(TargetName).mexw32/64&#039;&#039; depending on your architecture&lt;br /&gt;
** In &#039;&#039;&#039;Linker Input properties&#039;&#039;&#039; add to Additional Dependencies: &#039;&#039;libmx.lib&#039;&#039;, &#039;&#039;libmat.lib&#039;&#039;, &#039;&#039;libmex.lib&#039;&#039; and &#039;&#039;libboost_serialization-vc100-mt-1_48.lib&#039;&#039; (which should be in the Boost library folder).&lt;br /&gt;
** Under &#039;&#039;&#039;Linker Command Line&#039;&#039;&#039; add: /export:mexFunction /dll&lt;br /&gt;
* Click apply and wait for Visual Studio to process all this&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Push F7 to build and hopefully there are no bugs :). The mex file can be found in the Release subfolder of your Visual Studio project. &lt;br /&gt;
&lt;br /&gt;
Good luck!&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Installing_Eureqa&amp;diff=5776</id>
		<title>Installing Eureqa</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Installing_Eureqa&amp;diff=5776"/>
		<updated>2012-02-10T23:07:13Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* On Windows using Visual Studio 2010 and Matlab 2009b */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Eureqa is a symbolic regression tool which allows you to find mathematical equations behind your data. This page details how to get Eureqa ([http://creativemachines.cornell.edu/eureqa]) working in SUMO. The Matlab interface is a modified version of code found [http://www.mathworks.com/matlabcentral/fileexchange/32225-interface-with-eureqa-featuring-symbolic-regression here]. The original code and license agreement can be found in the EureqaModel folder in the SUMO Toolbox.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
&lt;br /&gt;
* Go to [http://creativemachines.cornell.edu/eureqa the Eureqa website] and download the latest Eureqa standalone server for your operating system&lt;br /&gt;
* Place the Eureqa server in the @EureqaFactory folder which is located in the src folder of the SUMO root.&lt;br /&gt;
* Make sure you have a mex compilation of the modified &#039;&#039;&#039;eureqa_select.cpp&#039;&#039;&#039; which is based on code from Johannes Jenkner (which you can find [http://www.mathworks.com/matlabcentral/fileexchange/32225-interface-with-eureqa-featuring-symbolic-regression here]). There are two possibilities either the required mex file is already included with your SUMO installation in the contrib folder (a subfolder of the src folder) or you have to build it your self. You can check whether the mex is present by first configuring the toolbox (in the Matlab console type &amp;lt;code&amp;gt;configure&amp;lt;/code&amp;gt; from the SUMO root) and then typing in &amp;lt;code&amp;gt;eureqa_select&amp;lt;/code&amp;gt;. You will either see an instruction on how to the eureqa_select function or you will get an &amp;quot;Undefined function or variable &#039;eureqa_select&#039;&amp;quot; error which means you will have to build or obtain the proper mex files.&lt;br /&gt;
&lt;br /&gt;
==Building the mex files yourself==&lt;br /&gt;
&lt;br /&gt;
===On linux===&lt;br /&gt;
* Install the Boost C++ libraries ([http://www.boost.org Boost.org]) following the instructions on the Boost website. Make sure you build the asio, system, thread, date_time and serialization libraries&lt;br /&gt;
* Download the Eureqa API&lt;br /&gt;
* Extract the eureqa_select.zip which you can find in the EureqaModel folder&lt;br /&gt;
* Edit the Makefile to point to your Matlab install, the Boost include files, the Boost library files and the Eureqa API files. Note that you don&#039;t need the &amp;quot;&amp;lt;&amp;quot; and &amp;quot;&amp;gt;&amp;quot; brackets&lt;br /&gt;
* Type in &amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt; in a linux terminal and the building process should start&lt;br /&gt;
* When the building process is done you will have a eureqa_select_SUMO.mexglx file or a eureqa_select.mexa64 depending on your system architecture to put in the contrib folder.&lt;br /&gt;
&lt;br /&gt;
===On Windows using Visual Studio 2010 and Matlab===&lt;br /&gt;
&lt;br /&gt;
These instructions are based on these [http://coachk.cs.ucf.edu/GPGPU/Compiling_a_MEX_file_with_Visual_Studio2.htm instructions] and came about with the help of [http://sumo.intec.ugent.be/?q=joerir Joeri Ruyssinck].&lt;br /&gt;
&lt;br /&gt;
* Install the Boost C++ libraries for Windows ([http://www.boost.org Boost.org]) following the &amp;quot;Getting started instructions&amp;quot;. Alternatively you can watch this [http://www.youtube.com/watch?v=5AmwIwedTCM youtube video]. Note that if you are working on a &#039;&#039;&#039;64-bit system&#039;&#039;&#039; you need to add this &amp;quot;address-model=64&amp;quot; option to the build options.&lt;br /&gt;
* This [http://stackoverflow.com/questions/2629421/how-to-use-boost-in-visual-studio-2010 website] also has instructions on how to install Boost.&lt;br /&gt;
* Start Visual Studio&lt;br /&gt;
* Create a new Win32 project -&amp;gt; click next and select empty project&lt;br /&gt;
* Name the project &#039;&#039;eureqa_select&#039;&#039;&lt;br /&gt;
* Make sure you are working in &#039;&#039;Release&#039;&#039; mode if you only build the &#039;&#039;release&#039;&#039; version of Boost. You can change this in the &#039;&#039;Solution Configurations&#039;&#039;&lt;br /&gt;
* If you are using a &#039;&#039;&#039;64-bit system&#039;&#039;&#039;, you need to change the &#039;&#039;Solution Platform&amp;quot; from &#039;&#039;Win32&#039;&#039; to &#039;&#039;x64&#039;&#039;.&lt;br /&gt;
* OPTIONAL STEP: Add mexversion.rc (matlab root\extern\include) to your project (Project -&amp;gt; Add Existing Item).&lt;br /&gt;
* Create a .def file with the following text (Project -&amp;gt; Add New Item)&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
   LIBRARY &amp;quot;eureqa_select.mexw32&amp;quot;&lt;br /&gt;
   EXPORTS mexFunction &lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
if you are using a 32-bit system. If you are using a &#039;&#039;&#039;64-bit system&#039;&#039;&#039; change the extension to mexw64&lt;br /&gt;
&lt;br /&gt;
* Right click on &amp;quot;Resource Files&amp;quot; in the Solution Explorer and select add Existing Item and browse to the eureqa_select.cpp file.&lt;br /&gt;
* Right click on eureqa_select in the Solution Explorer and select Properties&lt;br /&gt;
** In &#039;&#039;&#039;C/C++ General&#039;&#039;&#039; add to &amp;quot;Additional Include Directory&amp;quot; the Matlab include directory (MatlabRoot\extern\include), the Eureqa API (the folder that contains the folder &#039;&#039;eureqa&#039;&#039;, &#039;&#039;examples&#039;&#039; and the &#039;&#039;server&#039;&#039; folder) and the Boost include files&lt;br /&gt;
** In &#039;&#039;&#039;C/C++ Preprocessor properties&#039;&#039;&#039; add MATLAB_MEX_FILE as preprocessor definition&lt;br /&gt;
** Under &#039;&#039;&#039;Linker General properties&#039;&#039;&#039; add to &amp;quot;Additional Library Directories&amp;quot; the folder MatlabRoot\extern\lib\win32 or win64\microsoft and the Boost library folder (BoostRoot\stage\lib)&lt;br /&gt;
** Under &#039;&#039;&#039;Linker General properties&#039;&#039;&#039; change the value of Output File to &#039;&#039;$(OutDir)$(TargetName).mexw32/64&#039;&#039; depending on your architecture&lt;br /&gt;
** In &#039;&#039;&#039;Linker Input properties&#039;&#039;&#039; add to Additional Dependencies: &#039;&#039;libmx.lib&#039;&#039;, &#039;&#039;libmat.lib&#039;&#039;, &#039;&#039;libmex.lib&#039;&#039; and &#039;&#039;libboost_serialization-vc100-mt-1_48.lib&#039;&#039; (which should be in the Boost library folder).&lt;br /&gt;
** Under &#039;&#039;&#039;Linker Command Line&#039;&#039;&#039; add: /export:mexFunction /dll&lt;br /&gt;
* Click apply and wait for Visual Studio to process all this&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Push F7 to build and hopefully there are no bugs :). The mex file can be found in the Release subfolder of your Visual Studio project. &lt;br /&gt;
&lt;br /&gt;
Good luck!&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Installing_Eureqa&amp;diff=5775</id>
		<title>Installing Eureqa</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Installing_Eureqa&amp;diff=5775"/>
		<updated>2012-02-10T23:03:23Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* On Windows using Visual Studio 2010 and Matlab 2009b */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Eureqa is a symbolic regression tool which allows you to find mathematical equations behind your data. This page details how to get Eureqa ([http://creativemachines.cornell.edu/eureqa]) working in SUMO. The Matlab interface is a modified version of code found [http://www.mathworks.com/matlabcentral/fileexchange/32225-interface-with-eureqa-featuring-symbolic-regression here]. The original code and license agreement can be found in the EureqaModel folder in the SUMO Toolbox.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
&lt;br /&gt;
* Go to [http://creativemachines.cornell.edu/eureqa the Eureqa website] and download the latest Eureqa standalone server for your operating system&lt;br /&gt;
* Place the Eureqa server in the @EureqaFactory folder which is located in the src folder of the SUMO root.&lt;br /&gt;
* Make sure you have a mex compilation of the modified &#039;&#039;&#039;eureqa_select.cpp&#039;&#039;&#039; which is based on code from Johannes Jenkner (which you can find [http://www.mathworks.com/matlabcentral/fileexchange/32225-interface-with-eureqa-featuring-symbolic-regression here]). There are two possibilities either the required mex file is already included with your SUMO installation in the contrib folder (a subfolder of the src folder) or you have to build it your self. You can check whether the mex is present by first configuring the toolbox (in the Matlab console type &amp;lt;code&amp;gt;configure&amp;lt;/code&amp;gt; from the SUMO root) and then typing in &amp;lt;code&amp;gt;eureqa_select&amp;lt;/code&amp;gt;. You will either see an instruction on how to the eureqa_select function or you will get an &amp;quot;Undefined function or variable &#039;eureqa_select&#039;&amp;quot; error which means you will have to build or obtain the proper mex files.&lt;br /&gt;
&lt;br /&gt;
==Building the mex files yourself==&lt;br /&gt;
&lt;br /&gt;
===On linux===&lt;br /&gt;
* Install the Boost C++ libraries ([http://www.boost.org Boost.org]) following the instructions on the Boost website. Make sure you build the asio, system, thread, date_time and serialization libraries&lt;br /&gt;
* Download the Eureqa API&lt;br /&gt;
* Extract the eureqa_select.zip which you can find in the EureqaModel folder&lt;br /&gt;
* Edit the Makefile to point to your Matlab install, the Boost include files, the Boost library files and the Eureqa API files. Note that you don&#039;t need the &amp;quot;&amp;lt;&amp;quot; and &amp;quot;&amp;gt;&amp;quot; brackets&lt;br /&gt;
* Type in &amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt; in a linux terminal and the building process should start&lt;br /&gt;
* When the building process is done you will have a eureqa_select_SUMO.mexglx file or a eureqa_select.mexa64 depending on your system architecture to put in the contrib folder.&lt;br /&gt;
&lt;br /&gt;
===On Windows using Visual Studio 2010 and Matlab 2009b===&lt;br /&gt;
&lt;br /&gt;
Note that these installation instructions require a file (mexversion.rc) which is not available in later versions of Matlab. We have yet to find a solution :). These instructions are based on these [http://coachk.cs.ucf.edu/GPGPU/Compiling_a_MEX_file_with_Visual_Studio2.htm instructions] and came about with the help of [http://sumo.intec.ugent.be/?q=joerir Joeri Ruyssinck].&lt;br /&gt;
&lt;br /&gt;
* Install the Boost C++ libraries for Windows ([http://www.boost.org Boost.org]) following the &amp;quot;Getting started instructions&amp;quot;. Alternatively you can watch this [http://www.youtube.com/watch?v=5AmwIwedTCM youtube video]. Note that if you are working on a 64-bit system you need to add this &amp;quot;address-model=64&amp;quot; option to the build options.&lt;br /&gt;
* This [http://stackoverflow.com/questions/2629421/how-to-use-boost-in-visual-studio-2010 website] also has instructions on how to install Boost.&lt;br /&gt;
* Start Visual Studio&lt;br /&gt;
* Create a new Win32 project -&amp;gt; click next and select empty project&lt;br /&gt;
* Name the project &#039;&#039;eureqa_select&#039;&#039;&lt;br /&gt;
* Make sure you are working in &#039;&#039;Release&#039;&#039; mode if you only build the &#039;&#039;release&#039;&#039; version of Boost. You can change this in the &#039;&#039;Solution Configurations&#039;&#039;&lt;br /&gt;
* If you are using a &#039;&#039;&#039;64-bit system&#039;&#039;&#039;, you need to change the &#039;&#039;Solution Platform&amp;quot; from &#039;&#039;Win32&#039;&#039; to &#039;&#039;x64&#039;&#039;.&lt;br /&gt;
* Add mexversion.rc (matlab root\extern\include) to your project (Project -&amp;gt; Add Existing Item).&lt;br /&gt;
* Create a .def file with the following text (Project -&amp;gt; Add New Item)&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
   LIBRARY &amp;quot;eureqa_select.mexw32&amp;quot;&lt;br /&gt;
   EXPORTS mexFunction &lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
if you are using a 32-bit system. If you are using a &#039;&#039;&#039;64-bit system&#039;&#039;&#039; change the extension to mexw64&lt;br /&gt;
&lt;br /&gt;
* Right click on &amp;quot;Resource Files&amp;quot; in the Solution Explorer and select add Existing Item and browse to the eureqa_select.cpp file.&lt;br /&gt;
* Right click on eureqa_select in the Solution Explorer and select Properties&lt;br /&gt;
** In &#039;&#039;&#039;C/C++ General&#039;&#039;&#039; add to &amp;quot;Additional Include Directory&amp;quot; the Matlab include directory (MatlabRoot\extern\include), the Eureqa API (the folder that contains the folder &#039;&#039;eureqa&#039;&#039;, &#039;&#039;examples&#039;&#039; and the &#039;&#039;server&#039;&#039; folder) and the Boost include files&lt;br /&gt;
** In &#039;&#039;&#039;C/C++ Preprocessor properties&#039;&#039;&#039; add MATLAB_MEX_FILE as preprocessor definition&lt;br /&gt;
** Under &#039;&#039;&#039;Linker General properties&#039;&#039;&#039; add to &amp;quot;Additional Library Directories&amp;quot; the folder MatlabRoot\extern\lib\win32 or win64\microsoft and the Boost library folder (BoostRoot\stage\lib)&lt;br /&gt;
** Under &#039;&#039;&#039;Linker General properties&#039;&#039;&#039; change the value of Output File to &#039;&#039;$(OutDir)$(TargetName).mexw32/64&#039;&#039; depending on your architecture&lt;br /&gt;
** In &#039;&#039;&#039;Linker Input properties&#039;&#039;&#039; add to Additional Dependencies: &#039;&#039;libmx.lib&#039;&#039;, &#039;&#039;libmat.lib&#039;&#039;, &#039;&#039;libmex.lib&#039;&#039; and &#039;&#039;libboost_serialization-vc100-mt-1_48.lib&#039;&#039; (which should be in the Boost library folder).&lt;br /&gt;
** Under &#039;&#039;&#039;Linker Command Line&#039;&#039;&#039; add: /export:mexFunction /dll&lt;br /&gt;
* Click apply and wait for Visual Studio to process all this&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Push F7 to build and hopefully there are no bugs :). The mex file can be found in the Release subfolder of your Visual Studio project. &lt;br /&gt;
&lt;br /&gt;
Good luck!&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Installing_Eureqa&amp;diff=5774</id>
		<title>Installing Eureqa</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Installing_Eureqa&amp;diff=5774"/>
		<updated>2012-02-10T23:02:37Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* On Windows using Visual Studio 2010 and Matlab 2009b */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Eureqa is a symbolic regression tool which allows you to find mathematical equations behind your data. This page details how to get Eureqa ([http://creativemachines.cornell.edu/eureqa]) working in SUMO. The Matlab interface is a modified version of code found [http://www.mathworks.com/matlabcentral/fileexchange/32225-interface-with-eureqa-featuring-symbolic-regression here]. The original code and license agreement can be found in the EureqaModel folder in the SUMO Toolbox.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
&lt;br /&gt;
* Go to [http://creativemachines.cornell.edu/eureqa the Eureqa website] and download the latest Eureqa standalone server for your operating system&lt;br /&gt;
* Place the Eureqa server in the @EureqaFactory folder which is located in the src folder of the SUMO root.&lt;br /&gt;
* Make sure you have a mex compilation of the modified &#039;&#039;&#039;eureqa_select.cpp&#039;&#039;&#039; which is based on code from Johannes Jenkner (which you can find [http://www.mathworks.com/matlabcentral/fileexchange/32225-interface-with-eureqa-featuring-symbolic-regression here]). There are two possibilities either the required mex file is already included with your SUMO installation in the contrib folder (a subfolder of the src folder) or you have to build it your self. You can check whether the mex is present by first configuring the toolbox (in the Matlab console type &amp;lt;code&amp;gt;configure&amp;lt;/code&amp;gt; from the SUMO root) and then typing in &amp;lt;code&amp;gt;eureqa_select&amp;lt;/code&amp;gt;. You will either see an instruction on how to the eureqa_select function or you will get an &amp;quot;Undefined function or variable &#039;eureqa_select&#039;&amp;quot; error which means you will have to build or obtain the proper mex files.&lt;br /&gt;
&lt;br /&gt;
==Building the mex files yourself==&lt;br /&gt;
&lt;br /&gt;
===On linux===&lt;br /&gt;
* Install the Boost C++ libraries ([http://www.boost.org Boost.org]) following the instructions on the Boost website. Make sure you build the asio, system, thread, date_time and serialization libraries&lt;br /&gt;
* Download the Eureqa API&lt;br /&gt;
* Extract the eureqa_select.zip which you can find in the EureqaModel folder&lt;br /&gt;
* Edit the Makefile to point to your Matlab install, the Boost include files, the Boost library files and the Eureqa API files. Note that you don&#039;t need the &amp;quot;&amp;lt;&amp;quot; and &amp;quot;&amp;gt;&amp;quot; brackets&lt;br /&gt;
* Type in &amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt; in a linux terminal and the building process should start&lt;br /&gt;
* When the building process is done you will have a eureqa_select_SUMO.mexglx file or a eureqa_select.mexa64 depending on your system architecture to put in the contrib folder.&lt;br /&gt;
&lt;br /&gt;
===On Windows using Visual Studio 2010 and Matlab 2009b===&lt;br /&gt;
&lt;br /&gt;
Note that these installation instructions require a file (mexversion.rc) which is not available in later versions of Matlab. We have yet to find a solution :). These instructions are based on these [http://coachk.cs.ucf.edu/GPGPU/Compiling_a_MEX_file_with_Visual_Studio2.htm instructions] and came about with the help of [http://sumo.intec.ugent.be/?q=joerir Joeri Ruyssinck].&lt;br /&gt;
&lt;br /&gt;
* Install the Boost C++ libraries for Windows ([http://www.boost.org Boost.org]) following the &amp;quot;Getting started instructions&amp;quot;. Alternatively you can watch this [http://www.youtube.com/watch?v=5AmwIwedTCM youtube video]. Note that if you are working on a 64-bit system you need to add this &amp;quot;address-model=64&amp;quot; option to the build options.&lt;br /&gt;
* This [http://stackoverflow.com/questions/2629421/how-to-use-boost-in-visual-studio-2010 website] also has instructions on how to install Boost.&lt;br /&gt;
* Start Visual Studio&lt;br /&gt;
* Create a new Win32 project -&amp;gt; click next and select empty project&lt;br /&gt;
* Name the project &#039;&#039;eureqa_select&#039;&#039;&lt;br /&gt;
* Make sure you are working in &#039;&#039;Release&#039;&#039; mode if you only build the &#039;&#039;release&#039;&#039; version of Boost. You can change this in the &#039;&#039;Solution Configurations&#039;&#039;&lt;br /&gt;
* If you are using a 64-bit system, you need to change the &#039;&#039;Solution Platform&amp;quot; from &#039;&#039;Win32&#039;&#039; to &#039;&#039;x64&#039;&#039;.&lt;br /&gt;
* Add mexversion.rc (matlab root\extern\include) to your project (Project -&amp;gt; Add Existing Item).&lt;br /&gt;
* Create a .def file with the following text (Project -&amp;gt; Add New Item)&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
   LIBRARY &amp;quot;eureqa_select.mexw32&amp;quot;&lt;br /&gt;
   EXPORTS mexFunction &lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
if you are using a 32-bit system. Otherwise change the extension to mexw64&lt;br /&gt;
&lt;br /&gt;
* Right click on &amp;quot;Resource Files&amp;quot; in the Solution Explorer and select add Existing Item and browse to the eureqa_select.cpp file.&lt;br /&gt;
* Right click on eureqa_select in the Solution Explorer and select Properties&lt;br /&gt;
** In &#039;&#039;&#039;C/C++ General&#039;&#039;&#039; add to &amp;quot;Additional Include Directory&amp;quot; the Matlab include directory (MatlabRoot\extern\include), the Eureqa API (the folder that contains the folder &#039;&#039;eureqa&#039;&#039;, &#039;&#039;examples&#039;&#039; and the &#039;&#039;server&#039;&#039; folder) and the Boost include files&lt;br /&gt;
** In &#039;&#039;&#039;C/C++ Preprocessor properties&#039;&#039;&#039; add MATLAB_MEX_FILE as preprocessor definition&lt;br /&gt;
** Under &#039;&#039;&#039;Linker General properties&#039;&#039;&#039; add to &amp;quot;Additional Library Directories&amp;quot; the folder MatlabRoot\extern\lib\win32 or win64\microsoft and the Boost library folder (BoostRoot\stage\lib)&lt;br /&gt;
** Under &#039;&#039;&#039;Linker General properties&#039;&#039;&#039; change the value of Output File to &#039;&#039;$(OutDir)$(TargetName).mexw32/64&#039;&#039; depending on your architecture&lt;br /&gt;
** In &#039;&#039;&#039;Linker Input properties&#039;&#039;&#039; add to Additional Dependencies: &#039;&#039;libmx.lib&#039;&#039;, &#039;&#039;libmat.lib&#039;&#039;, &#039;&#039;libmex.lib&#039;&#039; and &#039;&#039;libboost_serialization-vc100-mt-1_48.lib&#039;&#039; (which should be in the Boost library folder).&lt;br /&gt;
** Under &#039;&#039;&#039;Linker Command Line&#039;&#039;&#039; add: /export:mexFunction /dll&lt;br /&gt;
* Click apply and wait for Visual Studio to process all this&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Push F7 to build and hopefully there are no bugs :). The mex file can be found in the Release subfolder of your Visual Studio project. &lt;br /&gt;
&lt;br /&gt;
Good luck!&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Using_a_model&amp;diff=5773</id>
		<title>Using a model</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Using_a_model&amp;diff=5773"/>
		<updated>2012-02-10T16:28:03Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* Model object interfacing and optimization */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page explains what you can do with a SUMO generated model.&lt;br /&gt;
&lt;br /&gt;
== Loading a model from disk ==&lt;br /&gt;
&lt;br /&gt;
As the SUMO Toolbox builds models, each current best model is stored as a Matlab mat file in the output directory (e.g.: &amp;lt;code&amp;gt;output/Academic_2D_Twice_rep01_run00_2008.05.20_10-27-18/models_out/model_0002.mat&amp;lt;/code&amp;gt;).  &lt;br /&gt;
&lt;br /&gt;
In order to load this model from disk and actually use it, do the following:&lt;br /&gt;
&lt;br /&gt;
* Start Matlab, make sure the SUMO Toolbox is in your path and navigate to the directory where the model file is stored&lt;br /&gt;
* Load the model from disk as follows:&lt;br /&gt;
** &amp;gt;&amp;gt; &amp;lt;code&amp;gt;modelFile = load(&#039;model_0002.mat&#039;);&amp;lt;/code&amp;gt;&lt;br /&gt;
** &amp;gt;&amp;gt; &amp;lt;code&amp;gt;model = modelFile.model;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now the model is available as the variable &#039;model&#039; in the Matlab workspace.&lt;br /&gt;
&lt;br /&gt;
== Model portability ==&lt;br /&gt;
&lt;br /&gt;
How do you exchange and/or export SUMO models.&lt;br /&gt;
&lt;br /&gt;
=== The other person has the SUMO Toolbox installed ===&lt;br /&gt;
&lt;br /&gt;
The model &#039;mat&#039; files can be shared with other people.  In order for somebody else to use your saved model the following conditions need to be satisfied:&lt;br /&gt;
&lt;br /&gt;
* The person has the SUMO Toolbox in his Matlab path&lt;br /&gt;
* The person should be using a similar Matlab version (including toolboxes) as was used to create the model file (preferably equal)&lt;br /&gt;
* The person should be using a similar SUMO Toolbox version as was used to create the model file (preferably equal)&lt;br /&gt;
&lt;br /&gt;
We do not guarantee portability if the the above versions differ.&lt;br /&gt;
&lt;br /&gt;
=== The other person does NOT have the SUMO Toolbox installed ===&lt;br /&gt;
&lt;br /&gt;
In this case you can use the &#039;&#039;getExpression&#039;&#039; and &#039;&#039;exportToMFile&#039;&#039; (available from v6.0) methods. See below.&lt;br /&gt;
&lt;br /&gt;
== Model space vs Simulator space ==&lt;br /&gt;
&lt;br /&gt;
It is important to note the difference between &#039;&#039;&#039;Model space&#039;&#039;&#039; and &#039;&#039;&#039;Simulator space&#039;&#039;&#039;.  When a data point is in model space, it means its inputs all lie in the range [-1 1].  When the point is in simulator space its inputs lie in the range specified by the [[Simulator configuration]] file.&lt;br /&gt;
&lt;br /&gt;
Internally the toolbox only works in model space. The toolbox will take care of translating points from simulator space into model space and back (this happens in the SampleManager object).  You will note that many methods have a &#039;&#039;XXXinModelSpace&#039;&#039; variant.  This just means that the method does exactly the same, except it expects points to be in model space.  You should normally not have to care about model space unless you are writing your own extensions to the toolbox.  In that case see [[Add Model Type]].&lt;br /&gt;
&lt;br /&gt;
== Available methods ==&lt;br /&gt;
&lt;br /&gt;
Once the model is loaded you can invoke a number methods on it.  We list the main ones below. For a full list of available methods just use the matlab &#039;methods&#039; command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;gt;&amp;gt;methods(model)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to understand the structure of the model, i.e., how the model object is built up you can do two things:&lt;br /&gt;
&lt;br /&gt;
# open the class file for that model, e.g., for an ANNModel object, open the src/matlab/models/@ANNModel/ANNModel.m file&lt;br /&gt;
# use the struct command to convert the model object to a structure.  For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;gt;&amp;gt;str = struct(model)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, some model types provide methods to access the internal model representation.  For example, if m is an object of type ANNModel, then executing m.getNetwork() will return the nested Matlab neural network object (from the Matlab Neural Network Toolbox).&lt;br /&gt;
&lt;br /&gt;
=== guiPlotModel ===&lt;br /&gt;
&lt;br /&gt;
The easiest way to explore a model is to use the graphical model browser. [[Model Visualization GUI|See here for more information]]&lt;br /&gt;
&lt;br /&gt;
=== plotModel ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;gt;&amp;gt;[figureHandle] = plotModel(model,[outputNumber],[options])&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;plotModel&amp;lt;/code&amp;gt; will generate an indicative plot of the model surface. To do so, it evaluates the model on a reasonably dense grid of points.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;plotModel&amp;lt;/code&amp;gt; optional parameters:&lt;br /&gt;
* &amp;lt;code&amp;gt;outputNumber&amp;lt;/code&amp;gt;: optional parameter, an integer specifying which output to plot&lt;br /&gt;
* &amp;lt;code&amp;gt;options&amp;lt;/code&amp;gt;: optional parameter, a struct containing a number of options you can set.  To get the default options simply call &amp;lt;code&amp;gt;Model.getPlotDefaults()&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To determine which kind of plot is generated, one makes a distinction based on the dimension of the input space:&lt;br /&gt;
* &#039;&#039;&#039;One dimensional models&#039;&#039;&#039; are always plotted in a simple XY line chart. Samples are shown as dots.&lt;br /&gt;
* &#039;&#039;&#039;Two dimensional models&#039;&#039;&#039; are plotted as a Matlab *mesh* plot, i.e. a colored surface. The colors are just an indication of height and don&#039;t have any further meaning. The samples are plotted as dots, and should (hopefully) approach the surface.&lt;br /&gt;
* &#039;&#039;&#039;Three dimensional problems&#039;&#039;&#039; are plotted used a custom built [[Slice Plot]].&lt;br /&gt;
* &#039;&#039;&#039;Four dimensional problems&#039;&#039;&#039; are plotted using 3 [[Slice Plot]]s. The leftmost plot fixes the variable of the fourth variable at -1, the middle plot at 0 and the rightmost plot at 1 (thus reducing the function to a three dimensional function, making a slice plot possible&lt;br /&gt;
* &#039;&#039;&#039;Five dimensional problems&#039;&#039;&#039; are plotted using 9 [[Slice Plot]]s. The fourth and fifth variables are fixed at values of -1, 0 and 1. Indicators below the plots show where the variables were fixed.&lt;br /&gt;
* &#039;&#039;&#039;Higher dimensional problems&#039;&#039;&#039;: All variables after the fifth are fixed at 0, and plotting proceeds as if the model was five dimensional.&lt;br /&gt;
&lt;br /&gt;
The toolbox handles complex valued outputs as their modulus (= absolute value = magnitude) for plotting purposes. These plots are just visual aids for monitoring the modeling process. Phase data can be extracted from the model files.&lt;br /&gt;
&lt;br /&gt;
=== evaluate ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;gt;&amp;gt; values = evaluate(model, samples);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This evaluates the model on the given samples. The samples should be provided in simulator space. Simulator space is defined by the range in the [[Simulator configuration]]. If no range (minimum and maximum) was specified, the domain is assumed to be [-1,1].&lt;br /&gt;
&lt;br /&gt;
See also [[Using_a_model#Model_object_interfacing_and_optimization]]&lt;br /&gt;
&lt;br /&gt;
=== evaluateDerivative ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;gt;&amp;gt; values = evaluateDerivative(model, samples, [outputIndex]);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This approximates the partial derivatives of the model at each given sample.  Note that the base class implementation is a very simple approximation.  Models can override this function to provide more accurate derivatives (e.g., Kriging does this already).  However, in its current form it is already useful.&lt;br /&gt;
&lt;br /&gt;
=== getSamples ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;gt;&amp;gt; samples = getSamples(model);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Returns the samples that were used to fit the model. The samples are returned in simulator space.&lt;br /&gt;
&lt;br /&gt;
=== getValues ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;gt;&amp;gt; values = getValues(model);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Returns the values that correspond to the samples from getSamples().&lt;br /&gt;
&lt;br /&gt;
=== getDescription ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;gt;&amp;gt; desc = getDescription(model);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Returns a string with a user friendly description of the model.&lt;br /&gt;
&lt;br /&gt;
=== getExpression ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;gt;&amp;gt; desc = getExpression(model,[outputNumber]);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Returns the symbolic mathematical expression of this model (e.g., 3*x1^2 - 2*x2 +5).  Note that not all model types implement this.&lt;br /&gt;
&lt;br /&gt;
=== construct ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;gt;&amp;gt; model = construct(model,samples);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will build/train/fit.. the model on the given set of data points and return the updated model.&lt;br /&gt;
&lt;br /&gt;
=== complexity ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;gt;&amp;gt; n = complexity(model);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Returns the number of free parameters in the model.  By default this returns the number of datapoints the model was built with but this is overridden by some model types.  For example, an ANN model returns the number of weights in the network while a rational model returns the number of coefficients.&lt;br /&gt;
&lt;br /&gt;
== Model object interfacing and optimization ==&lt;br /&gt;
&lt;br /&gt;
You may want to use the model as part of a larger Matlab program, or you may simply want to optimizer the model.  To easily do this you can create a function handle to the model object.  You can do this as follows (example for the 3D case):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
  handle = @(x,y,z) evaluate( model, [x,y,z] );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Afterwards, you can pass that handle to your optimization procedure, or use it through &amp;lt;code&amp;gt;feval&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
  fmincon( handle, ... );&lt;br /&gt;
  feval( handle, 0, 1, -1 );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous post-processing scripts ==&lt;br /&gt;
&lt;br /&gt;
The SUMO Toolbox also includes some miscellaneous scripts you can use to analyze the results of your run. You can find them in &amp;lt;code&amp;gt;...\SUMO-Toolbox\src\scripts\matlab\&amp;lt;/code&amp;gt; folder.&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Config:ToolboxConfiguration&amp;diff=5772</id>
		<title>Config:ToolboxConfiguration</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Config:ToolboxConfiguration&amp;diff=5772"/>
		<updated>2012-02-10T15:59:13Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* Toolbox configuration file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Toolbox configuration file ==&lt;br /&gt;
This is the default SUMO toolbox configuration, this is what gets used when you run &#039;go&#039; without any arguments You can edit this file directly or make a copy and run that. See the wiki for detailed information.&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:ToolboxConfiguration|ToolboxConfiguration]] version=&amp;quot;7.0&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;[[Config:Plan|Plan]]/&amp;gt;&lt;br /&gt;
	&amp;lt;[[Config:ContextConfig|ContextConfig]]/&amp;gt;&lt;br /&gt;
	&amp;lt;[[Config:Logging|Logging]]/&amp;gt;&lt;br /&gt;
	&amp;lt;[[Config:LevelPlot|LevelPlot]]/&amp;gt;&lt;br /&gt;
	&amp;lt;[[Config:SUMO|SUMO]]/&amp;gt;&lt;br /&gt;
	&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]]/&amp;gt;&lt;br /&gt;
	&amp;lt;[[Config:SampleSelector|SampleSelector]]/&amp;gt;&lt;br /&gt;
	&amp;lt;[[Config:AdaptiveModelBuilder|AdaptiveModelBuilder]]/&amp;gt;&lt;br /&gt;
	&amp;lt;[[Config:BasisFunction|BasisFunction]]/&amp;gt;&lt;br /&gt;
	&amp;lt;[[Config:InitialDesign|InitialDesign]]/&amp;gt;&lt;br /&gt;
	&amp;lt;[[Config:Optimizer|Optimizer]]/&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:ToolboxConfiguration|ToolboxConfiguration]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Interpreting the configuration file == &lt;br /&gt;
&lt;br /&gt;
When first looking at the default.xml you are presented with a lot of information and it can be a bit difficult to understand what is going, especially if you are not familiar with XML. However there is method in the madness, and this section will help you to break down the components that make up the configuration file. &lt;br /&gt;
&lt;br /&gt;
=== Comments ===&lt;br /&gt;
Comments in the XML are displayed like so:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;!-- This is an example comment. --&amp;gt;        &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default.xml contains a lot of comments with information about the different sections or example usage.&lt;br /&gt;
&lt;br /&gt;
=== Tags ===&lt;br /&gt;
XML groups information that logically belong to with each other within so called &#039;&#039;&#039;tags&#039;&#039;&#039;. Here is an example of a &#039;&#039;recipe&#039;&#039; tag. This is a recipe to make pancakes, which is grouped in a logical way; all the ingredients &#039;&#039;items&#039;&#039; are grouped within the &#039;&#039;ingredients&#039;&#039; tag. The &#039;&#039;items&#039;&#039; themselves in turn group information about the &#039;&#039;type&#039;&#039; of ingredient and the required &#039;&#039;amount&#039;&#039;. Tags can also have attributes, here the &#039;&#039;recipe&#039;&#039; tag has an attribute called &#039;&#039;category&#039;&#039; with the value &#039;&#039;desert&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;recipe category=&amp;quot;dessert&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;title&amp;gt;Pancakes&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;sumo@intec.ugent.be&amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;date&amp;gt;Wed, 14 Jun 95&amp;lt;/date&amp;gt;&lt;br /&gt;
  &amp;lt;description&amp;gt;&lt;br /&gt;
    Good old fashioned pancakes.&lt;br /&gt;
  &amp;lt;/description&amp;gt;&lt;br /&gt;
  &amp;lt;ingredients&amp;gt;&lt;br /&gt;
    &amp;lt;item&amp;gt;&lt;br /&gt;
        &amp;lt;amount&amp;gt;3&amp;lt;/amount&amp;gt;&lt;br /&gt;
        &amp;lt;type&amp;gt;eggs&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;/item&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;item&amp;gt;&lt;br /&gt;
         &amp;lt;amount&amp;gt;0.5 tablespoon&amp;lt;/amount&amp;gt;&lt;br /&gt;
         &amp;lt;type&amp;gt;salt&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;/item&amp;gt;&lt;br /&gt;
     ...&lt;br /&gt;
  &amp;lt;/ingredients&amp;gt;&lt;br /&gt;
  &amp;lt;preparation&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
  &amp;lt;/preparation&amp;gt;&lt;br /&gt;
 &amp;lt;/recipe&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The configuration file uses XML to group information about the Toolbox into logical units. Here is an example configuration of a [[Config:SampleSelector#delaunay|SampleSelector]] called delaunay. It has three attributes &#039;&#039;id&#039;&#039;, &#039;&#039;type&#039;&#039; and &#039;&#039;combineOutputs&#039;&#039;. The SUMO Toolbox uses the &#039;&#039;id&#039;&#039; to refer to this configuration section in other places in the configuration file. The &#039;&#039;type&#039;&#039; refers tells the toolbox what class of sample selector it has to look for in the &amp;lt;code&amp;gt;src&amp;lt;/code&amp;gt; folder, in this case the class &#039;&#039;PipeLinSampleSelector&#039;&#039; which you can find under &amp;lt;code&amp;gt;src/matlab/sampleselector/@PipeLineSampleSelector&amp;lt;/code&amp;gt;. The &#039;&#039;combineOutputs&#039;&#039; tells the SUMO how the SampleSelector has to deal with multiple outputs.&lt;br /&gt;
&lt;br /&gt;
If you look at the implementation of the PipeLineSampleSelector you will see that it requires a &#039;&#039;CandidateGenerator&#039;&#039;, &#039;&#039;CandidateRanker&#039;&#039; and a &#039;&#039;MergeCriterion&#039;&#039; all of which are specified here within the &#039;&#039;SampleSelector&#039;&#039; tag.&lt;br /&gt;
&lt;br /&gt;
Other components (such as [[Config:AdaptiveModelBuilder|AdaptiveModelBuilder]], [[Config:InitialDesign|initial design]], etc...) require different information. To find what options and configurations you need/can give to a component check out their wiki page or their implementation in the Toolbox.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=xml&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;SampleSelector id=&amp;quot;delaunay&amp;quot; type=&amp;quot;PipelineSampleSelector&amp;quot; combineOutputs=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
		&amp;lt;CandidateGenerator type=&amp;quot;DelaunayCandidateGenerator&amp;quot;/&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;modelDifference&amp;quot;&amp;gt;&lt;br /&gt;
        		&amp;lt;Option key=&amp;quot;criterion_parameter&amp;quot; value=&amp;quot;2&amp;quot;/&amp;gt;&lt;br /&gt;
       		&amp;lt;/CandidateRanker&amp;gt;&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;delaunayVolume&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        	&amp;lt;MergeCriterion type=&amp;quot;WeightedAverage&amp;quot; weights=&amp;quot;[1 1]&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing configuration components of an experimental run ===&lt;br /&gt;
The SUMO Toolbox was written with flexibility in mind, making it easy to experiment with different combinations of algorithms. Here is a snippet from a configuration XML. The snippet show the &amp;lt;Plan&amp;gt; tag which determines how the experimental runs are configured and two different pre-defined &amp;lt;SampleSelector&amp;gt; tags, &#039;&#039;random&#039;&#039; and &#039;&#039;delaunay&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;ISO-8859-1&amp;quot; ?&amp;gt;&lt;br /&gt;
&amp;lt;ToolboxConfiguration version=&amp;quot;7.0&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;Plan&amp;gt;&lt;br /&gt;
                &amp;lt;ContextConfig&amp;gt;default&amp;lt;/ContextConfig&amp;gt;&lt;br /&gt;
		&amp;lt;SUMO&amp;gt;default&amp;lt;/SUMO&amp;gt;&lt;br /&gt;
		&amp;lt;LevelPlot&amp;gt;default&amp;lt;/LevelPlot&amp;gt;&lt;br /&gt;
		&amp;lt;Simulator&amp;gt;Math/Academic/Academic2DTwice.xml&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
                &amp;lt;Run name=&amp;quot;&amp;quot; repeat=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;InitialDesign&amp;gt;lhdWithCornerPoints&amp;lt;/InitialDesign&amp;gt;&lt;br /&gt;
			&amp;lt;SampleSelector&amp;gt;random&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
			&amp;lt;SampleEvaluator&amp;gt;matlab&amp;lt;/SampleEvaluator&amp;gt;&lt;br /&gt;
			&amp;lt;AdaptiveModelBuilder&amp;gt;kriging&amp;lt;/AdaptiveModelBuilder&amp;gt;&lt;br /&gt;
			&amp;lt;Measure type=&amp;quot;CrossValidation&amp;quot; target=&amp;quot;0.01&amp;quot; errorFcn=&amp;quot;rootRelativeSquareError&amp;quot; use=&amp;quot;on&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Outputs&amp;gt;&lt;br /&gt;
				&amp;lt;Output name=&amp;quot;out&amp;quot;&amp;gt;&lt;br /&gt;
				&amp;lt;/Output&amp;gt;&lt;br /&gt;
				&amp;lt;Output name=&amp;quot;outinverse&amp;quot;&amp;gt;&lt;br /&gt;
				&amp;lt;/Output&amp;gt;&lt;br /&gt;
			&amp;lt;/Outputs&amp;gt;&lt;br /&gt;
		&amp;lt;/Run&amp;gt;&lt;br /&gt;
	&amp;lt;/Plan&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 	...&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;SampleSelector id=&amp;quot;random&amp;quot; type=&amp;quot;RandomSampleSelector&amp;quot; combineOutputs=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;SampleSelector id=&amp;quot;delaunay&amp;quot; type=&amp;quot;PipelineSampleSelector&amp;quot; combineOutputs=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
		&amp;lt;CandidateGenerator type=&amp;quot;DelaunayCandidateGenerator&amp;quot;/&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;modelDifference&amp;quot;&amp;gt;&lt;br /&gt;
        		&amp;lt;Option key=&amp;quot;criterion_parameter&amp;quot; value=&amp;quot;2&amp;quot;/&amp;gt;&lt;br /&gt;
       		&amp;lt;/CandidateRanker&amp;gt;&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;delaunayVolume&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        	&amp;lt;MergeCriterion type=&amp;quot;WeightedAverage&amp;quot; weights=&amp;quot;[1 1]&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
	&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ToolboxConfiguration&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All the tags within the &amp;lt;Plan&amp;gt; tag, except for Measure, Inputs and Outputs, refer to a configuration section defined further in the configuration xml. These tags determine what algorithm will be used for the experimental run. For example in this case the tag: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;SampleSelector&amp;gt;random&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
refers to the SampleSelector tag with an &#039;&#039;id=random&#039;&#039;. So even though both the &#039;&#039;random&#039;&#039; SampleSelector and &#039;&#039;delaunay&#039;&#039; SampleSelector are defined, it is the random SampleSelector which will be used in the experimental run. &lt;br /&gt;
&lt;br /&gt;
The default.xml already has a number of configuration section already defined, making it easier for you to experiment with them. All you have to do is use the appropriate &#039;&#039;id&#039;&#039; in the right tags.&lt;br /&gt;
&lt;br /&gt;
=== Modifying/Creating your own configuration section ===&lt;br /&gt;
&lt;br /&gt;
In some cases the default configuration sections might no suit your needs. For example if you require a lhdWithCornerPoints [[Config:InitialDesign|initial design]] with 40 instead of the default 20 points. In this case you can either create a new configuration section like so:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;InitialDesign id=&amp;quot;lhdWithCornerPoints40&amp;quot; type=&amp;quot;CombinedDesign&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;InitialDesign type=&amp;quot;LatinHypercubeDesign&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;!-- how many points to generate --&amp;gt;&lt;br /&gt;
			&amp;lt;Option key=&amp;quot;points&amp;quot; value=&amp;quot;40&amp;quot;/&amp;gt;&lt;br /&gt;
		&amp;lt;/InitialDesign&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		&amp;lt;InitialDesign type=&amp;quot;FactorialDesign&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;Option key=&amp;quot;levels&amp;quot; value=&amp;quot;2&amp;quot; /&amp;gt;&lt;br /&gt;
		&amp;lt;/InitialDesign&amp;gt;&lt;br /&gt;
	&amp;lt;/InitialDesign&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and refer to it in the plan using the &#039;&#039;id&#039;&#039; lhdWithCornerPoints40 or you can simply edit the default lhdWithCornerPoints :). When making your own configuration section, make sure you specify all necessary tags and options and you&#039;re set to go!&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=FAQ&amp;diff=5771</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=FAQ&amp;diff=5771"/>
		<updated>2012-02-10T15:58:23Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* Why does SUMO use XML? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General ==&lt;br /&gt;
&lt;br /&gt;
=== What is a global surrogate model? ===&lt;br /&gt;
&lt;br /&gt;
A global [http://en.wikipedia.org/wiki/Surrogate_model surrogate model] is a mathematical model that mimics the behavior of a computationally expensive simulation code over &#039;&#039;&#039;the complete parameter space&#039;&#039;&#039; as accurately as possible, using as little data points as possible. So note that optimization is not the primary goal, although it can be done as a post-processing step. Global surrogate models are useful for:&lt;br /&gt;
&lt;br /&gt;
* design space exploration, to get a &#039;&#039;feel&#039;&#039; of how the different parameters behave&lt;br /&gt;
* sensitivity analysis&lt;br /&gt;
* &#039;&#039;what-if&#039;&#039; analysis&lt;br /&gt;
* prototyping&lt;br /&gt;
* visualization&lt;br /&gt;
* ...&lt;br /&gt;
&lt;br /&gt;
In addition they are a cheap way to model large scale systems, multiple global surrogate models can be chained together in a model cascade.&lt;br /&gt;
&lt;br /&gt;
See also the [[About]] page.&lt;br /&gt;
&lt;br /&gt;
=== What about surrogate driven optimization? ===&lt;br /&gt;
&lt;br /&gt;
When coining the term &#039;&#039;&#039;surrogate driven optimization&#039;&#039;&#039; most people associate it with trust-region strategies and simple polynomial models. These frameworks first construct a local surrogate which is optimized to find an optimum. Afterwards, a move limit strategy decides how the local surrogate is scaled and/or moved through the input space. Subsequently the surrogate is rebuild and optimized. I.e. the surrogate zooms in to the global optimum. For instance the [http://www.cs.sandia.gov/DAKOTA/ DAKOTA] Toolbox implements such strategies where the surrogate construction is separated from optimization.&lt;br /&gt;
&lt;br /&gt;
Such a framework was earlier implemented in the SUMO Toolbox but was deprecated as it didn&#039;t fit the philosophy and design of the toolbox. &lt;br /&gt;
&lt;br /&gt;
Instead another, equally powerful, approach was taken. The current optimization framework is in fact a sampling selection strategy that balances local and global search. In other words, it balances between exploring the input space and exploiting the information the surrogate gives us.&lt;br /&gt;
&lt;br /&gt;
A configuration example can be found [[Config:SampleSelector#expectedImprovement|here]].&lt;br /&gt;
&lt;br /&gt;
=== What is (adaptive) sampling? Why is it used? ===&lt;br /&gt;
&lt;br /&gt;
In classical Design of Experiments you need to specify the design of your experiment up-front. Or in other words, you have to say up-front how many data points you need and how they should be distributed.  Two examples are Central Composite Designs and Latin Hypercube designs.  However, if your data is expensive to generate (e.g., an expensive simulation code) it is not clear how many points are needed up-front.  Instead data points are selected adaptively, only a couple at a time.  This process of incrementally selecting new data points in regions that are the most interesting is called adaptive sampling, sequential design, or active learning.  Of course the sampling process needs to start from somewhere so the very first set of points is selected based on a fixed, classic experimental design.  See also [[Running#Understanding_the_control_flow]].&lt;br /&gt;
SUMO provides a number of different sampling algorithms: [[SampleSelector]]&lt;br /&gt;
&lt;br /&gt;
Of course sometimes you dont want to do sampling.  For example if you have a fixed dataset you just want to load all the data in one go and model that.  For how to do this see [[FAQ#How_do_I_turn_off_adaptive_sampling_.28run_the_toolbox_for_a_fixed_set_of_samples.29.3F]].&lt;br /&gt;
&lt;br /&gt;
=== What about dynamical, time dependent data? ===&lt;br /&gt;
&lt;br /&gt;
The original design and purpose was to tackle static input-output systems, where there is no memory. Just a complex mapping that must be learnt and approximated. Of course you can take a fixed time interval and apply the toolbox but that typically is not a desired solution.  Usually you are interested in time series prediction, e.g., given a set of output values from time t=0 to t=k, predict what happens at time t=k+1,k+2,...&lt;br /&gt;
&lt;br /&gt;
The toolbox was originally not intended for this purpose.  However, it is quite easy to add support for recurrent models.  Automatic generation of dynamical models would involve adding a new model type (just like you would add a new regression technique) or require adapting an existing one.  For example it would not be too much work to adapt the ANN or SVM models to support dynamic problems.  The only extra work besides that would be to add a new [[Measures|Measure]] that can evaluate the fidelity of the models&#039; prediction.&lt;br /&gt;
&lt;br /&gt;
Naturally though, you would be unable to use sample selection (since it makes no sense in those problems).  Unless of course there is a specialized need for it.  In that case you would add a new [[SampleSelector]].&lt;br /&gt;
&lt;br /&gt;
For more information on this topic [[Contact]] us.&lt;br /&gt;
&lt;br /&gt;
=== What about classification problems? ===&lt;br /&gt;
&lt;br /&gt;
The main focus of the SUMO Toolbox is on regression/function approximation.  However, the framework for hyperparameter optimization, model selection, etc.  can also be used for classification.  Starting from version 6.3 a demo file is included in the distribution that shows how this works on the well known two spiral test problem.&lt;br /&gt;
&lt;br /&gt;
=== Does SUMO support discrete inputs/outputs ===&lt;br /&gt;
&lt;br /&gt;
Not, if you mean in a smart way.  There is a way to flag an input/output as discrete but it is not used anywhere.  It is on the wishlist but we have not been able to get to it yet.  Discrete inputs are just handled as if they were continuous.  Depending on how many levels there are and if there is an ordering this may work ok or not work at all.  You could of course add your own model type that can handle these :)  As for discrete outputs see [[FAQ#What_about_classification_problems.3F]].&lt;br /&gt;
&lt;br /&gt;
=== Can the toolbox drive my simulation code directly? ===&lt;br /&gt;
&lt;br /&gt;
Yes it can.  See the [[Interfacing with the toolbox]] page.&lt;br /&gt;
&lt;br /&gt;
=== What is the difference between the M3-Toolbox and the SUMO-Toolbox? ===&lt;br /&gt;
&lt;br /&gt;
The SUMO toolbox is a complete, feature-full framework for automatically generating approximation models and performing adaptive sampling. In contrast, the M3-Toolbox was more of a proof-of-principle.&lt;br /&gt;
&lt;br /&gt;
=== What happened to the M3-Toolbox? ===&lt;br /&gt;
&lt;br /&gt;
The M3 Toolbox project has been discontinued (Fall 2007) and superseded by the SUMO Toolbox. Please contact tom.dhaene@ua.ac.be for any inquiries and requests about the M3 Toolbox.&lt;br /&gt;
&lt;br /&gt;
=== How can I stay up to date with the latest news? ===&lt;br /&gt;
&lt;br /&gt;
To stay up to date with the latest news and releases, we also recommend subscribing to our newsletter [http://www.sumo.intec.ugent.be here].  Traffic will be kept to a minimum (1 message every 2-3 months) and you can unsubscribe at any time.&lt;br /&gt;
&lt;br /&gt;
You can also follow our blog: [http://sumolab.blogspot.com/ http://sumolab.blogspot.com/].&lt;br /&gt;
&lt;br /&gt;
=== What is the roadmap for the future? ===&lt;br /&gt;
&lt;br /&gt;
There is no explicit roadmap since much depends on where our research leads us, what feedback we get, which problems we are working on, etc.  However, to get an idea of features to come you can always check the [[Whats new]] page.&lt;br /&gt;
&lt;br /&gt;
You can also follow our blog: [http://sumolab.blogspot.com/ http://sumolab.blogspot.com/].&lt;br /&gt;
&lt;br /&gt;
=== Will there be an R/Scilab/Octave/Sage/.. version? ===&lt;br /&gt;
&lt;br /&gt;
At the start of the project we considered moving from Matlab to one of the available open source alternatives.  However, after much discussion we decided against this for several reasons, including:&lt;br /&gt;
&lt;br /&gt;
* Existing experience and know-how of the development team&lt;br /&gt;
* The widespread use of the Matlab platform in the target application domains&lt;br /&gt;
* The quality and amount of available Matlab documentation&lt;br /&gt;
* The quality and number of Matlab toolboxes&lt;br /&gt;
* Support for object orientation (inheritance, polymorphism, etc.)&lt;br /&gt;
* Many well documented interfacing options (especially the seamless integration with Java)&lt;br /&gt;
&lt;br /&gt;
Matlab, as a proprietary platform, definitely has its problems and deficiencies but the number of advanced algorithms and available toolboxes make it a very attractive platform.  Equally important is the fact that every function is properly documented, tested, and includes examples, tutorials, and in some cases GUI tools.  A lot of things would have been a lot harder and/or time consuming to implement on one of the other platforms.  Add to that the fact that many engineers (particularly in aerospace) already use Matlab quite heavily.  Thus given our situation, goals, and resources at the time, Matlab was the best choice for us.  &lt;br /&gt;
&lt;br /&gt;
The other platforms remain on our radar however, and we do look into them from time to time.  Though, with our limited resources porting to one of those platforms is not (yet) cost effective.&lt;br /&gt;
&lt;br /&gt;
=== What are collaboration options? ===&lt;br /&gt;
&lt;br /&gt;
We will gladly help out with any SUMO-Toolbox related questions or problems. However, since we are a university research group the most interesting goal for us is to work towards some joint publication (e.g., we can help with the modeling of your problem).  Alternatively, it is always nice if we could use your data/problem (fully referenced and/or anonymized if necessary of course) as an example application during a conference presentation or in a PhD thesis.&lt;br /&gt;
&lt;br /&gt;
The most interesting case is if your problem involves sample selection and modeling.  This means you have some simulation code or script to drive and you want an accurate model while minimizing the number of data points.  In this case, in order for us to optimally help you it would be easiest if we could run your simulation code (or script) locally or access it remotely.  Else its difficult to give good recommendations about what settings to use.&lt;br /&gt;
&lt;br /&gt;
If this is not possible (e.g., expensive, proprietary or secret modeling code) or if your problem does not involve sample selection, you can send us a fixed data set that is representative of your problem. Again, this may be fully anonymized and will be kept confidential of course.&lt;br /&gt;
&lt;br /&gt;
In either case (code or dataset) remember:&lt;br /&gt;
&lt;br /&gt;
* the data file should be an ASCII file in column format (each row containing one data point) (see also [[Interfacing_with_the_toolbox]])&lt;br /&gt;
* include a short description of your data:&lt;br /&gt;
** number of inputs and number of outputs&lt;br /&gt;
** the range of each input (or scaled to [-1 1] if you do not wish to disclose this)&lt;br /&gt;
** if the outputs are real or complex valued&lt;br /&gt;
** how noisy the data is or if it is completely deterministic (computer simulation) (please also see: [[FAQ#My_data_contains_noise_can_the_SUMO-Toolbox_help_me.3F]]).&lt;br /&gt;
** if possible the expected range of each output (or scaled if you do not wish to disclose this)&lt;br /&gt;
** if possible the names of each input/output + a short description of what they mean&lt;br /&gt;
** any further insight you have about the data, expected behavior, expected importance of each input, etc.&lt;br /&gt;
&lt;br /&gt;
If you have any further questions or comments related to this please [[Contact]] us.&lt;br /&gt;
&lt;br /&gt;
=== Can you help me model my problem? ===&lt;br /&gt;
&lt;br /&gt;
Please see the previous question: [[FAQ#What_are_collaboration_options.3F]]&lt;br /&gt;
&lt;br /&gt;
== Installation and Configuration ==&lt;br /&gt;
&lt;br /&gt;
=== What is the relationship between Matlab and Java? ===&lt;br /&gt;
&lt;br /&gt;
Many people do not know this, but your Matlab installation automatically includes a Java virtual machine.  By default, Matlab seamlessly integrates with Java, allowing you to create Java objects from the command line (e.g., &#039;s = java.lang.String&#039;).  It is possible to disable java support but in order to use the SUMO Toolbox it should not be.  To check if Java is enabled you can use the &#039;usejava&#039; command.&lt;br /&gt;
&lt;br /&gt;
=== What is Java, why do I need it, do I have to install it, etc. ? ===&lt;br /&gt;
&lt;br /&gt;
The short answer is: no, dont worry about it.  The long answer is: Some of the code of the SUMO Toolbox is written in [http://en.wikipedia.org/wiki/Java_(programming_language) Java], since it makes a lot more sense in many situations and is a proper programming language instead of a scripting language like Matlab.  Since Matlab automatically includes a JVM to run Java code there is nothing you need to do or worry about (see the previous FAQ entry).  Unless its not working of course, in that case see [[FAQ#When_running_the_toolbox_you_get_something_like_.27.3F.3F.3F_Undefined_variable_.22ibbt.22_or_class_.22ibbt.sumo.config.ContextConfig.setRootDirectory.22.27]].&lt;br /&gt;
&lt;br /&gt;
=== What is XML? ===&lt;br /&gt;
&lt;br /&gt;
XML stands for eXtensible Markup Language and is related to HTML (= the stuff web pages are written in).  The first thing you have to understand is that &#039;&#039;&#039;does not do anything&#039;&#039;&#039;. Honest. Many engineers are not used to it and think it is some complicated computer programming language-stuff-thingy.  This is of course not the case (we ignore some of the fancy stuff you can do with it for now).  XML is a markup language meaning, it provides some rules how you can annotate or structure existing text.&lt;br /&gt;
&lt;br /&gt;
The way SUMO uses XML is really simple and there is not much to understand (for more information on how SUMO uses XML go this page [[Config:ToolboxConfiguration#Interpreting_the_configuration_file|page]]). First some simple terminology.  Take the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;Foo attr=&amp;quot;bar&amp;quot;&amp;gt;bla bla bla&amp;lt;/Foo&amp;gt; &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here we have &#039;&#039;&#039;a tag&#039;&#039;&#039; called &#039;&#039;Foo&#039;&#039; containing text &#039;&#039;bla bla bla&#039;&#039;.  The tag Foo also has an &#039;&#039;&#039;attribute&#039;&#039;&#039; &#039;&#039;attr&#039;&#039; with value &#039;&#039;bar&#039;&#039;.  &#039;&amp;lt;Foo&amp;gt;&#039; is what we call the &#039;&#039;&#039;opening tag&#039;&#039;&#039;, and &#039;&amp;lt;/Foo&amp;gt;&#039; is the &#039;&#039;&#039;closing tag&#039;&#039;&#039;.  Each time you open a tag you must close it again.  How you name the tags or attributes it totally up to you, you choose :)&lt;br /&gt;
&lt;br /&gt;
Lets take a more interesting example.  Here we have used XML to represent information about a receipe for pancakes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;recipe category=&amp;quot;dessert&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;title&amp;gt;Pancakes&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;sumo@intec.ugent.be&amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;date&amp;gt;Wed, 14 Jun 95&amp;lt;/date&amp;gt;&lt;br /&gt;
  &amp;lt;description&amp;gt;&lt;br /&gt;
    Good old fashioned pancakes.&lt;br /&gt;
  &amp;lt;/description&amp;gt;&lt;br /&gt;
  &amp;lt;ingredients&amp;gt;&lt;br /&gt;
    &amp;lt;item&amp;gt;&lt;br /&gt;
        &amp;lt;amount&amp;gt;3&amp;lt;/amount&amp;gt;&lt;br /&gt;
        &amp;lt;type&amp;gt;eggs&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;/item&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;item&amp;gt;&lt;br /&gt;
         &amp;lt;amount&amp;gt;0.5 tablespoon&amp;lt;/amount&amp;gt;&lt;br /&gt;
         &amp;lt;type&amp;gt;salt&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;/item&amp;gt;&lt;br /&gt;
     ...&lt;br /&gt;
  &amp;lt;/ingredients&amp;gt;&lt;br /&gt;
  &amp;lt;preparation&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
  &amp;lt;/preparation&amp;gt;&lt;br /&gt;
 &amp;lt;/recipe&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So basically, you see that XML is just a way to structure, order, and group information.  Thats it!  So SUMO basically uses it to store and structure configuration options.  And this works well due to the nice hierarchical nature of XML.&lt;br /&gt;
&lt;br /&gt;
If you understand this there is nothing else to it in order to be able to understand the SUMO configuration files.  If you need more information see the tutorial here: [http://www.w3schools.com/XML/xml_whatis.asp http://www.w3schools.com/XML/xml_whatis.asp].  You can also have a look at the wikipedia page here: [http://en.wikipedia.org/wiki/XML http://en.wikipedia.org/wiki/XML]&lt;br /&gt;
&lt;br /&gt;
=== Why does SUMO use XML? ===&lt;br /&gt;
&lt;br /&gt;
XML is the de facto standard way of structuring information. This ranges from spreadsheet files (Microsoft Excel for example), to configuration data, to scientific data, ...  There are even whole database systems based solely on XML.  So basically, its an intuitive way to structure data and it is used everywhere.  This makes that there are a very large number of libraries and programming languages available that can parse, and handle XML easily.  That means less work for the programmer.  Then of course there is stuff like XSLT, XQuery, etc that makes life even easier.&lt;br /&gt;
So basically, it would not make sense for SUMO to use any other format :). For more information on how SUMO uses XML go this [[Config:ToolboxConfiguration#Interpreting_the_configuration_file|page]].&lt;br /&gt;
&lt;br /&gt;
=== I get an error that SUMO is not yet activated ===&lt;br /&gt;
&lt;br /&gt;
Make sure you installed the activation file that was mailed to you as is explained in the [[Installation]] instructions.  Also double check your system meets the [[System requirements]] and that [http://www.sumowiki.intec.ugent.be/index.php/FAQ#When_running_the_toolbox_you_get_something_like_.27.3F.3F.3F_Undefined_variable_.22ibbt.22_or_class_.22ibbt.sumo.config.ContextConfig.setRootDirectory.22.27|java java is enabled].  To fully verify that the activation file installation is correct ensure that the file ContextConfig.class is present in the directory &#039;&#039;&amp;lt;SUMO installation directory&amp;gt;/bin/java/ibbt/sumo/config&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Please note that more flexible research licenses are available if it is possible to [[FAQ#What_are_collaboration_options.3F|collaborate in any way]].&lt;br /&gt;
&lt;br /&gt;
== Upgrading ==&lt;br /&gt;
&lt;br /&gt;
=== How do I upgrade to a newer version? ===&lt;br /&gt;
&lt;br /&gt;
Delete your old &amp;lt;code&amp;gt;&amp;lt;SUMO-Toolbox-directory&amp;gt;&amp;lt;/code&amp;gt; completely and replace it by the new one.  Install the new activation file / extension pack as  before (see [[Installation]]), start Matlab and make sure the default run works.  To port your old configuration files to the new version: make a copy of default.xml (from the new version) and copy over your custom changes (from the old version) one by one.  This should prevent any weirdness if the XML structure has changed between releases.&lt;br /&gt;
&lt;br /&gt;
If you had a valid activation file for the previous version, just [[Contact]] us (giving your SUMOlab website username) and we will send you a new activation file.  Note that to update an activation file you must first unzip a copy of the toolbox to a new directory and install the activation file as if it was the very first time.  Upgrading of an activation file without performing a new toolbox install is (unfortunately) not (yet) supported.&lt;br /&gt;
&lt;br /&gt;
== Using ==&lt;br /&gt;
&lt;br /&gt;
=== I have no idea how to use the toolbox, what should I do? ===&lt;br /&gt;
&lt;br /&gt;
See: [[Running#Getting_started]]&lt;br /&gt;
&lt;br /&gt;
=== I want to try one of the different examples ===&lt;br /&gt;
&lt;br /&gt;
See [[Running#Running_different_examples]].&lt;br /&gt;
&lt;br /&gt;
=== I want to model my own problem ===&lt;br /&gt;
&lt;br /&gt;
See : [[Adding an example]].&lt;br /&gt;
&lt;br /&gt;
=== I want to contribute some data/patch/documentation/... ===&lt;br /&gt;
&lt;br /&gt;
See : [[Contributing]].&lt;br /&gt;
&lt;br /&gt;
=== How do I interface with the SUMO Toolbox? ===&lt;br /&gt;
&lt;br /&gt;
See : [[Interfacing with the toolbox]].&lt;br /&gt;
&lt;br /&gt;
=== What configuration options (model type, sample selection algorithm, ...) should I use for my problem? ===&lt;br /&gt;
&lt;br /&gt;
See [[General_guidelines]].&lt;br /&gt;
&lt;br /&gt;
=== Ok, I generated a model, what can I do with it? ===&lt;br /&gt;
&lt;br /&gt;
See: [[Using a model]].&lt;br /&gt;
&lt;br /&gt;
=== How can I share a model created by the SUMO Toolbox? ===&lt;br /&gt;
&lt;br /&gt;
See : [[Using a model#Model_portability| Model portability]].&lt;br /&gt;
&lt;br /&gt;
=== I dont like the final model generated by SUMO how do I improve it? ===&lt;br /&gt;
&lt;br /&gt;
Before you start the modeling you should really ask youself this question: &#039;&#039;What properties do I want to see in the final model?&#039;&#039;  You have to think about what for you constitutes a good model and what constitutes a poor model. Then you should rank those properties depending on how important you find them.  Examples are:&lt;br /&gt;
&lt;br /&gt;
* accuracy in the training data&lt;br /&gt;
** is it important that the error in the training data is exactly 0, or do you prefer some smoothing&lt;br /&gt;
* accuracy outside the training data&lt;br /&gt;
** this is the validation or test error, how important is proper generalization (usually this is very important)&lt;br /&gt;
* what does accuracy mean to you? a low maximum error, a low average error, both, ...&lt;br /&gt;
* smoothness&lt;br /&gt;
** should your model be perfectly smooth or is it acceptable that you have a few small ripples here and there for example&lt;br /&gt;
* are some regions of the response more important than others?&lt;br /&gt;
** for example you may want to be certain that the minima/maxima are captured very accurately but everything in between is less important&lt;br /&gt;
* are there particular special features that your model should have&lt;br /&gt;
** for example, capture underlying poles or discontinuities correctly&lt;br /&gt;
* extrapolation capability&lt;br /&gt;
* ...&lt;br /&gt;
&lt;br /&gt;
It is important to note that often these criteria may be conflicting.  The classical example is fitting noisy data: the lower your training error the higher your testing error.  A natural approach is to combine multiple criteria, see [[Multi-Objective Modeling]].&lt;br /&gt;
&lt;br /&gt;
Once you have decided on a set of requirements the question is then, can the SUMO-Toolbox produce a model that meets them? In SUMO model generation is driven by one or more [[Measures]].  So you should choose the combination of [[Measures]] that most closely match your requirements.  Of course we can not provide a Measure for every single property, but it is very straightforward to [[Add_Measure|add your own Measure]].&lt;br /&gt;
&lt;br /&gt;
Now, lets say you have chosen what you think are the best Measures but you are still not happy with the final model.  Reasons could be:&lt;br /&gt;
&lt;br /&gt;
* you need more modeling iterations or you need to build more models per iteration (see [[Running#Understanding_the_control_flow]]). This will result in a more extensive search of the model parameter space, but will take longer to run.&lt;br /&gt;
* you should switch to a different model parameter optimization algorithm (e.g., for example instead of the Pattern Search variant, try the Genetic Algorithm variant of your AdaptiveModelBuilder.)&lt;br /&gt;
* the model type you are using is not ideally suited to your data&lt;br /&gt;
* there simply is not enough data, use a larger initial design or perform more sampling iterations to get more information per dimension&lt;br /&gt;
* maybe the sample distribution is causing troubles for your model (e.g., Kriging can have problems with clustered data).  In that case it could be worthwhile to choose a different sample selection algorithm.&lt;br /&gt;
* the range of your response variable is not ideal (for example, neural networks have trouble modeling data if the range of the outputs is very very small)&lt;br /&gt;
&lt;br /&gt;
You may also refer to the following [[General_guidelines]].  Finally, of course it may be that your problem is simply a very difficult one and does not approximate well.  But, still you should at least get something satisfactory.&lt;br /&gt;
&lt;br /&gt;
If you are having these kinds of problems, please [[Reporting_problems|let us know]] and we will gladly help out.&lt;br /&gt;
&lt;br /&gt;
=== My data contains noise can the SUMO-Toolbox help me? ===&lt;br /&gt;
&lt;br /&gt;
The original purpose of the SUMO-Toolbox was for it to be used in conjunction with computer simulations.  Since these are fully deterministic you do not have to worry about noise in the data and all the problems it causes.  However, the methods in the toolbox are general fitting methods that work on noisy data as well.  So yes, the toolbox can be used with noisy data, but you will just have to be more careful about how you apply the methods and how you perform model selection.  Its only when you use the toolbox with a noisy simulation engine that a few special  options may need to be set.  In that case [[Contact]] us for more information.&lt;br /&gt;
&lt;br /&gt;
Note though, that the toolbox is not a statistical package, if you have noisy data and you need noise estimation algorithms, kernel smoothing algorithms, etc.  you should look towards other tools.&lt;br /&gt;
&lt;br /&gt;
=== What is the difference between a ModelBuilder and a ModelFactory? ===&lt;br /&gt;
&lt;br /&gt;
See [[Add Model Type]].&lt;br /&gt;
&lt;br /&gt;
=== Why are the Neural Networks so slow? ===&lt;br /&gt;
&lt;br /&gt;
The ANN models are an extremely powerful model type that give very good results in many problems.  However, they are quite slow to use.  There are some things you can do:&lt;br /&gt;
&lt;br /&gt;
* use trainlm or trainscg instead of the default training function trainbr.  trainbr gives very good, smooth results but is slower to use.  If results with trainlm are not good enough, try using msereg as a performance function.&lt;br /&gt;
* try setting the training goal (= the SSE to reach during training) to a small positive number (e.g., 1e-5) instead of 0.&lt;br /&gt;
* check that the output range of your problem is not very small.  If your response data lies between 10e-5 and 10e-9 for example it will be very hard for the neural net to learn it.  In that case rescale your data to a more sane range.&lt;br /&gt;
* switch from ANN to one of the other neural network modelers: fanngenetic or nanngenetic. These are a lot faster than the default backend based on the [http://www.mathworks.com/products/neuralnet/ Matlab Neural Network Toolbox].  However, the accuracy is usually not as good.&lt;br /&gt;
* If you are using [[Measures#CrossValidation| CrossValidation]] try to switch to a different measure since CrossValidation is very expensive to use. CrossValidation is used by default if you have not defined a [[Measures| measure]] yourself.  When using one of the neural network model types, try to use a different measure if you can.  For example, our tests have shown that minimizing the sum of [[Measures#SampleError| SampleError]] and [[Measures#LRMMeasure| LRMMeasure]] can give equal or even better results than CrossValidation, while being much cheaper (see [[Multi-Objective Modeling]] for how to combine multiple measures).  See also the comments in &amp;lt;code&amp;gt;default.xml&amp;lt;/code&amp;gt; for examples.&lt;br /&gt;
* Finally, as with any model type things will slow down if you have many dimensions or very large amounts of data.  If that is the case, try some dimensionality reduction or subsampling techniques.&lt;br /&gt;
&lt;br /&gt;
See also [[FAQ#How_can_I_make_the_toolbox_run_faster.3F]]&lt;br /&gt;
&lt;br /&gt;
=== How can I make the toolbox run faster? ===&lt;br /&gt;
&lt;br /&gt;
There are a number of things you can do to speed things up.  These are listed below.  Remember though that the main reason the toolbox may seem to be slow is due to the many models being built as part of the hyperparameter optimization.  Please make sure you fully understand the [[Running#Understanding_the_control_flow|control flow described here]] before trying more advanced options.&lt;br /&gt;
&lt;br /&gt;
* First of all check that your virus scanner is not interfering with Matlab. If McAfee or any other program wants to scan every file SUMO generates this really slows things down and your computer becomes unusable.&lt;br /&gt;
&lt;br /&gt;
* Turn off the plotting of models in [[Config:ContextConfig#PlotOptions| ContextConfig]], you can always generate plots from the saved mat files&lt;br /&gt;
&lt;br /&gt;
* This is an important one.  For most model builders there is an option &amp;quot;maxFunEals&amp;quot;, &amp;quot;maxIterations&amp;quot;, or equivalent.  Change this value to change the maximum number of models built between 2 sampling iterations.  The higher this number, the slower, but the better the models &#039;&#039;may&#039;&#039; be.  Equivalently, for the Genetic model builders reduce the population size and the number of generations.&lt;br /&gt;
&lt;br /&gt;
* If you are using [[Measures#CrossValidation]] see if you can avoid it and use one of the other measures or a combination of measures (see [[Multi-Objective Modeling]]&lt;br /&gt;
&lt;br /&gt;
* If you are using a very dense [[Measures#ValidationSet]] as your Measure, this means that every single model will be evaluated on that data set.  For some models like RBF, Kriging, SVM, this can slow things down.&lt;br /&gt;
&lt;br /&gt;
* Disable some, or even all of the [[Config:ContextConfig#Profiling| profilers]] or disable the output handlers that draw charts.  For example, you might use the following configuration for the profilers:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Profiling&amp;gt;&lt;br /&gt;
	&amp;lt;Profiler name=&amp;quot;.*share.*|.*ensemble.*|.*Level.*&amp;quot; enabled=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;Output type=&amp;quot;toImage&amp;quot;/&amp;gt;&lt;br /&gt;
		&amp;lt;Output type=&amp;quot;toFile&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;/Profiler&amp;gt;&lt;br /&gt;
			&lt;br /&gt;
	&amp;lt;Profiler name=&amp;quot;.*&amp;quot; enabled=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;Output type=&amp;quot;toFile&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;/Profiler&amp;gt;&lt;br /&gt;
&amp;lt;/Profiling&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;.*&amp;quot; means match any one or more characters ([http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html see here for the full list of supported wildcards]).  Thus in this example all the profilers that have &amp;quot;share&amp;quot;, &amp;quot;ensemble&amp;quot;, or &amp;quot;Level&amp;quot; in their name shoud be enabled and should be saved as a text file (toFile) AND as an image file (toImage).  All the other profilers should be saved just to file. The idea is to only save to image what you want as an image since image generation is expensive.  If you do this or switch off image generation completely you will see everything run much faster.&lt;br /&gt;
&lt;br /&gt;
* Decrease the logging granularity, a log level of FINE (the default is FINEST or ALL) is more then granular enough.  Setting it to FINE, INFO, or even WARNING should speed things up.&lt;br /&gt;
&lt;br /&gt;
* If you have a multi-core/multi-cpu machine:&lt;br /&gt;
** if you have the Matlab Parallel Computing Toolbox, try setting the parallelMode option to true in [[Config:ContextConfig]].  Now all model training occurs in parallel.  This may give unexpected errors in some cases so beware when using.&lt;br /&gt;
** if you are using a native executable or script as the sample evaluator set the threadCount variable in [[Config:SampleEvaluator#LocalSampleEvaluator| LocalSampleEvaluator]] equal to the number of cores/CPUs (only do this if it is ok to start multiple instances of your simulation script in parallel!)&lt;br /&gt;
&lt;br /&gt;
* Dont use the Min-Max measure, it can slow things down. See also [[FAQ#How_do_I_force_the_output_of_the_model_to_lie_in_a_certain_range]]&lt;br /&gt;
&lt;br /&gt;
* If you are using neural networks see [[FAQ#Why_are_the_Neural_Networks_so_slow.3F]]&lt;br /&gt;
&lt;br /&gt;
* If you are having problems with very slow or seemingly hanging runs:&lt;br /&gt;
** Do a run inside the [http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/matlab_env/f9-17018.html&amp;amp;http://www.google.be/search?client=firefox-a&amp;amp;rls=org.mozilla%3Aen-US%3Aofficial&amp;amp;channel=s&amp;amp;hl=nl&amp;amp;q=matlab+profiler&amp;amp;meta=&amp;amp;btnG=Google+zoeken Matlab profiler] and see where most time is spent.&lt;br /&gt;
&lt;br /&gt;
** Monitor CPU and physical/virtual memory usage while the SUMO toolbox is running and see if you notice anything strange.  &lt;br /&gt;
&lt;br /&gt;
* Also note that by default Matlab only allocates about 117 MB memory space for the Java Virtual Machine. If you would like to increase this limit (which you should) please follow the instructions [http://www.mathworks.com/support/solutions/data/1-18I2C.html?solution=1-18I2C here]. See also the general memory instructions [http://www.mathworks.com/support/tech-notes/1100/1106.html here].&lt;br /&gt;
&lt;br /&gt;
To check if your SUMO run has hanged, monitor your log file (with the level set at least to FINE).  If you see no changes for about 30 minutes the toolbox will probably have stalled.  [[Reporting problems| report the problems here]].&lt;br /&gt;
&lt;br /&gt;
Such problems are hard to identify and fix so it is best to work towards a reproducible test case if you think you found a performance or scalability issue.&lt;br /&gt;
&lt;br /&gt;
=== How do I build models with more than one output ===&lt;br /&gt;
&lt;br /&gt;
Sometimes you have multiple responses that you want to model at once.  See [[Running#Models_with_multiple_outputs]]&lt;br /&gt;
&lt;br /&gt;
=== How do I turn off adaptive sampling (run the toolbox for a fixed set of samples)? ===&lt;br /&gt;
&lt;br /&gt;
See : [[Adaptive Modeling Mode]].&lt;br /&gt;
&lt;br /&gt;
=== How do I change the error function (relative error, RMSE, ...)? ===&lt;br /&gt;
&lt;br /&gt;
The [[Measures| &amp;lt;Measure&amp;gt;]] tag specifies the algorithm to use to assign models a score, e.g., [[Measures#CrossValidation| CrossValidation]].  It is also possible to specify which &#039;&#039;&#039;error function&#039;&#039;&#039; to  use, in the measure.  The default error function is &#039;&amp;lt;code&amp;gt;rootRelativeSquareError&amp;lt;/code&amp;gt;&#039;.&lt;br /&gt;
&lt;br /&gt;
Say you want to use [[Measures#CrossValidation| CrossValidation]] with the maximum absolute error, then you would put:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Measure type=&amp;quot;CrossValidation&amp;quot; target=&amp;quot;0.001&amp;quot; errorFcn=&amp;quot;maxAbsoluteError&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On the other hand, if you wanted to use the [[Measures#ValidationSet| ValidationSet]] measure with a relative root-mean-square error you would put:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Measure type=&amp;quot;ValidationSet&amp;quot; target=&amp;quot;0.001&amp;quot; errorFcn=&amp;quot;relativeRms&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default error function is &#039;&amp;lt;code&amp;gt;rootRelativeSquareError&amp;lt;/code&amp;gt;&#039;.  These error functions can be found in the &amp;lt;code&amp;gt;src/matlab/tools/errorFunctions&amp;lt;/code&amp;gt; directory.  You are free to modify them and add your own.  Remember that the choice of error function is very important! Make sure you think well about it.  Also see [[Multi-Objective Modeling]].&lt;br /&gt;
&lt;br /&gt;
=== How do I enable more profilers? ===&lt;br /&gt;
&lt;br /&gt;
Go to the [[Config:ContextConfig#Profiling| &amp;lt;Profiling&amp;gt;]] tag and put &amp;lt;code&amp;gt;&amp;quot;&amp;lt;nowiki&amp;gt;.*&amp;lt;/nowiki&amp;gt;&amp;quot;&amp;lt;/code&amp;gt; as the regular expression.  See also the next question.&lt;br /&gt;
&lt;br /&gt;
=== What regular expressions can I use to filter profilers? ===&lt;br /&gt;
&lt;br /&gt;
See the syntax [http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html here].&lt;br /&gt;
&lt;br /&gt;
=== How can I ensure deterministic results? ===&lt;br /&gt;
&lt;br /&gt;
See : [[Random state]].&lt;br /&gt;
&lt;br /&gt;
=== How do I get a simple closed-form model (symbolic expression)? ===&lt;br /&gt;
&lt;br /&gt;
See : [[Using a model]].&lt;br /&gt;
&lt;br /&gt;
=== How do I enable the Heterogenous evolution to automatically select the best model type? ===&lt;br /&gt;
&lt;br /&gt;
Simply use the [[Config:AdaptiveModelBuilder#heterogenetic| heterogenetic modelbuilder]] as you would any other.&lt;br /&gt;
&lt;br /&gt;
=== What is the combineOutputs option? ===&lt;br /&gt;
&lt;br /&gt;
See [[Running#Models_with_multiple_outputs]]&lt;br /&gt;
&lt;br /&gt;
=== What error function should I use? ===&lt;br /&gt;
&lt;br /&gt;
The default error function is the Root Relative Square Error (RRSE).  On the other hand meanRelativeError may be more intuitive but in that case you have to be careful if you have function values close to zero since in that case the relative error explodes or even gives infinity.  You could also use one of the combined relative error functions (contain a +1 in the denominator to account for small values) but then you get something between a relative and absolute error (=&amp;gt; hard to interpret).&lt;br /&gt;
&lt;br /&gt;
So to be sure an absolute error seems the safest bet (like the RMSE), however in that case you have to come up with sensible accuracy targets and realize that you will build models that try to fit the regions of high absolute value better than the low ones.&lt;br /&gt;
&lt;br /&gt;
Picking an error function is a very tricky business and many people do not realize this.  Which one is best for you and what targets you use ultimately depends on your application and on what kind of model you want.  There is no general answer.&lt;br /&gt;
&lt;br /&gt;
A recommended read is [http://www.springerlink.com/content/24104526223221u3/ is this paper].  See also the page on [[Multi-Objective Modeling]].&lt;br /&gt;
&lt;br /&gt;
=== I just want to generate an initial design (no sampling, no modeling) ===&lt;br /&gt;
&lt;br /&gt;
Do a regular SUMO run, except set the &#039;maxModelingIterations&#039; in the SUMO tag to 0.  The resulting run will only generate (and evaluate) the initial design and save it to samples.txt in the output directory.&lt;br /&gt;
&lt;br /&gt;
=== How do I start a run with the samples of of a previous run, or with a custom initial design? ===&lt;br /&gt;
&lt;br /&gt;
Use a Dataset design component, for example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;InitialDesign type=&amp;quot;DatasetDesign&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Option key=&amp;quot;file&amp;quot; value=&amp;quot;/path/to/the/file/containing/the/points.txt&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;/InitialDesign&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The points of a previous run can be found in the samples.txt file in the output directory of the run you want to continue.&lt;br /&gt;
&lt;br /&gt;
As a sidenote, remark you can start the toolbox with *data points* of a previous run, but not with the *models* of a previous run.&lt;br /&gt;
&lt;br /&gt;
=== What is a level plot? ===&lt;br /&gt;
&lt;br /&gt;
A level plot is a plot that shows how the error histogram changes as the best model improves. An example is:&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Image:levelplot.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Level plots only work if you have a separate dataset (test set) that the model can be checked against.  See the comments in default.xml for how to enable level plots.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== How do I force the output of the model to lie in a certain range ===&lt;br /&gt;
&lt;br /&gt;
See [[Measures#MinMax]].&lt;br /&gt;
&lt;br /&gt;
=== My problem is high dimensional and has a lot of input parameters (more than 10).  Can I use SUMO? ===&lt;br /&gt;
&lt;br /&gt;
That depends.  Remember that the main focus of SUMO is to generate accurate &#039;global&#039; models. If you want to do sampling the practical dimensionality is limited to around 6-8 (though it depends on the problem and how cheap the simulations are!).  Since the more dimensions the more space you need to fill.  At that point you need to see if you can extend the models with domain specific knowledge (to improve performance) or apply a dimensionality reduction method ([[FAQ#Can_the_toolbox_tell_me_which_are_the_most_important_inputs_.28.3D_variable_selection.29.3F|see the next question]]).  On the other hand, if you don&#039;t need to do sample selection but you have a fixed dataset which you want to model.  Then the performance on high dimensional data just depends on the model type.  For examples SVM type models are independent of the dimension and thus can always be applied.  Though things like feature selection are always recommended.&lt;br /&gt;
&lt;br /&gt;
=== Can the toolbox tell me which are the most important inputs (= variable selection)? ===&lt;br /&gt;
&lt;br /&gt;
When tackling high dimensional problems a crucial question is &amp;quot;Are all my input parameters relevant?&amp;quot;.  Normally domain knowledge would answer this question but this is not always straightforward. In those cases a whole set of algorithms exist for doing dimensionality reduction (= feature selection).  Support for some of these algorithms may eventually make it into the toolbox but are not currently implemented.  That is a whole PhD thesis on its own.  However, if a model type provides functions for input relevance determination the toolbox can leverage this.  For example, the LS-SVM model available in the toolbox supports Automatic Relevance Determination (ARD).  This means that if you use the SUMO Toolbox to generate an LS-SVM model, you can call the function &#039;&#039;ARD()&#039;&#039; on the model and it will give you a list of the inputs it thinks are most important.&lt;br /&gt;
&lt;br /&gt;
=== Should I use a Matlab script or a shell script for interfacing with my simulation code? ===&lt;br /&gt;
&lt;br /&gt;
When you want to link SUMO with an external simulation engine (ADS Momentum, SPECTRE, FEBIO, SWAT, ...) you need a [http://en.wikipedia.org/wiki/Shell_script shell script] (or executable) that can take the requested points from SUMO, setup the simulation engine (e.g., set necessary input files), calls the simulator for all the requested points, reads the output (e.g., one or more output files), and returns the results to SUMO (see [[Interfacing with the toolbox]]).&lt;br /&gt;
&lt;br /&gt;
Which one you choose (matlab script + [[Config:SampleEvaluator#matlab|Matlab Sample Evaluator]], or shell script/executable with [[Config:SampleEvaluator#local|Local Sample Evaluator]] is basically a matter of preference, take whatever is easiest for you.&lt;br /&gt;
&lt;br /&gt;
HOWEVER, there is one important consideration: Matlab does not support threads so this means that if you use a matlab script to interface with the simulation engine, simulations and modeling will happen sequentially, NOT in parallel.  This means the modeling code will sit around waiting, doing nothing, until the simulation(s) have finished.  If your simulation code takes a long time to run this is not very efficient.&lt;br /&gt;
&lt;br /&gt;
On the other hand, using a shell script/executable, does allow the modeling and simulation to occur in parallel (at least if you wrote your interface script in such a way that it can be run multiple times in parallel, i.e., no shared global directories or variables that can cause [http://en.wikipedia.org/wiki/Race_condition race conditions]).&lt;br /&gt;
&lt;br /&gt;
As a sidenote, note that if you already put work into a Matlab script, it is still possible to use a shell script, by writing a shell script that starts Matlab (using -nodisplay or -nojvm options), executes your script (using the -r option), and exits Matlab again.  Of course it is not very elegant and adds some overhead but depending on your situation it may be worth it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== How can I look at the internal structure of a SUMO model ===&lt;br /&gt;
&lt;br /&gt;
See [[Using_a_model#Available_methods]].&lt;br /&gt;
&lt;br /&gt;
=== Is there any design documentation available? ===&lt;br /&gt;
&lt;br /&gt;
An in depth overview of the rationale and philosophy, including a treatment of the software architecture underlying the SUMO Toolbox is available in the form of a PhD dissertation.  A copy of this dissertation [http://www.sumo.intec.ugent.be/?q=system/files/2010_04_PhD_DirkGorissen.pdf is available here].&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
=== I have a problem and I want to report it ===&lt;br /&gt;
&lt;br /&gt;
See : [[Reporting problems]].&lt;br /&gt;
&lt;br /&gt;
===I am getting a java out of memory error, what happened?===&lt;br /&gt;
Datasets are loaded through java. This means that the java heap space is used for storing the data. If you try to load a huge dataset (&amp;gt; 50MB), you might experience problems with the maximum heap size. You can solve this by raising the heap size as described on the following webpage:&lt;br /&gt;
[http://www.mathworks.com/support/solutions/data/1-18I2C.html]&lt;br /&gt;
&lt;br /&gt;
=== I sometimes get flat models when using rational functions ===&lt;br /&gt;
&lt;br /&gt;
First make sure the model is indeed flat, and does not just appear so on the plot. You can verify this by looking at the output axis range and making sure it is within reasonable bounds. When there are poles in the model, the axis range is sometimes stretched to make it possible to plot the high values around the pole, causing the rest of the model to appear flat. If the model contains poles, refer to the next question for the solution.&lt;br /&gt;
&lt;br /&gt;
The [[Config:AdaptiveModelBuilder#rational| RationalModel]] tries to do a least squares fit, based on which monomials are allowed in numerator and denominator. We have experienced that some models just find a flat model as the best least squares fit. There are two causes for this:&lt;br /&gt;
&lt;br /&gt;
* The number of sample points is few, and the model parameters (as explained [[Model types explained#PolynomialModel|here]]) force the model to use only a very small set of degrees of freedom.  The solution in this case is to increase the minimum percentage bound in the RationalFactory section of your configuration file: change the &amp;lt;code&amp;gt;&amp;quot;percentBounds&amp;quot;&amp;lt;/code&amp;gt; option to &amp;lt;code&amp;gt;&amp;quot;60,100&amp;quot;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;quot;80,100&amp;quot;&amp;lt;/code&amp;gt;,  or even &amp;lt;code&amp;gt;&amp;quot;100,100&amp;quot;&amp;lt;/code&amp;gt;.  A setting of &amp;lt;code&amp;gt;&amp;quot;100,100&amp;quot;&amp;lt;/code&amp;gt; will force the polynomial models to always exactly interpolate.  However, note that this does not scale very well with the number of samples (to counter this you can set &amp;lt;code&amp;gt;&amp;quot;maxDegrees&amp;quot;&amp;lt;/code&amp;gt;). If, after increasing the &amp;lt;code&amp;gt;&amp;quot;percentBounds&amp;quot;&amp;lt;/code&amp;gt; you still get weird, spiky, models you simply need more samples or you should switch to a different model type.&lt;br /&gt;
* Another possibility is that given a set of monomial degrees, the flat function is just the best possible least squares fit. In that case you simply need to wait for more samples.&lt;br /&gt;
* The measure you are using is not accurately estimating the true error, try a different measure or error function.  Note that a maximum relative error is dangerous to use since a the 0-function (= a flat model) has a lower maximum relative error than a function which overshoots the true behavior in some places but is otherwise correct.&lt;br /&gt;
&lt;br /&gt;
=== When using rational functions I sometimes get &#039;spikes&#039; (poles) in my model ===&lt;br /&gt;
&lt;br /&gt;
When the denominator polynomial of a rational model has zeros inside the domain, the model will tend to infinity near these points. In most cases these models will only be recognized as being `the best&#039; for a short period of time. As more samples get selected these models get replaced by better ones and the spikes should disappear.&lt;br /&gt;
&lt;br /&gt;
So, it is possible that a rational model with &#039;spikes&#039; (caused by poles inside the domain) will be selected as best model. This may or may not be an issue, depending on what you want to use the model for. If it doesn&#039;t matter that the model is very inaccurate at one particular, small spot (near the pole), you can use the model with the pole and it should perform properly.&lt;br /&gt;
&lt;br /&gt;
However, if the model should have a reasonable error on the entire domain, several methods are available to reduce the chance of getting poles or remove the possibility altogether. The possible solutions are:&lt;br /&gt;
&lt;br /&gt;
* Simply wait for more data, usually spikes disappear (but not always).&lt;br /&gt;
* Lower the maximum of the &amp;lt;code&amp;gt;&amp;quot;percentBounds&amp;quot;&amp;lt;/code&amp;gt; option in the RationalFactory section of your configuration file.  For example, say you have 500 data points and if the maximum of the &amp;lt;code&amp;gt;&amp;quot;percentBounds&amp;quot;&amp;lt;/code&amp;gt; option is set to 100 percent it means the degrees of the polynomials in the rational function can go up to 500.  If you set the maximum of the &amp;lt;code&amp;gt;&amp;quot;percentBounds&amp;quot;&amp;lt;/code&amp;gt; option to 10, on the other hand, the maximum degree is set at 50 (= 10 percent of 500).  You can also use the &amp;lt;code&amp;gt;&amp;quot;maxDegrees&amp;quot;&amp;lt;/code&amp;gt; option to set an absolute bound.&lt;br /&gt;
* If you roughly know the output range your data should have, an easy way to eliminate poles is to use the [[Measures#MinMax| MinMax]] [[Measures| Measure]] together with your current measure ([[Measures#CrossValidation| CrossValidation]] by default).  This will cause models whose response falls outside the min-max bounds to be penalized extra, thus spikes should disappear.&lt;br /&gt;
* Use a different model type (RBF, ANN, SVM,...), as spikes are a typical problem of rational functions.&lt;br /&gt;
* Increase the population size if using the genetic version&lt;br /&gt;
* Try using the [[SampleSelector#RationalPoleSuppressionSampleSelector| RationalPoleSuppressionSampleSelector]], it was designed to get rid of this problem more quickly, but it only selects one sample at the time.&lt;br /&gt;
&lt;br /&gt;
However, these solutions may not still not suffice in some cases.  The underlying reason is that the order selection algorithm contains quite a lot of randomness, making it prone to over-fitting.  This issue is being worked on but will take some time.  Automatic order selection is not an easy problem&lt;br /&gt;
&lt;br /&gt;
=== There is no noise in my data yet the rational functions don&#039;t interpolate ===&lt;br /&gt;
&lt;br /&gt;
[[FAQ#I sometimes get flat models when using rational functions |see this question]].&lt;br /&gt;
&lt;br /&gt;
=== When loading a model from disk I get &amp;quot;Warning: Class &#039;:all:&#039; is an unknown object class.  Object &#039;model&#039; of this class has been converted to a structure.&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
You are trying to load a model file without the SUMO Toolbox in your Matlab path.  Make sure the toolbox is in your Matlab path. &lt;br /&gt;
&lt;br /&gt;
In short: Start Matlab, run &amp;lt;code&amp;gt;&amp;lt;SUMO-Toolbox-directory&amp;gt;/startup.m&amp;lt;/code&amp;gt; (to ensure the toolbox is in your path) and then try to load your model.&lt;br /&gt;
&lt;br /&gt;
=== When running the SUMO Toolbox you get an error like &amp;quot;No component with id &#039;annpso&#039; of type &#039;adaptive model builder&#039; found in config file.&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
This means you have specified to use a component with a certain id (in this case an AdaptiveModelBuilder component with id &#039;annpso&#039;) but a component with that id does not exist further down in the configuration file (in this particular case &#039;annpso&#039; does not exist but &#039;anngenetic&#039; or &#039;ann&#039; does, as a quick search through the configuration file will show).  So make sure you only declare components which have a definition lower down.  So see which components are available, simply scroll down the configuration file and see which id&#039;s are specified.  Please also refer to the [[Toolbox configuration#Declarations and Definitions | Declarations and Definitions]] page.&lt;br /&gt;
&lt;br /&gt;
=== When using NANN models I sometimes get &amp;quot;Runtime error in matrix library, Choldc failed. Matrix not positive definite&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
This is a problem in the mex implementation of the [http://www.iau.dtu.dk/research/control/nnsysid.html NNSYSID] toolbox.  Simply delete the mex files, the Matlab implementation will be used and this will not cause any problems.&lt;br /&gt;
&lt;br /&gt;
=== When using FANN models I sometimes get &amp;quot;Invalid MEX-file createFann.mexa64, libfann.so.2: cannot open shared object file: No such file or directory.&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
This means Matlab cannot find the [http://leenissen.dk/fann/ FANN] library itself to link to dynamically.  Make sure the FANN libraries (stored in src/matlab/contrib/fann/src/.libs/) are in your library path, e.g., on unix systems, make sure they are included in LD_LIBRARY_PATH.&lt;br /&gt;
&lt;br /&gt;
=== Undeﬁned function or method ’createFann’ for input arguments of type ’double’. ===&lt;br /&gt;
&lt;br /&gt;
See [[FAQ#When_using_FANN_models_I_sometimes_get_.22Invalid_MEX-file_createFann.mexa64.2C_libfann.so.2:_cannot_open_shared_object_file:_No_such_file_or_directory..22]]&lt;br /&gt;
&lt;br /&gt;
=== When trying to use SVM models I get &#039;Error during fitness evaluation: Error using ==&amp;gt; svmtrain at 170, Group must be a vector&#039; ===&lt;br /&gt;
&lt;br /&gt;
You forgot to build the SVM mex files for your platform.  For windows they are pre-compiled for you, on other systems you have to compile them yourself with the makefile.&lt;br /&gt;
&lt;br /&gt;
=== When running the toolbox you get something like &#039;??? Undefined variable &amp;quot;ibbt&amp;quot; or class &amp;quot;ibbt.sumo.config.ContextConfig.setRootDirectory&amp;quot;&#039; ===&lt;br /&gt;
&lt;br /&gt;
First see [[FAQ#What_is_the_relationship_between_Matlab_and_Java.3F | this FAQ entry]].&lt;br /&gt;
&lt;br /&gt;
This means Matlab cannot find the needed Java classes.  This typically means that you forgot to run &#039;startup&#039; (to set the path correctly) before running the toolbox (using &#039;go&#039;).  So make sure you always run &#039;startup&#039; before running &#039;go&#039; and that both commands are always executed in the toolbox root directory.&lt;br /&gt;
&lt;br /&gt;
If you did run &#039;startup&#039; correctly and you are still getting an error, check that Java is properly enabled:&lt;br /&gt;
&lt;br /&gt;
# typing &#039;usejava jvm&#039; should return 1 &lt;br /&gt;
# typing &#039;s = java.lang.String&#039;, this should &#039;&#039;not&#039;&#039; give an error&lt;br /&gt;
# typing &#039;version(&#039;-java&#039;)&#039; should return at least version 1.5.0&lt;br /&gt;
&lt;br /&gt;
If (1) returns 0, then the jvm of your Matlab installation is not enabled.  Check your Matlab installation or startup parameters (did you start Matlab with -nojvm?)&lt;br /&gt;
If (2) fails but (1) is ok, there is a very weird problem, check the Matlab documentation.&lt;br /&gt;
If (3) returns a version before 1.5.0 you will have to upgrade Matlab to a newer version or force Matlab to use a custom, newer, jvm (See the Matlab docs for how to do this).&lt;br /&gt;
&lt;br /&gt;
=== You get errors related to &#039;&#039;gaoptimset&#039;&#039;,&#039;&#039;psoptimset&#039;&#039;,&#039;&#039;saoptimset&#039;&#039;,&#039;&#039;newff&#039;&#039; not being found or unknown ===&lt;br /&gt;
&lt;br /&gt;
You are trying to use a component of the SUMO toolbox that requires a Matlab toolbox that you do not have.  See the [[System requirements]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== After upgrading I get all kinds of weird errors or warnings when I run my XML files ===&lt;br /&gt;
&lt;br /&gt;
See [[FAQ#How_do_I_upgrade_to_a_newer_version.3F]]&lt;br /&gt;
&lt;br /&gt;
=== I get a warning about duplicate samples being selected, why is this? ===&lt;br /&gt;
&lt;br /&gt;
Sometimes, in special circumstances, multiple sample selectors may select the same sample at the same time. Even though in most cases this is detected and avoided, it can still happen when multiple outputs are modelled in one run, and each output is sampled by a different sample selector. These sample selectors may then accidentally choose the same new sample location.&lt;br /&gt;
&lt;br /&gt;
=== I sometimes see the error of the best model go up, shouldn&#039;t it decrease monotonically? ===&lt;br /&gt;
&lt;br /&gt;
There is no short answer here, it depends on the situation.  Below &#039;single objective&#039; refers to the case where during the hyperparameter optimization (= the modeling iteration) combineOutputs=false, and there is only a single measure set to &#039;on&#039;.  The other cases are classified as &#039;multi objective&#039;.  See also [[Multi-Objective Modeling]].&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Sampling off&#039;&#039;&#039;&lt;br /&gt;
## &#039;&#039;Single objective&#039;&#039;: the error should always decrease monotonically, you should never see it rise. If it does [[reporting problems|report it as a bug]]&lt;br /&gt;
## &#039;&#039;Multi objective&#039;&#039;: There is a very small chance the error can temporarily decrease but it should be safe to ignore.  In this case it is best to use a multi objective enabled modeling algorithm&lt;br /&gt;
# &#039;&#039;&#039;Sampling on&#039;&#039;&#039;&lt;br /&gt;
## &#039;&#039;Single objective&#039;&#039;: inside each modeling iteration the error should always monotonically decrease.  At each sampling iteration the best models are updated (to reflect the new data), thus there the best model score may increase, this is normal behavior(*).  It is possible that the error increases for a short while, but as more samples come in it should decrease again.  If this does not happen you are using a poor measure or poor hyperparameter optimization algorithm, or there is a problem with the modeling technique itself (e.g., clustering in the datapoints is causing numerical problems).&lt;br /&gt;
## &#039;&#039;Multi objective&#039;&#039;: Combination of 1.2 and 2.1.&lt;br /&gt;
&lt;br /&gt;
(*) This is normal if you are using a measure like cross validation that is less reliable on little data than on more data.  However, in some cases you may wish to override this behavior if you are using a measure that is independent of the number of samples the model is trained with (e.g., a dense, external validation set).  In this case you can force a monotonic decrease by setting the &#039;keepOldModels&#039; option in the SUMO tag to true.  Use with caution!&lt;br /&gt;
&lt;br /&gt;
=== At the end of a run I get Undefined variable &amp;quot;ibbt&amp;quot; or class &amp;quot;ibbt.sumo.util.JpegImagesToMovie.createMovie&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
This is normal, the warning printed out before the error explains why:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;[WARNING] jmf.jar not found in the java classpath, movie creation may not work! Did you install the SUMO extension pack? Alternatively you can install the java media framwork from java.sun.com&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
By default, at the end of a run, the toolbox will try to generate a movie of all the intermediate model plots.  To do this it requires the extension pack to be installed (you can download it from the SUMO lab website).  So install the extension pack and you will no longer get the error.  Alternatively you can simply set the &amp;quot;createMovie&amp;quot; option in the &amp;lt;SUMO&amp;gt; tag to &amp;quot;false&amp;quot;.&lt;br /&gt;
So note that there is nothing to worry about, everything has run correctly, it is just the movie creation that is failing.&lt;br /&gt;
&lt;br /&gt;
=== On startup I get the error &amp;quot;java.io.IOException: Couldn&#039;t get lock for output/SUMO-Toolbox.%g.%u.log&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
This error means that SUMO is unable to create the log file.  Check the output directory exists and has the correct permissions.  If  your output directory is on a shared (network) drive this could also cause problems.  Also make sure you are running the toolbox (calling &#039;go&#039;) from the toolbox root directory, and not in some toolbox sub directory! This is very important.&lt;br /&gt;
&lt;br /&gt;
If you still have problems you can override the default logfile name and location as follows:&lt;br /&gt;
&lt;br /&gt;
In the &amp;lt;FileHandler&amp;gt; tag inside the &amp;lt;Logging&amp;gt; tag add the following option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
&amp;lt;Option key=&amp;quot;Pattern&amp;quot; value=&amp;quot;My_SUMO_Log_file.log&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This means that from now on the sumo log file will be saved as the file &amp;quot;My_SUMO_Log_file.log&amp;quot; in the SUMO root directory.  You can use any path you like.&lt;br /&gt;
For more information about this option see [http://java.sun.com/j2se/1.4.2/docs/api/java/util/logging/FileHandler.html the FileHandler Javadoc].&lt;br /&gt;
&lt;br /&gt;
=== The Toolbox crashes with &amp;quot;Too many open files&amp;quot; what should I do? ===&lt;br /&gt;
&lt;br /&gt;
This is a known bug, see [[Known_bugs#Version_6.1]].&lt;br /&gt;
&lt;br /&gt;
If this does not fix your problem then do the following:&lt;br /&gt;
&lt;br /&gt;
On Windows try increasing the limit in windows as dictated by the error message.  Also, when you get the error, use the fopen(&amp;quot;all&amp;quot;) command to see which files are open and send us the list of filenames.  Then we can maybe further help you debug the problem.  Even better would be to use the Process Explorer utility [http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx available here]. When you get the error, dont shut down Matlab but start Process explorer and see which SUMO-Toolbox related files are open.  If you then [[Reporting_problems|let us know]] we can further debug the problem.&lt;br /&gt;
&lt;br /&gt;
On Linux again don&#039;t shut down Matlab but:&lt;br /&gt;
&lt;br /&gt;
* open a new terminal window&lt;br /&gt;
* type:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
lsof &amp;gt; openFiles.txt&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
* Then [[Contact|send us]] the following information:&lt;br /&gt;
** the file openFiles.txt &lt;br /&gt;
** the exact Linux distribution you are using (Red Hat 10, CentOS 5, SUSE 11, etc).&lt;br /&gt;
** the output of&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
uname -a ; df -T ; mount&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As a temporary workaround you can try increasing the maximum number of open files ([http://www.linuxforums.org/forum/redhat-fedora-linux-help/64716-where-chnage-file-max-permanently.html see for example here]).  We are currently debugging this issue.&lt;br /&gt;
&lt;br /&gt;
In general: to be safe it is always best to do a SUMO run from a clean Matlab startup, especially if the run is important or may take a long time.&lt;br /&gt;
&lt;br /&gt;
=== When using the LS-SVM models I get lots of warnings: &amp;quot;make sure lssvmFILE.x (lssvmFILE.exe) is in the current directory, change now to MATLAB implementation...&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
The LS-SVMs have a C implementation and a Matlab implementation.  If you dont have the compiled mex files it will use the matlab implementation and give a warning.  But everything will work properly.  To get rid of the warnings, compile the mex files [[Installation#Windows|as described here]], this can be done very easily.  Or simply comment out the lines that produce the output in the lssvmlab directory in src/matlab/contrib.&lt;br /&gt;
&lt;br /&gt;
=== I get an error &amp;quot;Undefined function or method &#039;trainlssvm&#039; for input arguments of type &#039;cell&#039;&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
You most likely forgot to [[Installation#Extension_pack|install the extension pack]].&lt;br /&gt;
&lt;br /&gt;
=== When running the SUMO-Toolbox under Linux, the [http://en.wikipedia.org/wiki/X_Window_System X server] suddenly restarts and I am logged out of my session ===&lt;br /&gt;
&lt;br /&gt;
Note that in Linux there is an explicit difference between the [http://en.wikipedia.org/wiki/Linux_kernel kernel] and the [http://en.wikipedia.org/wiki/X_Window_System X display server].  If the kernel crashes or panics your system completely freezes (you have to reset manually) or your computer does a full reboot.  Luckily this is very rare.  However, if you display server (X) crashes or restarts it means your operating system is still running fine, its just that you have to log in again since your graphical session has terminated.  The FAQ entry is only for the latter.  If you find your kernel is panicing or freezing, that is a more fundamental problem and you should contact your system admin.&lt;br /&gt;
&lt;br /&gt;
So what happens is that after a few seconds when the toolbox wants to plot the first model [http://en.wikipedia.org/wiki/X_Window_System X] crashes and you are suddenly presented with a login screen.  The problem is not due to SUMO but rather to the Matlab - Display server interaction.&lt;br /&gt;
&lt;br /&gt;
What you should first do is set plotModels to false in the [[Config:ContextConfig]] tag, run again and see if the problem occurs again.  If it does please [[Reporting_problems| report it]].  If the problem does not occur you can then try the following:&lt;br /&gt;
&lt;br /&gt;
* Log in as root (or use [http://en.wikipedia.org/wiki/Sudo sudo])&lt;br /&gt;
* Edit the following configuration file using a text editor (pico, nano, vi, kwrite, gedit,...)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
/etc/X11/xorg.conf&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: the exact location of the xorg.conf file may vary on your system.&lt;br /&gt;
&lt;br /&gt;
* Look for the following line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
  Load         &amp;quot;glx&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Comment it out by replacing it by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#  Load         &amp;quot;glx&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Then save the file, restart your X server (if you do not know how to do this simply reboot your computer)&lt;br /&gt;
* Log in again, and try running the toolbox (making sure plotModels is set to true again).  It should now work.  If it still does not please [[Reporting_problems| report it]].&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
* this is just an empirical workaround, if you have a better idea please [[Contact|let us know]]&lt;br /&gt;
* if you wish to debug further yourself please check the Xorg log files and those in /var/log&lt;br /&gt;
* another possible workaround is to start matlab with the &amp;quot;-nodisplay&amp;quot; option.  That could work as well.&lt;br /&gt;
&lt;br /&gt;
=== I get the error &amp;quot;Failed to close Matlab pool cleanly, error is Too many output arguments&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
This happens if you run the toolbox on Matlab version 2008a and you have the parallel computing toolbox installed.  You can simply ignore this error message, it does not cause any problems. If you want to use SUMO with the parallel computing toolbox you will need Matlab 2008b.&lt;br /&gt;
&lt;br /&gt;
=== The toolbox seems to keep on running forever, when or how will it stop? ===&lt;br /&gt;
&lt;br /&gt;
The toolbox will keep on generating models and selecting data until one of the termination criteria has been reached. It is up to &#039;&#039;you&#039;&#039; to choose these targets carefully, so how low the toolbox runs simply depends on what targets you choose.  Please see [[Running#Understanding_the_control_flow]].&lt;br /&gt;
&lt;br /&gt;
Of course choosing a-priori targets up front is not always easy and there is no real solution for this, except thinking well about what type of model you want (see [[FAQ#I_dont_like_the_final_model_generated_by_SUMO_how_do_I_improve_it.3F]]).  In doubt you can always use a small value (or 0) and then simply quit the running toolbox using Ctrl-C when you think its been enough.&lt;br /&gt;
&lt;br /&gt;
While one could implement fancy, automatic stopping algorithms, their actual benefit is questionable.&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=FAQ&amp;diff=5770</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=FAQ&amp;diff=5770"/>
		<updated>2012-02-10T15:58:10Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* Why does SUMO use XML? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General ==&lt;br /&gt;
&lt;br /&gt;
=== What is a global surrogate model? ===&lt;br /&gt;
&lt;br /&gt;
A global [http://en.wikipedia.org/wiki/Surrogate_model surrogate model] is a mathematical model that mimics the behavior of a computationally expensive simulation code over &#039;&#039;&#039;the complete parameter space&#039;&#039;&#039; as accurately as possible, using as little data points as possible. So note that optimization is not the primary goal, although it can be done as a post-processing step. Global surrogate models are useful for:&lt;br /&gt;
&lt;br /&gt;
* design space exploration, to get a &#039;&#039;feel&#039;&#039; of how the different parameters behave&lt;br /&gt;
* sensitivity analysis&lt;br /&gt;
* &#039;&#039;what-if&#039;&#039; analysis&lt;br /&gt;
* prototyping&lt;br /&gt;
* visualization&lt;br /&gt;
* ...&lt;br /&gt;
&lt;br /&gt;
In addition they are a cheap way to model large scale systems, multiple global surrogate models can be chained together in a model cascade.&lt;br /&gt;
&lt;br /&gt;
See also the [[About]] page.&lt;br /&gt;
&lt;br /&gt;
=== What about surrogate driven optimization? ===&lt;br /&gt;
&lt;br /&gt;
When coining the term &#039;&#039;&#039;surrogate driven optimization&#039;&#039;&#039; most people associate it with trust-region strategies and simple polynomial models. These frameworks first construct a local surrogate which is optimized to find an optimum. Afterwards, a move limit strategy decides how the local surrogate is scaled and/or moved through the input space. Subsequently the surrogate is rebuild and optimized. I.e. the surrogate zooms in to the global optimum. For instance the [http://www.cs.sandia.gov/DAKOTA/ DAKOTA] Toolbox implements such strategies where the surrogate construction is separated from optimization.&lt;br /&gt;
&lt;br /&gt;
Such a framework was earlier implemented in the SUMO Toolbox but was deprecated as it didn&#039;t fit the philosophy and design of the toolbox. &lt;br /&gt;
&lt;br /&gt;
Instead another, equally powerful, approach was taken. The current optimization framework is in fact a sampling selection strategy that balances local and global search. In other words, it balances between exploring the input space and exploiting the information the surrogate gives us.&lt;br /&gt;
&lt;br /&gt;
A configuration example can be found [[Config:SampleSelector#expectedImprovement|here]].&lt;br /&gt;
&lt;br /&gt;
=== What is (adaptive) sampling? Why is it used? ===&lt;br /&gt;
&lt;br /&gt;
In classical Design of Experiments you need to specify the design of your experiment up-front. Or in other words, you have to say up-front how many data points you need and how they should be distributed.  Two examples are Central Composite Designs and Latin Hypercube designs.  However, if your data is expensive to generate (e.g., an expensive simulation code) it is not clear how many points are needed up-front.  Instead data points are selected adaptively, only a couple at a time.  This process of incrementally selecting new data points in regions that are the most interesting is called adaptive sampling, sequential design, or active learning.  Of course the sampling process needs to start from somewhere so the very first set of points is selected based on a fixed, classic experimental design.  See also [[Running#Understanding_the_control_flow]].&lt;br /&gt;
SUMO provides a number of different sampling algorithms: [[SampleSelector]]&lt;br /&gt;
&lt;br /&gt;
Of course sometimes you dont want to do sampling.  For example if you have a fixed dataset you just want to load all the data in one go and model that.  For how to do this see [[FAQ#How_do_I_turn_off_adaptive_sampling_.28run_the_toolbox_for_a_fixed_set_of_samples.29.3F]].&lt;br /&gt;
&lt;br /&gt;
=== What about dynamical, time dependent data? ===&lt;br /&gt;
&lt;br /&gt;
The original design and purpose was to tackle static input-output systems, where there is no memory. Just a complex mapping that must be learnt and approximated. Of course you can take a fixed time interval and apply the toolbox but that typically is not a desired solution.  Usually you are interested in time series prediction, e.g., given a set of output values from time t=0 to t=k, predict what happens at time t=k+1,k+2,...&lt;br /&gt;
&lt;br /&gt;
The toolbox was originally not intended for this purpose.  However, it is quite easy to add support for recurrent models.  Automatic generation of dynamical models would involve adding a new model type (just like you would add a new regression technique) or require adapting an existing one.  For example it would not be too much work to adapt the ANN or SVM models to support dynamic problems.  The only extra work besides that would be to add a new [[Measures|Measure]] that can evaluate the fidelity of the models&#039; prediction.&lt;br /&gt;
&lt;br /&gt;
Naturally though, you would be unable to use sample selection (since it makes no sense in those problems).  Unless of course there is a specialized need for it.  In that case you would add a new [[SampleSelector]].&lt;br /&gt;
&lt;br /&gt;
For more information on this topic [[Contact]] us.&lt;br /&gt;
&lt;br /&gt;
=== What about classification problems? ===&lt;br /&gt;
&lt;br /&gt;
The main focus of the SUMO Toolbox is on regression/function approximation.  However, the framework for hyperparameter optimization, model selection, etc.  can also be used for classification.  Starting from version 6.3 a demo file is included in the distribution that shows how this works on the well known two spiral test problem.&lt;br /&gt;
&lt;br /&gt;
=== Does SUMO support discrete inputs/outputs ===&lt;br /&gt;
&lt;br /&gt;
Not, if you mean in a smart way.  There is a way to flag an input/output as discrete but it is not used anywhere.  It is on the wishlist but we have not been able to get to it yet.  Discrete inputs are just handled as if they were continuous.  Depending on how many levels there are and if there is an ordering this may work ok or not work at all.  You could of course add your own model type that can handle these :)  As for discrete outputs see [[FAQ#What_about_classification_problems.3F]].&lt;br /&gt;
&lt;br /&gt;
=== Can the toolbox drive my simulation code directly? ===&lt;br /&gt;
&lt;br /&gt;
Yes it can.  See the [[Interfacing with the toolbox]] page.&lt;br /&gt;
&lt;br /&gt;
=== What is the difference between the M3-Toolbox and the SUMO-Toolbox? ===&lt;br /&gt;
&lt;br /&gt;
The SUMO toolbox is a complete, feature-full framework for automatically generating approximation models and performing adaptive sampling. In contrast, the M3-Toolbox was more of a proof-of-principle.&lt;br /&gt;
&lt;br /&gt;
=== What happened to the M3-Toolbox? ===&lt;br /&gt;
&lt;br /&gt;
The M3 Toolbox project has been discontinued (Fall 2007) and superseded by the SUMO Toolbox. Please contact tom.dhaene@ua.ac.be for any inquiries and requests about the M3 Toolbox.&lt;br /&gt;
&lt;br /&gt;
=== How can I stay up to date with the latest news? ===&lt;br /&gt;
&lt;br /&gt;
To stay up to date with the latest news and releases, we also recommend subscribing to our newsletter [http://www.sumo.intec.ugent.be here].  Traffic will be kept to a minimum (1 message every 2-3 months) and you can unsubscribe at any time.&lt;br /&gt;
&lt;br /&gt;
You can also follow our blog: [http://sumolab.blogspot.com/ http://sumolab.blogspot.com/].&lt;br /&gt;
&lt;br /&gt;
=== What is the roadmap for the future? ===&lt;br /&gt;
&lt;br /&gt;
There is no explicit roadmap since much depends on where our research leads us, what feedback we get, which problems we are working on, etc.  However, to get an idea of features to come you can always check the [[Whats new]] page.&lt;br /&gt;
&lt;br /&gt;
You can also follow our blog: [http://sumolab.blogspot.com/ http://sumolab.blogspot.com/].&lt;br /&gt;
&lt;br /&gt;
=== Will there be an R/Scilab/Octave/Sage/.. version? ===&lt;br /&gt;
&lt;br /&gt;
At the start of the project we considered moving from Matlab to one of the available open source alternatives.  However, after much discussion we decided against this for several reasons, including:&lt;br /&gt;
&lt;br /&gt;
* Existing experience and know-how of the development team&lt;br /&gt;
* The widespread use of the Matlab platform in the target application domains&lt;br /&gt;
* The quality and amount of available Matlab documentation&lt;br /&gt;
* The quality and number of Matlab toolboxes&lt;br /&gt;
* Support for object orientation (inheritance, polymorphism, etc.)&lt;br /&gt;
* Many well documented interfacing options (especially the seamless integration with Java)&lt;br /&gt;
&lt;br /&gt;
Matlab, as a proprietary platform, definitely has its problems and deficiencies but the number of advanced algorithms and available toolboxes make it a very attractive platform.  Equally important is the fact that every function is properly documented, tested, and includes examples, tutorials, and in some cases GUI tools.  A lot of things would have been a lot harder and/or time consuming to implement on one of the other platforms.  Add to that the fact that many engineers (particularly in aerospace) already use Matlab quite heavily.  Thus given our situation, goals, and resources at the time, Matlab was the best choice for us.  &lt;br /&gt;
&lt;br /&gt;
The other platforms remain on our radar however, and we do look into them from time to time.  Though, with our limited resources porting to one of those platforms is not (yet) cost effective.&lt;br /&gt;
&lt;br /&gt;
=== What are collaboration options? ===&lt;br /&gt;
&lt;br /&gt;
We will gladly help out with any SUMO-Toolbox related questions or problems. However, since we are a university research group the most interesting goal for us is to work towards some joint publication (e.g., we can help with the modeling of your problem).  Alternatively, it is always nice if we could use your data/problem (fully referenced and/or anonymized if necessary of course) as an example application during a conference presentation or in a PhD thesis.&lt;br /&gt;
&lt;br /&gt;
The most interesting case is if your problem involves sample selection and modeling.  This means you have some simulation code or script to drive and you want an accurate model while minimizing the number of data points.  In this case, in order for us to optimally help you it would be easiest if we could run your simulation code (or script) locally or access it remotely.  Else its difficult to give good recommendations about what settings to use.&lt;br /&gt;
&lt;br /&gt;
If this is not possible (e.g., expensive, proprietary or secret modeling code) or if your problem does not involve sample selection, you can send us a fixed data set that is representative of your problem. Again, this may be fully anonymized and will be kept confidential of course.&lt;br /&gt;
&lt;br /&gt;
In either case (code or dataset) remember:&lt;br /&gt;
&lt;br /&gt;
* the data file should be an ASCII file in column format (each row containing one data point) (see also [[Interfacing_with_the_toolbox]])&lt;br /&gt;
* include a short description of your data:&lt;br /&gt;
** number of inputs and number of outputs&lt;br /&gt;
** the range of each input (or scaled to [-1 1] if you do not wish to disclose this)&lt;br /&gt;
** if the outputs are real or complex valued&lt;br /&gt;
** how noisy the data is or if it is completely deterministic (computer simulation) (please also see: [[FAQ#My_data_contains_noise_can_the_SUMO-Toolbox_help_me.3F]]).&lt;br /&gt;
** if possible the expected range of each output (or scaled if you do not wish to disclose this)&lt;br /&gt;
** if possible the names of each input/output + a short description of what they mean&lt;br /&gt;
** any further insight you have about the data, expected behavior, expected importance of each input, etc.&lt;br /&gt;
&lt;br /&gt;
If you have any further questions or comments related to this please [[Contact]] us.&lt;br /&gt;
&lt;br /&gt;
=== Can you help me model my problem? ===&lt;br /&gt;
&lt;br /&gt;
Please see the previous question: [[FAQ#What_are_collaboration_options.3F]]&lt;br /&gt;
&lt;br /&gt;
== Installation and Configuration ==&lt;br /&gt;
&lt;br /&gt;
=== What is the relationship between Matlab and Java? ===&lt;br /&gt;
&lt;br /&gt;
Many people do not know this, but your Matlab installation automatically includes a Java virtual machine.  By default, Matlab seamlessly integrates with Java, allowing you to create Java objects from the command line (e.g., &#039;s = java.lang.String&#039;).  It is possible to disable java support but in order to use the SUMO Toolbox it should not be.  To check if Java is enabled you can use the &#039;usejava&#039; command.&lt;br /&gt;
&lt;br /&gt;
=== What is Java, why do I need it, do I have to install it, etc. ? ===&lt;br /&gt;
&lt;br /&gt;
The short answer is: no, dont worry about it.  The long answer is: Some of the code of the SUMO Toolbox is written in [http://en.wikipedia.org/wiki/Java_(programming_language) Java], since it makes a lot more sense in many situations and is a proper programming language instead of a scripting language like Matlab.  Since Matlab automatically includes a JVM to run Java code there is nothing you need to do or worry about (see the previous FAQ entry).  Unless its not working of course, in that case see [[FAQ#When_running_the_toolbox_you_get_something_like_.27.3F.3F.3F_Undefined_variable_.22ibbt.22_or_class_.22ibbt.sumo.config.ContextConfig.setRootDirectory.22.27]].&lt;br /&gt;
&lt;br /&gt;
=== What is XML? ===&lt;br /&gt;
&lt;br /&gt;
XML stands for eXtensible Markup Language and is related to HTML (= the stuff web pages are written in).  The first thing you have to understand is that &#039;&#039;&#039;does not do anything&#039;&#039;&#039;. Honest. Many engineers are not used to it and think it is some complicated computer programming language-stuff-thingy.  This is of course not the case (we ignore some of the fancy stuff you can do with it for now).  XML is a markup language meaning, it provides some rules how you can annotate or structure existing text.&lt;br /&gt;
&lt;br /&gt;
The way SUMO uses XML is really simple and there is not much to understand (for more information on how SUMO uses XML go this page [[Config:ToolboxConfiguration#Interpreting_the_configuration_file|page]]). First some simple terminology.  Take the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;Foo attr=&amp;quot;bar&amp;quot;&amp;gt;bla bla bla&amp;lt;/Foo&amp;gt; &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here we have &#039;&#039;&#039;a tag&#039;&#039;&#039; called &#039;&#039;Foo&#039;&#039; containing text &#039;&#039;bla bla bla&#039;&#039;.  The tag Foo also has an &#039;&#039;&#039;attribute&#039;&#039;&#039; &#039;&#039;attr&#039;&#039; with value &#039;&#039;bar&#039;&#039;.  &#039;&amp;lt;Foo&amp;gt;&#039; is what we call the &#039;&#039;&#039;opening tag&#039;&#039;&#039;, and &#039;&amp;lt;/Foo&amp;gt;&#039; is the &#039;&#039;&#039;closing tag&#039;&#039;&#039;.  Each time you open a tag you must close it again.  How you name the tags or attributes it totally up to you, you choose :)&lt;br /&gt;
&lt;br /&gt;
Lets take a more interesting example.  Here we have used XML to represent information about a receipe for pancakes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;recipe category=&amp;quot;dessert&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;title&amp;gt;Pancakes&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;sumo@intec.ugent.be&amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;date&amp;gt;Wed, 14 Jun 95&amp;lt;/date&amp;gt;&lt;br /&gt;
  &amp;lt;description&amp;gt;&lt;br /&gt;
    Good old fashioned pancakes.&lt;br /&gt;
  &amp;lt;/description&amp;gt;&lt;br /&gt;
  &amp;lt;ingredients&amp;gt;&lt;br /&gt;
    &amp;lt;item&amp;gt;&lt;br /&gt;
        &amp;lt;amount&amp;gt;3&amp;lt;/amount&amp;gt;&lt;br /&gt;
        &amp;lt;type&amp;gt;eggs&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;/item&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;item&amp;gt;&lt;br /&gt;
         &amp;lt;amount&amp;gt;0.5 tablespoon&amp;lt;/amount&amp;gt;&lt;br /&gt;
         &amp;lt;type&amp;gt;salt&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;/item&amp;gt;&lt;br /&gt;
     ...&lt;br /&gt;
  &amp;lt;/ingredients&amp;gt;&lt;br /&gt;
  &amp;lt;preparation&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
  &amp;lt;/preparation&amp;gt;&lt;br /&gt;
 &amp;lt;/recipe&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So basically, you see that XML is just a way to structure, order, and group information.  Thats it!  So SUMO basically uses it to store and structure configuration options.  And this works well due to the nice hierarchical nature of XML.&lt;br /&gt;
&lt;br /&gt;
If you understand this there is nothing else to it in order to be able to understand the SUMO configuration files.  If you need more information see the tutorial here: [http://www.w3schools.com/XML/xml_whatis.asp http://www.w3schools.com/XML/xml_whatis.asp].  You can also have a look at the wikipedia page here: [http://en.wikipedia.org/wiki/XML http://en.wikipedia.org/wiki/XML]&lt;br /&gt;
&lt;br /&gt;
=== Why does SUMO use XML? ===&lt;br /&gt;
&lt;br /&gt;
XML is the de facto standard way of structuring information. This ranges from spreadsheet files (Microsoft Excel for example), to configuration data, to scientific data, ...  There are even whole database systems based solely on XML.  So basically, its an intuitive way to structure data and it is used everywhere.  This makes that there are a very large number of libraries and programming languages available that can parse, and handle XML easily.  That means less work for the programmer.  Then of course there is stuff like XSLT, XQuery, etc that makes life even easier.&lt;br /&gt;
So basically, it would not make sense for SUMO to use any other format :). For more information on how SUMO uses XML go this page [[Config:ToolboxConfiguration#Interpreting_the_configuration_file|page]].&lt;br /&gt;
&lt;br /&gt;
=== I get an error that SUMO is not yet activated ===&lt;br /&gt;
&lt;br /&gt;
Make sure you installed the activation file that was mailed to you as is explained in the [[Installation]] instructions.  Also double check your system meets the [[System requirements]] and that [http://www.sumowiki.intec.ugent.be/index.php/FAQ#When_running_the_toolbox_you_get_something_like_.27.3F.3F.3F_Undefined_variable_.22ibbt.22_or_class_.22ibbt.sumo.config.ContextConfig.setRootDirectory.22.27|java java is enabled].  To fully verify that the activation file installation is correct ensure that the file ContextConfig.class is present in the directory &#039;&#039;&amp;lt;SUMO installation directory&amp;gt;/bin/java/ibbt/sumo/config&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Please note that more flexible research licenses are available if it is possible to [[FAQ#What_are_collaboration_options.3F|collaborate in any way]].&lt;br /&gt;
&lt;br /&gt;
== Upgrading ==&lt;br /&gt;
&lt;br /&gt;
=== How do I upgrade to a newer version? ===&lt;br /&gt;
&lt;br /&gt;
Delete your old &amp;lt;code&amp;gt;&amp;lt;SUMO-Toolbox-directory&amp;gt;&amp;lt;/code&amp;gt; completely and replace it by the new one.  Install the new activation file / extension pack as  before (see [[Installation]]), start Matlab and make sure the default run works.  To port your old configuration files to the new version: make a copy of default.xml (from the new version) and copy over your custom changes (from the old version) one by one.  This should prevent any weirdness if the XML structure has changed between releases.&lt;br /&gt;
&lt;br /&gt;
If you had a valid activation file for the previous version, just [[Contact]] us (giving your SUMOlab website username) and we will send you a new activation file.  Note that to update an activation file you must first unzip a copy of the toolbox to a new directory and install the activation file as if it was the very first time.  Upgrading of an activation file without performing a new toolbox install is (unfortunately) not (yet) supported.&lt;br /&gt;
&lt;br /&gt;
== Using ==&lt;br /&gt;
&lt;br /&gt;
=== I have no idea how to use the toolbox, what should I do? ===&lt;br /&gt;
&lt;br /&gt;
See: [[Running#Getting_started]]&lt;br /&gt;
&lt;br /&gt;
=== I want to try one of the different examples ===&lt;br /&gt;
&lt;br /&gt;
See [[Running#Running_different_examples]].&lt;br /&gt;
&lt;br /&gt;
=== I want to model my own problem ===&lt;br /&gt;
&lt;br /&gt;
See : [[Adding an example]].&lt;br /&gt;
&lt;br /&gt;
=== I want to contribute some data/patch/documentation/... ===&lt;br /&gt;
&lt;br /&gt;
See : [[Contributing]].&lt;br /&gt;
&lt;br /&gt;
=== How do I interface with the SUMO Toolbox? ===&lt;br /&gt;
&lt;br /&gt;
See : [[Interfacing with the toolbox]].&lt;br /&gt;
&lt;br /&gt;
=== What configuration options (model type, sample selection algorithm, ...) should I use for my problem? ===&lt;br /&gt;
&lt;br /&gt;
See [[General_guidelines]].&lt;br /&gt;
&lt;br /&gt;
=== Ok, I generated a model, what can I do with it? ===&lt;br /&gt;
&lt;br /&gt;
See: [[Using a model]].&lt;br /&gt;
&lt;br /&gt;
=== How can I share a model created by the SUMO Toolbox? ===&lt;br /&gt;
&lt;br /&gt;
See : [[Using a model#Model_portability| Model portability]].&lt;br /&gt;
&lt;br /&gt;
=== I dont like the final model generated by SUMO how do I improve it? ===&lt;br /&gt;
&lt;br /&gt;
Before you start the modeling you should really ask youself this question: &#039;&#039;What properties do I want to see in the final model?&#039;&#039;  You have to think about what for you constitutes a good model and what constitutes a poor model. Then you should rank those properties depending on how important you find them.  Examples are:&lt;br /&gt;
&lt;br /&gt;
* accuracy in the training data&lt;br /&gt;
** is it important that the error in the training data is exactly 0, or do you prefer some smoothing&lt;br /&gt;
* accuracy outside the training data&lt;br /&gt;
** this is the validation or test error, how important is proper generalization (usually this is very important)&lt;br /&gt;
* what does accuracy mean to you? a low maximum error, a low average error, both, ...&lt;br /&gt;
* smoothness&lt;br /&gt;
** should your model be perfectly smooth or is it acceptable that you have a few small ripples here and there for example&lt;br /&gt;
* are some regions of the response more important than others?&lt;br /&gt;
** for example you may want to be certain that the minima/maxima are captured very accurately but everything in between is less important&lt;br /&gt;
* are there particular special features that your model should have&lt;br /&gt;
** for example, capture underlying poles or discontinuities correctly&lt;br /&gt;
* extrapolation capability&lt;br /&gt;
* ...&lt;br /&gt;
&lt;br /&gt;
It is important to note that often these criteria may be conflicting.  The classical example is fitting noisy data: the lower your training error the higher your testing error.  A natural approach is to combine multiple criteria, see [[Multi-Objective Modeling]].&lt;br /&gt;
&lt;br /&gt;
Once you have decided on a set of requirements the question is then, can the SUMO-Toolbox produce a model that meets them? In SUMO model generation is driven by one or more [[Measures]].  So you should choose the combination of [[Measures]] that most closely match your requirements.  Of course we can not provide a Measure for every single property, but it is very straightforward to [[Add_Measure|add your own Measure]].&lt;br /&gt;
&lt;br /&gt;
Now, lets say you have chosen what you think are the best Measures but you are still not happy with the final model.  Reasons could be:&lt;br /&gt;
&lt;br /&gt;
* you need more modeling iterations or you need to build more models per iteration (see [[Running#Understanding_the_control_flow]]). This will result in a more extensive search of the model parameter space, but will take longer to run.&lt;br /&gt;
* you should switch to a different model parameter optimization algorithm (e.g., for example instead of the Pattern Search variant, try the Genetic Algorithm variant of your AdaptiveModelBuilder.)&lt;br /&gt;
* the model type you are using is not ideally suited to your data&lt;br /&gt;
* there simply is not enough data, use a larger initial design or perform more sampling iterations to get more information per dimension&lt;br /&gt;
* maybe the sample distribution is causing troubles for your model (e.g., Kriging can have problems with clustered data).  In that case it could be worthwhile to choose a different sample selection algorithm.&lt;br /&gt;
* the range of your response variable is not ideal (for example, neural networks have trouble modeling data if the range of the outputs is very very small)&lt;br /&gt;
&lt;br /&gt;
You may also refer to the following [[General_guidelines]].  Finally, of course it may be that your problem is simply a very difficult one and does not approximate well.  But, still you should at least get something satisfactory.&lt;br /&gt;
&lt;br /&gt;
If you are having these kinds of problems, please [[Reporting_problems|let us know]] and we will gladly help out.&lt;br /&gt;
&lt;br /&gt;
=== My data contains noise can the SUMO-Toolbox help me? ===&lt;br /&gt;
&lt;br /&gt;
The original purpose of the SUMO-Toolbox was for it to be used in conjunction with computer simulations.  Since these are fully deterministic you do not have to worry about noise in the data and all the problems it causes.  However, the methods in the toolbox are general fitting methods that work on noisy data as well.  So yes, the toolbox can be used with noisy data, but you will just have to be more careful about how you apply the methods and how you perform model selection.  Its only when you use the toolbox with a noisy simulation engine that a few special  options may need to be set.  In that case [[Contact]] us for more information.&lt;br /&gt;
&lt;br /&gt;
Note though, that the toolbox is not a statistical package, if you have noisy data and you need noise estimation algorithms, kernel smoothing algorithms, etc.  you should look towards other tools.&lt;br /&gt;
&lt;br /&gt;
=== What is the difference between a ModelBuilder and a ModelFactory? ===&lt;br /&gt;
&lt;br /&gt;
See [[Add Model Type]].&lt;br /&gt;
&lt;br /&gt;
=== Why are the Neural Networks so slow? ===&lt;br /&gt;
&lt;br /&gt;
The ANN models are an extremely powerful model type that give very good results in many problems.  However, they are quite slow to use.  There are some things you can do:&lt;br /&gt;
&lt;br /&gt;
* use trainlm or trainscg instead of the default training function trainbr.  trainbr gives very good, smooth results but is slower to use.  If results with trainlm are not good enough, try using msereg as a performance function.&lt;br /&gt;
* try setting the training goal (= the SSE to reach during training) to a small positive number (e.g., 1e-5) instead of 0.&lt;br /&gt;
* check that the output range of your problem is not very small.  If your response data lies between 10e-5 and 10e-9 for example it will be very hard for the neural net to learn it.  In that case rescale your data to a more sane range.&lt;br /&gt;
* switch from ANN to one of the other neural network modelers: fanngenetic or nanngenetic. These are a lot faster than the default backend based on the [http://www.mathworks.com/products/neuralnet/ Matlab Neural Network Toolbox].  However, the accuracy is usually not as good.&lt;br /&gt;
* If you are using [[Measures#CrossValidation| CrossValidation]] try to switch to a different measure since CrossValidation is very expensive to use. CrossValidation is used by default if you have not defined a [[Measures| measure]] yourself.  When using one of the neural network model types, try to use a different measure if you can.  For example, our tests have shown that minimizing the sum of [[Measures#SampleError| SampleError]] and [[Measures#LRMMeasure| LRMMeasure]] can give equal or even better results than CrossValidation, while being much cheaper (see [[Multi-Objective Modeling]] for how to combine multiple measures).  See also the comments in &amp;lt;code&amp;gt;default.xml&amp;lt;/code&amp;gt; for examples.&lt;br /&gt;
* Finally, as with any model type things will slow down if you have many dimensions or very large amounts of data.  If that is the case, try some dimensionality reduction or subsampling techniques.&lt;br /&gt;
&lt;br /&gt;
See also [[FAQ#How_can_I_make_the_toolbox_run_faster.3F]]&lt;br /&gt;
&lt;br /&gt;
=== How can I make the toolbox run faster? ===&lt;br /&gt;
&lt;br /&gt;
There are a number of things you can do to speed things up.  These are listed below.  Remember though that the main reason the toolbox may seem to be slow is due to the many models being built as part of the hyperparameter optimization.  Please make sure you fully understand the [[Running#Understanding_the_control_flow|control flow described here]] before trying more advanced options.&lt;br /&gt;
&lt;br /&gt;
* First of all check that your virus scanner is not interfering with Matlab. If McAfee or any other program wants to scan every file SUMO generates this really slows things down and your computer becomes unusable.&lt;br /&gt;
&lt;br /&gt;
* Turn off the plotting of models in [[Config:ContextConfig#PlotOptions| ContextConfig]], you can always generate plots from the saved mat files&lt;br /&gt;
&lt;br /&gt;
* This is an important one.  For most model builders there is an option &amp;quot;maxFunEals&amp;quot;, &amp;quot;maxIterations&amp;quot;, or equivalent.  Change this value to change the maximum number of models built between 2 sampling iterations.  The higher this number, the slower, but the better the models &#039;&#039;may&#039;&#039; be.  Equivalently, for the Genetic model builders reduce the population size and the number of generations.&lt;br /&gt;
&lt;br /&gt;
* If you are using [[Measures#CrossValidation]] see if you can avoid it and use one of the other measures or a combination of measures (see [[Multi-Objective Modeling]]&lt;br /&gt;
&lt;br /&gt;
* If you are using a very dense [[Measures#ValidationSet]] as your Measure, this means that every single model will be evaluated on that data set.  For some models like RBF, Kriging, SVM, this can slow things down.&lt;br /&gt;
&lt;br /&gt;
* Disable some, or even all of the [[Config:ContextConfig#Profiling| profilers]] or disable the output handlers that draw charts.  For example, you might use the following configuration for the profilers:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Profiling&amp;gt;&lt;br /&gt;
	&amp;lt;Profiler name=&amp;quot;.*share.*|.*ensemble.*|.*Level.*&amp;quot; enabled=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;Output type=&amp;quot;toImage&amp;quot;/&amp;gt;&lt;br /&gt;
		&amp;lt;Output type=&amp;quot;toFile&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;/Profiler&amp;gt;&lt;br /&gt;
			&lt;br /&gt;
	&amp;lt;Profiler name=&amp;quot;.*&amp;quot; enabled=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;Output type=&amp;quot;toFile&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;/Profiler&amp;gt;&lt;br /&gt;
&amp;lt;/Profiling&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;.*&amp;quot; means match any one or more characters ([http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html see here for the full list of supported wildcards]).  Thus in this example all the profilers that have &amp;quot;share&amp;quot;, &amp;quot;ensemble&amp;quot;, or &amp;quot;Level&amp;quot; in their name shoud be enabled and should be saved as a text file (toFile) AND as an image file (toImage).  All the other profilers should be saved just to file. The idea is to only save to image what you want as an image since image generation is expensive.  If you do this or switch off image generation completely you will see everything run much faster.&lt;br /&gt;
&lt;br /&gt;
* Decrease the logging granularity, a log level of FINE (the default is FINEST or ALL) is more then granular enough.  Setting it to FINE, INFO, or even WARNING should speed things up.&lt;br /&gt;
&lt;br /&gt;
* If you have a multi-core/multi-cpu machine:&lt;br /&gt;
** if you have the Matlab Parallel Computing Toolbox, try setting the parallelMode option to true in [[Config:ContextConfig]].  Now all model training occurs in parallel.  This may give unexpected errors in some cases so beware when using.&lt;br /&gt;
** if you are using a native executable or script as the sample evaluator set the threadCount variable in [[Config:SampleEvaluator#LocalSampleEvaluator| LocalSampleEvaluator]] equal to the number of cores/CPUs (only do this if it is ok to start multiple instances of your simulation script in parallel!)&lt;br /&gt;
&lt;br /&gt;
* Dont use the Min-Max measure, it can slow things down. See also [[FAQ#How_do_I_force_the_output_of_the_model_to_lie_in_a_certain_range]]&lt;br /&gt;
&lt;br /&gt;
* If you are using neural networks see [[FAQ#Why_are_the_Neural_Networks_so_slow.3F]]&lt;br /&gt;
&lt;br /&gt;
* If you are having problems with very slow or seemingly hanging runs:&lt;br /&gt;
** Do a run inside the [http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/matlab_env/f9-17018.html&amp;amp;http://www.google.be/search?client=firefox-a&amp;amp;rls=org.mozilla%3Aen-US%3Aofficial&amp;amp;channel=s&amp;amp;hl=nl&amp;amp;q=matlab+profiler&amp;amp;meta=&amp;amp;btnG=Google+zoeken Matlab profiler] and see where most time is spent.&lt;br /&gt;
&lt;br /&gt;
** Monitor CPU and physical/virtual memory usage while the SUMO toolbox is running and see if you notice anything strange.  &lt;br /&gt;
&lt;br /&gt;
* Also note that by default Matlab only allocates about 117 MB memory space for the Java Virtual Machine. If you would like to increase this limit (which you should) please follow the instructions [http://www.mathworks.com/support/solutions/data/1-18I2C.html?solution=1-18I2C here]. See also the general memory instructions [http://www.mathworks.com/support/tech-notes/1100/1106.html here].&lt;br /&gt;
&lt;br /&gt;
To check if your SUMO run has hanged, monitor your log file (with the level set at least to FINE).  If you see no changes for about 30 minutes the toolbox will probably have stalled.  [[Reporting problems| report the problems here]].&lt;br /&gt;
&lt;br /&gt;
Such problems are hard to identify and fix so it is best to work towards a reproducible test case if you think you found a performance or scalability issue.&lt;br /&gt;
&lt;br /&gt;
=== How do I build models with more than one output ===&lt;br /&gt;
&lt;br /&gt;
Sometimes you have multiple responses that you want to model at once.  See [[Running#Models_with_multiple_outputs]]&lt;br /&gt;
&lt;br /&gt;
=== How do I turn off adaptive sampling (run the toolbox for a fixed set of samples)? ===&lt;br /&gt;
&lt;br /&gt;
See : [[Adaptive Modeling Mode]].&lt;br /&gt;
&lt;br /&gt;
=== How do I change the error function (relative error, RMSE, ...)? ===&lt;br /&gt;
&lt;br /&gt;
The [[Measures| &amp;lt;Measure&amp;gt;]] tag specifies the algorithm to use to assign models a score, e.g., [[Measures#CrossValidation| CrossValidation]].  It is also possible to specify which &#039;&#039;&#039;error function&#039;&#039;&#039; to  use, in the measure.  The default error function is &#039;&amp;lt;code&amp;gt;rootRelativeSquareError&amp;lt;/code&amp;gt;&#039;.&lt;br /&gt;
&lt;br /&gt;
Say you want to use [[Measures#CrossValidation| CrossValidation]] with the maximum absolute error, then you would put:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Measure type=&amp;quot;CrossValidation&amp;quot; target=&amp;quot;0.001&amp;quot; errorFcn=&amp;quot;maxAbsoluteError&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On the other hand, if you wanted to use the [[Measures#ValidationSet| ValidationSet]] measure with a relative root-mean-square error you would put:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Measure type=&amp;quot;ValidationSet&amp;quot; target=&amp;quot;0.001&amp;quot; errorFcn=&amp;quot;relativeRms&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default error function is &#039;&amp;lt;code&amp;gt;rootRelativeSquareError&amp;lt;/code&amp;gt;&#039;.  These error functions can be found in the &amp;lt;code&amp;gt;src/matlab/tools/errorFunctions&amp;lt;/code&amp;gt; directory.  You are free to modify them and add your own.  Remember that the choice of error function is very important! Make sure you think well about it.  Also see [[Multi-Objective Modeling]].&lt;br /&gt;
&lt;br /&gt;
=== How do I enable more profilers? ===&lt;br /&gt;
&lt;br /&gt;
Go to the [[Config:ContextConfig#Profiling| &amp;lt;Profiling&amp;gt;]] tag and put &amp;lt;code&amp;gt;&amp;quot;&amp;lt;nowiki&amp;gt;.*&amp;lt;/nowiki&amp;gt;&amp;quot;&amp;lt;/code&amp;gt; as the regular expression.  See also the next question.&lt;br /&gt;
&lt;br /&gt;
=== What regular expressions can I use to filter profilers? ===&lt;br /&gt;
&lt;br /&gt;
See the syntax [http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html here].&lt;br /&gt;
&lt;br /&gt;
=== How can I ensure deterministic results? ===&lt;br /&gt;
&lt;br /&gt;
See : [[Random state]].&lt;br /&gt;
&lt;br /&gt;
=== How do I get a simple closed-form model (symbolic expression)? ===&lt;br /&gt;
&lt;br /&gt;
See : [[Using a model]].&lt;br /&gt;
&lt;br /&gt;
=== How do I enable the Heterogenous evolution to automatically select the best model type? ===&lt;br /&gt;
&lt;br /&gt;
Simply use the [[Config:AdaptiveModelBuilder#heterogenetic| heterogenetic modelbuilder]] as you would any other.&lt;br /&gt;
&lt;br /&gt;
=== What is the combineOutputs option? ===&lt;br /&gt;
&lt;br /&gt;
See [[Running#Models_with_multiple_outputs]]&lt;br /&gt;
&lt;br /&gt;
=== What error function should I use? ===&lt;br /&gt;
&lt;br /&gt;
The default error function is the Root Relative Square Error (RRSE).  On the other hand meanRelativeError may be more intuitive but in that case you have to be careful if you have function values close to zero since in that case the relative error explodes or even gives infinity.  You could also use one of the combined relative error functions (contain a +1 in the denominator to account for small values) but then you get something between a relative and absolute error (=&amp;gt; hard to interpret).&lt;br /&gt;
&lt;br /&gt;
So to be sure an absolute error seems the safest bet (like the RMSE), however in that case you have to come up with sensible accuracy targets and realize that you will build models that try to fit the regions of high absolute value better than the low ones.&lt;br /&gt;
&lt;br /&gt;
Picking an error function is a very tricky business and many people do not realize this.  Which one is best for you and what targets you use ultimately depends on your application and on what kind of model you want.  There is no general answer.&lt;br /&gt;
&lt;br /&gt;
A recommended read is [http://www.springerlink.com/content/24104526223221u3/ is this paper].  See also the page on [[Multi-Objective Modeling]].&lt;br /&gt;
&lt;br /&gt;
=== I just want to generate an initial design (no sampling, no modeling) ===&lt;br /&gt;
&lt;br /&gt;
Do a regular SUMO run, except set the &#039;maxModelingIterations&#039; in the SUMO tag to 0.  The resulting run will only generate (and evaluate) the initial design and save it to samples.txt in the output directory.&lt;br /&gt;
&lt;br /&gt;
=== How do I start a run with the samples of of a previous run, or with a custom initial design? ===&lt;br /&gt;
&lt;br /&gt;
Use a Dataset design component, for example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;InitialDesign type=&amp;quot;DatasetDesign&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Option key=&amp;quot;file&amp;quot; value=&amp;quot;/path/to/the/file/containing/the/points.txt&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;/InitialDesign&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The points of a previous run can be found in the samples.txt file in the output directory of the run you want to continue.&lt;br /&gt;
&lt;br /&gt;
As a sidenote, remark you can start the toolbox with *data points* of a previous run, but not with the *models* of a previous run.&lt;br /&gt;
&lt;br /&gt;
=== What is a level plot? ===&lt;br /&gt;
&lt;br /&gt;
A level plot is a plot that shows how the error histogram changes as the best model improves. An example is:&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Image:levelplot.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Level plots only work if you have a separate dataset (test set) that the model can be checked against.  See the comments in default.xml for how to enable level plots.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== How do I force the output of the model to lie in a certain range ===&lt;br /&gt;
&lt;br /&gt;
See [[Measures#MinMax]].&lt;br /&gt;
&lt;br /&gt;
=== My problem is high dimensional and has a lot of input parameters (more than 10).  Can I use SUMO? ===&lt;br /&gt;
&lt;br /&gt;
That depends.  Remember that the main focus of SUMO is to generate accurate &#039;global&#039; models. If you want to do sampling the practical dimensionality is limited to around 6-8 (though it depends on the problem and how cheap the simulations are!).  Since the more dimensions the more space you need to fill.  At that point you need to see if you can extend the models with domain specific knowledge (to improve performance) or apply a dimensionality reduction method ([[FAQ#Can_the_toolbox_tell_me_which_are_the_most_important_inputs_.28.3D_variable_selection.29.3F|see the next question]]).  On the other hand, if you don&#039;t need to do sample selection but you have a fixed dataset which you want to model.  Then the performance on high dimensional data just depends on the model type.  For examples SVM type models are independent of the dimension and thus can always be applied.  Though things like feature selection are always recommended.&lt;br /&gt;
&lt;br /&gt;
=== Can the toolbox tell me which are the most important inputs (= variable selection)? ===&lt;br /&gt;
&lt;br /&gt;
When tackling high dimensional problems a crucial question is &amp;quot;Are all my input parameters relevant?&amp;quot;.  Normally domain knowledge would answer this question but this is not always straightforward. In those cases a whole set of algorithms exist for doing dimensionality reduction (= feature selection).  Support for some of these algorithms may eventually make it into the toolbox but are not currently implemented.  That is a whole PhD thesis on its own.  However, if a model type provides functions for input relevance determination the toolbox can leverage this.  For example, the LS-SVM model available in the toolbox supports Automatic Relevance Determination (ARD).  This means that if you use the SUMO Toolbox to generate an LS-SVM model, you can call the function &#039;&#039;ARD()&#039;&#039; on the model and it will give you a list of the inputs it thinks are most important.&lt;br /&gt;
&lt;br /&gt;
=== Should I use a Matlab script or a shell script for interfacing with my simulation code? ===&lt;br /&gt;
&lt;br /&gt;
When you want to link SUMO with an external simulation engine (ADS Momentum, SPECTRE, FEBIO, SWAT, ...) you need a [http://en.wikipedia.org/wiki/Shell_script shell script] (or executable) that can take the requested points from SUMO, setup the simulation engine (e.g., set necessary input files), calls the simulator for all the requested points, reads the output (e.g., one or more output files), and returns the results to SUMO (see [[Interfacing with the toolbox]]).&lt;br /&gt;
&lt;br /&gt;
Which one you choose (matlab script + [[Config:SampleEvaluator#matlab|Matlab Sample Evaluator]], or shell script/executable with [[Config:SampleEvaluator#local|Local Sample Evaluator]] is basically a matter of preference, take whatever is easiest for you.&lt;br /&gt;
&lt;br /&gt;
HOWEVER, there is one important consideration: Matlab does not support threads so this means that if you use a matlab script to interface with the simulation engine, simulations and modeling will happen sequentially, NOT in parallel.  This means the modeling code will sit around waiting, doing nothing, until the simulation(s) have finished.  If your simulation code takes a long time to run this is not very efficient.&lt;br /&gt;
&lt;br /&gt;
On the other hand, using a shell script/executable, does allow the modeling and simulation to occur in parallel (at least if you wrote your interface script in such a way that it can be run multiple times in parallel, i.e., no shared global directories or variables that can cause [http://en.wikipedia.org/wiki/Race_condition race conditions]).&lt;br /&gt;
&lt;br /&gt;
As a sidenote, note that if you already put work into a Matlab script, it is still possible to use a shell script, by writing a shell script that starts Matlab (using -nodisplay or -nojvm options), executes your script (using the -r option), and exits Matlab again.  Of course it is not very elegant and adds some overhead but depending on your situation it may be worth it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== How can I look at the internal structure of a SUMO model ===&lt;br /&gt;
&lt;br /&gt;
See [[Using_a_model#Available_methods]].&lt;br /&gt;
&lt;br /&gt;
=== Is there any design documentation available? ===&lt;br /&gt;
&lt;br /&gt;
An in depth overview of the rationale and philosophy, including a treatment of the software architecture underlying the SUMO Toolbox is available in the form of a PhD dissertation.  A copy of this dissertation [http://www.sumo.intec.ugent.be/?q=system/files/2010_04_PhD_DirkGorissen.pdf is available here].&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
=== I have a problem and I want to report it ===&lt;br /&gt;
&lt;br /&gt;
See : [[Reporting problems]].&lt;br /&gt;
&lt;br /&gt;
===I am getting a java out of memory error, what happened?===&lt;br /&gt;
Datasets are loaded through java. This means that the java heap space is used for storing the data. If you try to load a huge dataset (&amp;gt; 50MB), you might experience problems with the maximum heap size. You can solve this by raising the heap size as described on the following webpage:&lt;br /&gt;
[http://www.mathworks.com/support/solutions/data/1-18I2C.html]&lt;br /&gt;
&lt;br /&gt;
=== I sometimes get flat models when using rational functions ===&lt;br /&gt;
&lt;br /&gt;
First make sure the model is indeed flat, and does not just appear so on the plot. You can verify this by looking at the output axis range and making sure it is within reasonable bounds. When there are poles in the model, the axis range is sometimes stretched to make it possible to plot the high values around the pole, causing the rest of the model to appear flat. If the model contains poles, refer to the next question for the solution.&lt;br /&gt;
&lt;br /&gt;
The [[Config:AdaptiveModelBuilder#rational| RationalModel]] tries to do a least squares fit, based on which monomials are allowed in numerator and denominator. We have experienced that some models just find a flat model as the best least squares fit. There are two causes for this:&lt;br /&gt;
&lt;br /&gt;
* The number of sample points is few, and the model parameters (as explained [[Model types explained#PolynomialModel|here]]) force the model to use only a very small set of degrees of freedom.  The solution in this case is to increase the minimum percentage bound in the RationalFactory section of your configuration file: change the &amp;lt;code&amp;gt;&amp;quot;percentBounds&amp;quot;&amp;lt;/code&amp;gt; option to &amp;lt;code&amp;gt;&amp;quot;60,100&amp;quot;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;quot;80,100&amp;quot;&amp;lt;/code&amp;gt;,  or even &amp;lt;code&amp;gt;&amp;quot;100,100&amp;quot;&amp;lt;/code&amp;gt;.  A setting of &amp;lt;code&amp;gt;&amp;quot;100,100&amp;quot;&amp;lt;/code&amp;gt; will force the polynomial models to always exactly interpolate.  However, note that this does not scale very well with the number of samples (to counter this you can set &amp;lt;code&amp;gt;&amp;quot;maxDegrees&amp;quot;&amp;lt;/code&amp;gt;). If, after increasing the &amp;lt;code&amp;gt;&amp;quot;percentBounds&amp;quot;&amp;lt;/code&amp;gt; you still get weird, spiky, models you simply need more samples or you should switch to a different model type.&lt;br /&gt;
* Another possibility is that given a set of monomial degrees, the flat function is just the best possible least squares fit. In that case you simply need to wait for more samples.&lt;br /&gt;
* The measure you are using is not accurately estimating the true error, try a different measure or error function.  Note that a maximum relative error is dangerous to use since a the 0-function (= a flat model) has a lower maximum relative error than a function which overshoots the true behavior in some places but is otherwise correct.&lt;br /&gt;
&lt;br /&gt;
=== When using rational functions I sometimes get &#039;spikes&#039; (poles) in my model ===&lt;br /&gt;
&lt;br /&gt;
When the denominator polynomial of a rational model has zeros inside the domain, the model will tend to infinity near these points. In most cases these models will only be recognized as being `the best&#039; for a short period of time. As more samples get selected these models get replaced by better ones and the spikes should disappear.&lt;br /&gt;
&lt;br /&gt;
So, it is possible that a rational model with &#039;spikes&#039; (caused by poles inside the domain) will be selected as best model. This may or may not be an issue, depending on what you want to use the model for. If it doesn&#039;t matter that the model is very inaccurate at one particular, small spot (near the pole), you can use the model with the pole and it should perform properly.&lt;br /&gt;
&lt;br /&gt;
However, if the model should have a reasonable error on the entire domain, several methods are available to reduce the chance of getting poles or remove the possibility altogether. The possible solutions are:&lt;br /&gt;
&lt;br /&gt;
* Simply wait for more data, usually spikes disappear (but not always).&lt;br /&gt;
* Lower the maximum of the &amp;lt;code&amp;gt;&amp;quot;percentBounds&amp;quot;&amp;lt;/code&amp;gt; option in the RationalFactory section of your configuration file.  For example, say you have 500 data points and if the maximum of the &amp;lt;code&amp;gt;&amp;quot;percentBounds&amp;quot;&amp;lt;/code&amp;gt; option is set to 100 percent it means the degrees of the polynomials in the rational function can go up to 500.  If you set the maximum of the &amp;lt;code&amp;gt;&amp;quot;percentBounds&amp;quot;&amp;lt;/code&amp;gt; option to 10, on the other hand, the maximum degree is set at 50 (= 10 percent of 500).  You can also use the &amp;lt;code&amp;gt;&amp;quot;maxDegrees&amp;quot;&amp;lt;/code&amp;gt; option to set an absolute bound.&lt;br /&gt;
* If you roughly know the output range your data should have, an easy way to eliminate poles is to use the [[Measures#MinMax| MinMax]] [[Measures| Measure]] together with your current measure ([[Measures#CrossValidation| CrossValidation]] by default).  This will cause models whose response falls outside the min-max bounds to be penalized extra, thus spikes should disappear.&lt;br /&gt;
* Use a different model type (RBF, ANN, SVM,...), as spikes are a typical problem of rational functions.&lt;br /&gt;
* Increase the population size if using the genetic version&lt;br /&gt;
* Try using the [[SampleSelector#RationalPoleSuppressionSampleSelector| RationalPoleSuppressionSampleSelector]], it was designed to get rid of this problem more quickly, but it only selects one sample at the time.&lt;br /&gt;
&lt;br /&gt;
However, these solutions may not still not suffice in some cases.  The underlying reason is that the order selection algorithm contains quite a lot of randomness, making it prone to over-fitting.  This issue is being worked on but will take some time.  Automatic order selection is not an easy problem&lt;br /&gt;
&lt;br /&gt;
=== There is no noise in my data yet the rational functions don&#039;t interpolate ===&lt;br /&gt;
&lt;br /&gt;
[[FAQ#I sometimes get flat models when using rational functions |see this question]].&lt;br /&gt;
&lt;br /&gt;
=== When loading a model from disk I get &amp;quot;Warning: Class &#039;:all:&#039; is an unknown object class.  Object &#039;model&#039; of this class has been converted to a structure.&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
You are trying to load a model file without the SUMO Toolbox in your Matlab path.  Make sure the toolbox is in your Matlab path. &lt;br /&gt;
&lt;br /&gt;
In short: Start Matlab, run &amp;lt;code&amp;gt;&amp;lt;SUMO-Toolbox-directory&amp;gt;/startup.m&amp;lt;/code&amp;gt; (to ensure the toolbox is in your path) and then try to load your model.&lt;br /&gt;
&lt;br /&gt;
=== When running the SUMO Toolbox you get an error like &amp;quot;No component with id &#039;annpso&#039; of type &#039;adaptive model builder&#039; found in config file.&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
This means you have specified to use a component with a certain id (in this case an AdaptiveModelBuilder component with id &#039;annpso&#039;) but a component with that id does not exist further down in the configuration file (in this particular case &#039;annpso&#039; does not exist but &#039;anngenetic&#039; or &#039;ann&#039; does, as a quick search through the configuration file will show).  So make sure you only declare components which have a definition lower down.  So see which components are available, simply scroll down the configuration file and see which id&#039;s are specified.  Please also refer to the [[Toolbox configuration#Declarations and Definitions | Declarations and Definitions]] page.&lt;br /&gt;
&lt;br /&gt;
=== When using NANN models I sometimes get &amp;quot;Runtime error in matrix library, Choldc failed. Matrix not positive definite&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
This is a problem in the mex implementation of the [http://www.iau.dtu.dk/research/control/nnsysid.html NNSYSID] toolbox.  Simply delete the mex files, the Matlab implementation will be used and this will not cause any problems.&lt;br /&gt;
&lt;br /&gt;
=== When using FANN models I sometimes get &amp;quot;Invalid MEX-file createFann.mexa64, libfann.so.2: cannot open shared object file: No such file or directory.&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
This means Matlab cannot find the [http://leenissen.dk/fann/ FANN] library itself to link to dynamically.  Make sure the FANN libraries (stored in src/matlab/contrib/fann/src/.libs/) are in your library path, e.g., on unix systems, make sure they are included in LD_LIBRARY_PATH.&lt;br /&gt;
&lt;br /&gt;
=== Undeﬁned function or method ’createFann’ for input arguments of type ’double’. ===&lt;br /&gt;
&lt;br /&gt;
See [[FAQ#When_using_FANN_models_I_sometimes_get_.22Invalid_MEX-file_createFann.mexa64.2C_libfann.so.2:_cannot_open_shared_object_file:_No_such_file_or_directory..22]]&lt;br /&gt;
&lt;br /&gt;
=== When trying to use SVM models I get &#039;Error during fitness evaluation: Error using ==&amp;gt; svmtrain at 170, Group must be a vector&#039; ===&lt;br /&gt;
&lt;br /&gt;
You forgot to build the SVM mex files for your platform.  For windows they are pre-compiled for you, on other systems you have to compile them yourself with the makefile.&lt;br /&gt;
&lt;br /&gt;
=== When running the toolbox you get something like &#039;??? Undefined variable &amp;quot;ibbt&amp;quot; or class &amp;quot;ibbt.sumo.config.ContextConfig.setRootDirectory&amp;quot;&#039; ===&lt;br /&gt;
&lt;br /&gt;
First see [[FAQ#What_is_the_relationship_between_Matlab_and_Java.3F | this FAQ entry]].&lt;br /&gt;
&lt;br /&gt;
This means Matlab cannot find the needed Java classes.  This typically means that you forgot to run &#039;startup&#039; (to set the path correctly) before running the toolbox (using &#039;go&#039;).  So make sure you always run &#039;startup&#039; before running &#039;go&#039; and that both commands are always executed in the toolbox root directory.&lt;br /&gt;
&lt;br /&gt;
If you did run &#039;startup&#039; correctly and you are still getting an error, check that Java is properly enabled:&lt;br /&gt;
&lt;br /&gt;
# typing &#039;usejava jvm&#039; should return 1 &lt;br /&gt;
# typing &#039;s = java.lang.String&#039;, this should &#039;&#039;not&#039;&#039; give an error&lt;br /&gt;
# typing &#039;version(&#039;-java&#039;)&#039; should return at least version 1.5.0&lt;br /&gt;
&lt;br /&gt;
If (1) returns 0, then the jvm of your Matlab installation is not enabled.  Check your Matlab installation or startup parameters (did you start Matlab with -nojvm?)&lt;br /&gt;
If (2) fails but (1) is ok, there is a very weird problem, check the Matlab documentation.&lt;br /&gt;
If (3) returns a version before 1.5.0 you will have to upgrade Matlab to a newer version or force Matlab to use a custom, newer, jvm (See the Matlab docs for how to do this).&lt;br /&gt;
&lt;br /&gt;
=== You get errors related to &#039;&#039;gaoptimset&#039;&#039;,&#039;&#039;psoptimset&#039;&#039;,&#039;&#039;saoptimset&#039;&#039;,&#039;&#039;newff&#039;&#039; not being found or unknown ===&lt;br /&gt;
&lt;br /&gt;
You are trying to use a component of the SUMO toolbox that requires a Matlab toolbox that you do not have.  See the [[System requirements]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== After upgrading I get all kinds of weird errors or warnings when I run my XML files ===&lt;br /&gt;
&lt;br /&gt;
See [[FAQ#How_do_I_upgrade_to_a_newer_version.3F]]&lt;br /&gt;
&lt;br /&gt;
=== I get a warning about duplicate samples being selected, why is this? ===&lt;br /&gt;
&lt;br /&gt;
Sometimes, in special circumstances, multiple sample selectors may select the same sample at the same time. Even though in most cases this is detected and avoided, it can still happen when multiple outputs are modelled in one run, and each output is sampled by a different sample selector. These sample selectors may then accidentally choose the same new sample location.&lt;br /&gt;
&lt;br /&gt;
=== I sometimes see the error of the best model go up, shouldn&#039;t it decrease monotonically? ===&lt;br /&gt;
&lt;br /&gt;
There is no short answer here, it depends on the situation.  Below &#039;single objective&#039; refers to the case where during the hyperparameter optimization (= the modeling iteration) combineOutputs=false, and there is only a single measure set to &#039;on&#039;.  The other cases are classified as &#039;multi objective&#039;.  See also [[Multi-Objective Modeling]].&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Sampling off&#039;&#039;&#039;&lt;br /&gt;
## &#039;&#039;Single objective&#039;&#039;: the error should always decrease monotonically, you should never see it rise. If it does [[reporting problems|report it as a bug]]&lt;br /&gt;
## &#039;&#039;Multi objective&#039;&#039;: There is a very small chance the error can temporarily decrease but it should be safe to ignore.  In this case it is best to use a multi objective enabled modeling algorithm&lt;br /&gt;
# &#039;&#039;&#039;Sampling on&#039;&#039;&#039;&lt;br /&gt;
## &#039;&#039;Single objective&#039;&#039;: inside each modeling iteration the error should always monotonically decrease.  At each sampling iteration the best models are updated (to reflect the new data), thus there the best model score may increase, this is normal behavior(*).  It is possible that the error increases for a short while, but as more samples come in it should decrease again.  If this does not happen you are using a poor measure or poor hyperparameter optimization algorithm, or there is a problem with the modeling technique itself (e.g., clustering in the datapoints is causing numerical problems).&lt;br /&gt;
## &#039;&#039;Multi objective&#039;&#039;: Combination of 1.2 and 2.1.&lt;br /&gt;
&lt;br /&gt;
(*) This is normal if you are using a measure like cross validation that is less reliable on little data than on more data.  However, in some cases you may wish to override this behavior if you are using a measure that is independent of the number of samples the model is trained with (e.g., a dense, external validation set).  In this case you can force a monotonic decrease by setting the &#039;keepOldModels&#039; option in the SUMO tag to true.  Use with caution!&lt;br /&gt;
&lt;br /&gt;
=== At the end of a run I get Undefined variable &amp;quot;ibbt&amp;quot; or class &amp;quot;ibbt.sumo.util.JpegImagesToMovie.createMovie&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
This is normal, the warning printed out before the error explains why:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;[WARNING] jmf.jar not found in the java classpath, movie creation may not work! Did you install the SUMO extension pack? Alternatively you can install the java media framwork from java.sun.com&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
By default, at the end of a run, the toolbox will try to generate a movie of all the intermediate model plots.  To do this it requires the extension pack to be installed (you can download it from the SUMO lab website).  So install the extension pack and you will no longer get the error.  Alternatively you can simply set the &amp;quot;createMovie&amp;quot; option in the &amp;lt;SUMO&amp;gt; tag to &amp;quot;false&amp;quot;.&lt;br /&gt;
So note that there is nothing to worry about, everything has run correctly, it is just the movie creation that is failing.&lt;br /&gt;
&lt;br /&gt;
=== On startup I get the error &amp;quot;java.io.IOException: Couldn&#039;t get lock for output/SUMO-Toolbox.%g.%u.log&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
This error means that SUMO is unable to create the log file.  Check the output directory exists and has the correct permissions.  If  your output directory is on a shared (network) drive this could also cause problems.  Also make sure you are running the toolbox (calling &#039;go&#039;) from the toolbox root directory, and not in some toolbox sub directory! This is very important.&lt;br /&gt;
&lt;br /&gt;
If you still have problems you can override the default logfile name and location as follows:&lt;br /&gt;
&lt;br /&gt;
In the &amp;lt;FileHandler&amp;gt; tag inside the &amp;lt;Logging&amp;gt; tag add the following option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
&amp;lt;Option key=&amp;quot;Pattern&amp;quot; value=&amp;quot;My_SUMO_Log_file.log&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This means that from now on the sumo log file will be saved as the file &amp;quot;My_SUMO_Log_file.log&amp;quot; in the SUMO root directory.  You can use any path you like.&lt;br /&gt;
For more information about this option see [http://java.sun.com/j2se/1.4.2/docs/api/java/util/logging/FileHandler.html the FileHandler Javadoc].&lt;br /&gt;
&lt;br /&gt;
=== The Toolbox crashes with &amp;quot;Too many open files&amp;quot; what should I do? ===&lt;br /&gt;
&lt;br /&gt;
This is a known bug, see [[Known_bugs#Version_6.1]].&lt;br /&gt;
&lt;br /&gt;
If this does not fix your problem then do the following:&lt;br /&gt;
&lt;br /&gt;
On Windows try increasing the limit in windows as dictated by the error message.  Also, when you get the error, use the fopen(&amp;quot;all&amp;quot;) command to see which files are open and send us the list of filenames.  Then we can maybe further help you debug the problem.  Even better would be to use the Process Explorer utility [http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx available here]. When you get the error, dont shut down Matlab but start Process explorer and see which SUMO-Toolbox related files are open.  If you then [[Reporting_problems|let us know]] we can further debug the problem.&lt;br /&gt;
&lt;br /&gt;
On Linux again don&#039;t shut down Matlab but:&lt;br /&gt;
&lt;br /&gt;
* open a new terminal window&lt;br /&gt;
* type:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
lsof &amp;gt; openFiles.txt&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
* Then [[Contact|send us]] the following information:&lt;br /&gt;
** the file openFiles.txt &lt;br /&gt;
** the exact Linux distribution you are using (Red Hat 10, CentOS 5, SUSE 11, etc).&lt;br /&gt;
** the output of&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
uname -a ; df -T ; mount&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As a temporary workaround you can try increasing the maximum number of open files ([http://www.linuxforums.org/forum/redhat-fedora-linux-help/64716-where-chnage-file-max-permanently.html see for example here]).  We are currently debugging this issue.&lt;br /&gt;
&lt;br /&gt;
In general: to be safe it is always best to do a SUMO run from a clean Matlab startup, especially if the run is important or may take a long time.&lt;br /&gt;
&lt;br /&gt;
=== When using the LS-SVM models I get lots of warnings: &amp;quot;make sure lssvmFILE.x (lssvmFILE.exe) is in the current directory, change now to MATLAB implementation...&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
The LS-SVMs have a C implementation and a Matlab implementation.  If you dont have the compiled mex files it will use the matlab implementation and give a warning.  But everything will work properly.  To get rid of the warnings, compile the mex files [[Installation#Windows|as described here]], this can be done very easily.  Or simply comment out the lines that produce the output in the lssvmlab directory in src/matlab/contrib.&lt;br /&gt;
&lt;br /&gt;
=== I get an error &amp;quot;Undefined function or method &#039;trainlssvm&#039; for input arguments of type &#039;cell&#039;&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
You most likely forgot to [[Installation#Extension_pack|install the extension pack]].&lt;br /&gt;
&lt;br /&gt;
=== When running the SUMO-Toolbox under Linux, the [http://en.wikipedia.org/wiki/X_Window_System X server] suddenly restarts and I am logged out of my session ===&lt;br /&gt;
&lt;br /&gt;
Note that in Linux there is an explicit difference between the [http://en.wikipedia.org/wiki/Linux_kernel kernel] and the [http://en.wikipedia.org/wiki/X_Window_System X display server].  If the kernel crashes or panics your system completely freezes (you have to reset manually) or your computer does a full reboot.  Luckily this is very rare.  However, if you display server (X) crashes or restarts it means your operating system is still running fine, its just that you have to log in again since your graphical session has terminated.  The FAQ entry is only for the latter.  If you find your kernel is panicing or freezing, that is a more fundamental problem and you should contact your system admin.&lt;br /&gt;
&lt;br /&gt;
So what happens is that after a few seconds when the toolbox wants to plot the first model [http://en.wikipedia.org/wiki/X_Window_System X] crashes and you are suddenly presented with a login screen.  The problem is not due to SUMO but rather to the Matlab - Display server interaction.&lt;br /&gt;
&lt;br /&gt;
What you should first do is set plotModels to false in the [[Config:ContextConfig]] tag, run again and see if the problem occurs again.  If it does please [[Reporting_problems| report it]].  If the problem does not occur you can then try the following:&lt;br /&gt;
&lt;br /&gt;
* Log in as root (or use [http://en.wikipedia.org/wiki/Sudo sudo])&lt;br /&gt;
* Edit the following configuration file using a text editor (pico, nano, vi, kwrite, gedit,...)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
/etc/X11/xorg.conf&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: the exact location of the xorg.conf file may vary on your system.&lt;br /&gt;
&lt;br /&gt;
* Look for the following line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
  Load         &amp;quot;glx&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Comment it out by replacing it by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#  Load         &amp;quot;glx&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Then save the file, restart your X server (if you do not know how to do this simply reboot your computer)&lt;br /&gt;
* Log in again, and try running the toolbox (making sure plotModels is set to true again).  It should now work.  If it still does not please [[Reporting_problems| report it]].&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
* this is just an empirical workaround, if you have a better idea please [[Contact|let us know]]&lt;br /&gt;
* if you wish to debug further yourself please check the Xorg log files and those in /var/log&lt;br /&gt;
* another possible workaround is to start matlab with the &amp;quot;-nodisplay&amp;quot; option.  That could work as well.&lt;br /&gt;
&lt;br /&gt;
=== I get the error &amp;quot;Failed to close Matlab pool cleanly, error is Too many output arguments&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
This happens if you run the toolbox on Matlab version 2008a and you have the parallel computing toolbox installed.  You can simply ignore this error message, it does not cause any problems. If you want to use SUMO with the parallel computing toolbox you will need Matlab 2008b.&lt;br /&gt;
&lt;br /&gt;
=== The toolbox seems to keep on running forever, when or how will it stop? ===&lt;br /&gt;
&lt;br /&gt;
The toolbox will keep on generating models and selecting data until one of the termination criteria has been reached. It is up to &#039;&#039;you&#039;&#039; to choose these targets carefully, so how low the toolbox runs simply depends on what targets you choose.  Please see [[Running#Understanding_the_control_flow]].&lt;br /&gt;
&lt;br /&gt;
Of course choosing a-priori targets up front is not always easy and there is no real solution for this, except thinking well about what type of model you want (see [[FAQ#I_dont_like_the_final_model_generated_by_SUMO_how_do_I_improve_it.3F]]).  In doubt you can always use a small value (or 0) and then simply quit the running toolbox using Ctrl-C when you think its been enough.&lt;br /&gt;
&lt;br /&gt;
While one could implement fancy, automatic stopping algorithms, their actual benefit is questionable.&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=FAQ&amp;diff=5769</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=FAQ&amp;diff=5769"/>
		<updated>2012-02-10T15:57:05Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* What is XML? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General ==&lt;br /&gt;
&lt;br /&gt;
=== What is a global surrogate model? ===&lt;br /&gt;
&lt;br /&gt;
A global [http://en.wikipedia.org/wiki/Surrogate_model surrogate model] is a mathematical model that mimics the behavior of a computationally expensive simulation code over &#039;&#039;&#039;the complete parameter space&#039;&#039;&#039; as accurately as possible, using as little data points as possible. So note that optimization is not the primary goal, although it can be done as a post-processing step. Global surrogate models are useful for:&lt;br /&gt;
&lt;br /&gt;
* design space exploration, to get a &#039;&#039;feel&#039;&#039; of how the different parameters behave&lt;br /&gt;
* sensitivity analysis&lt;br /&gt;
* &#039;&#039;what-if&#039;&#039; analysis&lt;br /&gt;
* prototyping&lt;br /&gt;
* visualization&lt;br /&gt;
* ...&lt;br /&gt;
&lt;br /&gt;
In addition they are a cheap way to model large scale systems, multiple global surrogate models can be chained together in a model cascade.&lt;br /&gt;
&lt;br /&gt;
See also the [[About]] page.&lt;br /&gt;
&lt;br /&gt;
=== What about surrogate driven optimization? ===&lt;br /&gt;
&lt;br /&gt;
When coining the term &#039;&#039;&#039;surrogate driven optimization&#039;&#039;&#039; most people associate it with trust-region strategies and simple polynomial models. These frameworks first construct a local surrogate which is optimized to find an optimum. Afterwards, a move limit strategy decides how the local surrogate is scaled and/or moved through the input space. Subsequently the surrogate is rebuild and optimized. I.e. the surrogate zooms in to the global optimum. For instance the [http://www.cs.sandia.gov/DAKOTA/ DAKOTA] Toolbox implements such strategies where the surrogate construction is separated from optimization.&lt;br /&gt;
&lt;br /&gt;
Such a framework was earlier implemented in the SUMO Toolbox but was deprecated as it didn&#039;t fit the philosophy and design of the toolbox. &lt;br /&gt;
&lt;br /&gt;
Instead another, equally powerful, approach was taken. The current optimization framework is in fact a sampling selection strategy that balances local and global search. In other words, it balances between exploring the input space and exploiting the information the surrogate gives us.&lt;br /&gt;
&lt;br /&gt;
A configuration example can be found [[Config:SampleSelector#expectedImprovement|here]].&lt;br /&gt;
&lt;br /&gt;
=== What is (adaptive) sampling? Why is it used? ===&lt;br /&gt;
&lt;br /&gt;
In classical Design of Experiments you need to specify the design of your experiment up-front. Or in other words, you have to say up-front how many data points you need and how they should be distributed.  Two examples are Central Composite Designs and Latin Hypercube designs.  However, if your data is expensive to generate (e.g., an expensive simulation code) it is not clear how many points are needed up-front.  Instead data points are selected adaptively, only a couple at a time.  This process of incrementally selecting new data points in regions that are the most interesting is called adaptive sampling, sequential design, or active learning.  Of course the sampling process needs to start from somewhere so the very first set of points is selected based on a fixed, classic experimental design.  See also [[Running#Understanding_the_control_flow]].&lt;br /&gt;
SUMO provides a number of different sampling algorithms: [[SampleSelector]]&lt;br /&gt;
&lt;br /&gt;
Of course sometimes you dont want to do sampling.  For example if you have a fixed dataset you just want to load all the data in one go and model that.  For how to do this see [[FAQ#How_do_I_turn_off_adaptive_sampling_.28run_the_toolbox_for_a_fixed_set_of_samples.29.3F]].&lt;br /&gt;
&lt;br /&gt;
=== What about dynamical, time dependent data? ===&lt;br /&gt;
&lt;br /&gt;
The original design and purpose was to tackle static input-output systems, where there is no memory. Just a complex mapping that must be learnt and approximated. Of course you can take a fixed time interval and apply the toolbox but that typically is not a desired solution.  Usually you are interested in time series prediction, e.g., given a set of output values from time t=0 to t=k, predict what happens at time t=k+1,k+2,...&lt;br /&gt;
&lt;br /&gt;
The toolbox was originally not intended for this purpose.  However, it is quite easy to add support for recurrent models.  Automatic generation of dynamical models would involve adding a new model type (just like you would add a new regression technique) or require adapting an existing one.  For example it would not be too much work to adapt the ANN or SVM models to support dynamic problems.  The only extra work besides that would be to add a new [[Measures|Measure]] that can evaluate the fidelity of the models&#039; prediction.&lt;br /&gt;
&lt;br /&gt;
Naturally though, you would be unable to use sample selection (since it makes no sense in those problems).  Unless of course there is a specialized need for it.  In that case you would add a new [[SampleSelector]].&lt;br /&gt;
&lt;br /&gt;
For more information on this topic [[Contact]] us.&lt;br /&gt;
&lt;br /&gt;
=== What about classification problems? ===&lt;br /&gt;
&lt;br /&gt;
The main focus of the SUMO Toolbox is on regression/function approximation.  However, the framework for hyperparameter optimization, model selection, etc.  can also be used for classification.  Starting from version 6.3 a demo file is included in the distribution that shows how this works on the well known two spiral test problem.&lt;br /&gt;
&lt;br /&gt;
=== Does SUMO support discrete inputs/outputs ===&lt;br /&gt;
&lt;br /&gt;
Not, if you mean in a smart way.  There is a way to flag an input/output as discrete but it is not used anywhere.  It is on the wishlist but we have not been able to get to it yet.  Discrete inputs are just handled as if they were continuous.  Depending on how many levels there are and if there is an ordering this may work ok or not work at all.  You could of course add your own model type that can handle these :)  As for discrete outputs see [[FAQ#What_about_classification_problems.3F]].&lt;br /&gt;
&lt;br /&gt;
=== Can the toolbox drive my simulation code directly? ===&lt;br /&gt;
&lt;br /&gt;
Yes it can.  See the [[Interfacing with the toolbox]] page.&lt;br /&gt;
&lt;br /&gt;
=== What is the difference between the M3-Toolbox and the SUMO-Toolbox? ===&lt;br /&gt;
&lt;br /&gt;
The SUMO toolbox is a complete, feature-full framework for automatically generating approximation models and performing adaptive sampling. In contrast, the M3-Toolbox was more of a proof-of-principle.&lt;br /&gt;
&lt;br /&gt;
=== What happened to the M3-Toolbox? ===&lt;br /&gt;
&lt;br /&gt;
The M3 Toolbox project has been discontinued (Fall 2007) and superseded by the SUMO Toolbox. Please contact tom.dhaene@ua.ac.be for any inquiries and requests about the M3 Toolbox.&lt;br /&gt;
&lt;br /&gt;
=== How can I stay up to date with the latest news? ===&lt;br /&gt;
&lt;br /&gt;
To stay up to date with the latest news and releases, we also recommend subscribing to our newsletter [http://www.sumo.intec.ugent.be here].  Traffic will be kept to a minimum (1 message every 2-3 months) and you can unsubscribe at any time.&lt;br /&gt;
&lt;br /&gt;
You can also follow our blog: [http://sumolab.blogspot.com/ http://sumolab.blogspot.com/].&lt;br /&gt;
&lt;br /&gt;
=== What is the roadmap for the future? ===&lt;br /&gt;
&lt;br /&gt;
There is no explicit roadmap since much depends on where our research leads us, what feedback we get, which problems we are working on, etc.  However, to get an idea of features to come you can always check the [[Whats new]] page.&lt;br /&gt;
&lt;br /&gt;
You can also follow our blog: [http://sumolab.blogspot.com/ http://sumolab.blogspot.com/].&lt;br /&gt;
&lt;br /&gt;
=== Will there be an R/Scilab/Octave/Sage/.. version? ===&lt;br /&gt;
&lt;br /&gt;
At the start of the project we considered moving from Matlab to one of the available open source alternatives.  However, after much discussion we decided against this for several reasons, including:&lt;br /&gt;
&lt;br /&gt;
* Existing experience and know-how of the development team&lt;br /&gt;
* The widespread use of the Matlab platform in the target application domains&lt;br /&gt;
* The quality and amount of available Matlab documentation&lt;br /&gt;
* The quality and number of Matlab toolboxes&lt;br /&gt;
* Support for object orientation (inheritance, polymorphism, etc.)&lt;br /&gt;
* Many well documented interfacing options (especially the seamless integration with Java)&lt;br /&gt;
&lt;br /&gt;
Matlab, as a proprietary platform, definitely has its problems and deficiencies but the number of advanced algorithms and available toolboxes make it a very attractive platform.  Equally important is the fact that every function is properly documented, tested, and includes examples, tutorials, and in some cases GUI tools.  A lot of things would have been a lot harder and/or time consuming to implement on one of the other platforms.  Add to that the fact that many engineers (particularly in aerospace) already use Matlab quite heavily.  Thus given our situation, goals, and resources at the time, Matlab was the best choice for us.  &lt;br /&gt;
&lt;br /&gt;
The other platforms remain on our radar however, and we do look into them from time to time.  Though, with our limited resources porting to one of those platforms is not (yet) cost effective.&lt;br /&gt;
&lt;br /&gt;
=== What are collaboration options? ===&lt;br /&gt;
&lt;br /&gt;
We will gladly help out with any SUMO-Toolbox related questions or problems. However, since we are a university research group the most interesting goal for us is to work towards some joint publication (e.g., we can help with the modeling of your problem).  Alternatively, it is always nice if we could use your data/problem (fully referenced and/or anonymized if necessary of course) as an example application during a conference presentation or in a PhD thesis.&lt;br /&gt;
&lt;br /&gt;
The most interesting case is if your problem involves sample selection and modeling.  This means you have some simulation code or script to drive and you want an accurate model while minimizing the number of data points.  In this case, in order for us to optimally help you it would be easiest if we could run your simulation code (or script) locally or access it remotely.  Else its difficult to give good recommendations about what settings to use.&lt;br /&gt;
&lt;br /&gt;
If this is not possible (e.g., expensive, proprietary or secret modeling code) or if your problem does not involve sample selection, you can send us a fixed data set that is representative of your problem. Again, this may be fully anonymized and will be kept confidential of course.&lt;br /&gt;
&lt;br /&gt;
In either case (code or dataset) remember:&lt;br /&gt;
&lt;br /&gt;
* the data file should be an ASCII file in column format (each row containing one data point) (see also [[Interfacing_with_the_toolbox]])&lt;br /&gt;
* include a short description of your data:&lt;br /&gt;
** number of inputs and number of outputs&lt;br /&gt;
** the range of each input (or scaled to [-1 1] if you do not wish to disclose this)&lt;br /&gt;
** if the outputs are real or complex valued&lt;br /&gt;
** how noisy the data is or if it is completely deterministic (computer simulation) (please also see: [[FAQ#My_data_contains_noise_can_the_SUMO-Toolbox_help_me.3F]]).&lt;br /&gt;
** if possible the expected range of each output (or scaled if you do not wish to disclose this)&lt;br /&gt;
** if possible the names of each input/output + a short description of what they mean&lt;br /&gt;
** any further insight you have about the data, expected behavior, expected importance of each input, etc.&lt;br /&gt;
&lt;br /&gt;
If you have any further questions or comments related to this please [[Contact]] us.&lt;br /&gt;
&lt;br /&gt;
=== Can you help me model my problem? ===&lt;br /&gt;
&lt;br /&gt;
Please see the previous question: [[FAQ#What_are_collaboration_options.3F]]&lt;br /&gt;
&lt;br /&gt;
== Installation and Configuration ==&lt;br /&gt;
&lt;br /&gt;
=== What is the relationship between Matlab and Java? ===&lt;br /&gt;
&lt;br /&gt;
Many people do not know this, but your Matlab installation automatically includes a Java virtual machine.  By default, Matlab seamlessly integrates with Java, allowing you to create Java objects from the command line (e.g., &#039;s = java.lang.String&#039;).  It is possible to disable java support but in order to use the SUMO Toolbox it should not be.  To check if Java is enabled you can use the &#039;usejava&#039; command.&lt;br /&gt;
&lt;br /&gt;
=== What is Java, why do I need it, do I have to install it, etc. ? ===&lt;br /&gt;
&lt;br /&gt;
The short answer is: no, dont worry about it.  The long answer is: Some of the code of the SUMO Toolbox is written in [http://en.wikipedia.org/wiki/Java_(programming_language) Java], since it makes a lot more sense in many situations and is a proper programming language instead of a scripting language like Matlab.  Since Matlab automatically includes a JVM to run Java code there is nothing you need to do or worry about (see the previous FAQ entry).  Unless its not working of course, in that case see [[FAQ#When_running_the_toolbox_you_get_something_like_.27.3F.3F.3F_Undefined_variable_.22ibbt.22_or_class_.22ibbt.sumo.config.ContextConfig.setRootDirectory.22.27]].&lt;br /&gt;
&lt;br /&gt;
=== What is XML? ===&lt;br /&gt;
&lt;br /&gt;
XML stands for eXtensible Markup Language and is related to HTML (= the stuff web pages are written in).  The first thing you have to understand is that &#039;&#039;&#039;does not do anything&#039;&#039;&#039;. Honest. Many engineers are not used to it and think it is some complicated computer programming language-stuff-thingy.  This is of course not the case (we ignore some of the fancy stuff you can do with it for now).  XML is a markup language meaning, it provides some rules how you can annotate or structure existing text.&lt;br /&gt;
&lt;br /&gt;
The way SUMO uses XML is really simple and there is not much to understand (for more information on how SUMO uses XML go this page [[Config:ToolboxConfiguration#Interpreting_the_configuration_file|page]]). First some simple terminology.  Take the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;Foo attr=&amp;quot;bar&amp;quot;&amp;gt;bla bla bla&amp;lt;/Foo&amp;gt; &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here we have &#039;&#039;&#039;a tag&#039;&#039;&#039; called &#039;&#039;Foo&#039;&#039; containing text &#039;&#039;bla bla bla&#039;&#039;.  The tag Foo also has an &#039;&#039;&#039;attribute&#039;&#039;&#039; &#039;&#039;attr&#039;&#039; with value &#039;&#039;bar&#039;&#039;.  &#039;&amp;lt;Foo&amp;gt;&#039; is what we call the &#039;&#039;&#039;opening tag&#039;&#039;&#039;, and &#039;&amp;lt;/Foo&amp;gt;&#039; is the &#039;&#039;&#039;closing tag&#039;&#039;&#039;.  Each time you open a tag you must close it again.  How you name the tags or attributes it totally up to you, you choose :)&lt;br /&gt;
&lt;br /&gt;
Lets take a more interesting example.  Here we have used XML to represent information about a receipe for pancakes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;recipe category=&amp;quot;dessert&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;title&amp;gt;Pancakes&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;sumo@intec.ugent.be&amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;date&amp;gt;Wed, 14 Jun 95&amp;lt;/date&amp;gt;&lt;br /&gt;
  &amp;lt;description&amp;gt;&lt;br /&gt;
    Good old fashioned pancakes.&lt;br /&gt;
  &amp;lt;/description&amp;gt;&lt;br /&gt;
  &amp;lt;ingredients&amp;gt;&lt;br /&gt;
    &amp;lt;item&amp;gt;&lt;br /&gt;
        &amp;lt;amount&amp;gt;3&amp;lt;/amount&amp;gt;&lt;br /&gt;
        &amp;lt;type&amp;gt;eggs&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;/item&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;item&amp;gt;&lt;br /&gt;
         &amp;lt;amount&amp;gt;0.5 tablespoon&amp;lt;/amount&amp;gt;&lt;br /&gt;
         &amp;lt;type&amp;gt;salt&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;/item&amp;gt;&lt;br /&gt;
     ...&lt;br /&gt;
  &amp;lt;/ingredients&amp;gt;&lt;br /&gt;
  &amp;lt;preparation&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
  &amp;lt;/preparation&amp;gt;&lt;br /&gt;
 &amp;lt;/recipe&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So basically, you see that XML is just a way to structure, order, and group information.  Thats it!  So SUMO basically uses it to store and structure configuration options.  And this works well due to the nice hierarchical nature of XML.&lt;br /&gt;
&lt;br /&gt;
If you understand this there is nothing else to it in order to be able to understand the SUMO configuration files.  If you need more information see the tutorial here: [http://www.w3schools.com/XML/xml_whatis.asp http://www.w3schools.com/XML/xml_whatis.asp].  You can also have a look at the wikipedia page here: [http://en.wikipedia.org/wiki/XML http://en.wikipedia.org/wiki/XML]&lt;br /&gt;
&lt;br /&gt;
=== Why does SUMO use XML? ===&lt;br /&gt;
&lt;br /&gt;
XML is the defacto standard way of structuring information. This ranges from spreadsheet files (Microsoft Excel for example), to configuration data, to scientific data, ...  There are even whole database systems based solely on XML.  So basically, its an intuitive way to structure data and it is used everywhere.  This makes that there are a very large number of libraries and programming languages available that can parse, and handle XML easily.  That means less work for the programmer.  Then of course there is stuff like XSLT, XQuery, etc that makes life even easier.&lt;br /&gt;
So basically, it would not make sense for SUMO to use any other format :)&lt;br /&gt;
&lt;br /&gt;
=== I get an error that SUMO is not yet activated ===&lt;br /&gt;
&lt;br /&gt;
Make sure you installed the activation file that was mailed to you as is explained in the [[Installation]] instructions.  Also double check your system meets the [[System requirements]] and that [http://www.sumowiki.intec.ugent.be/index.php/FAQ#When_running_the_toolbox_you_get_something_like_.27.3F.3F.3F_Undefined_variable_.22ibbt.22_or_class_.22ibbt.sumo.config.ContextConfig.setRootDirectory.22.27|java java is enabled].  To fully verify that the activation file installation is correct ensure that the file ContextConfig.class is present in the directory &#039;&#039;&amp;lt;SUMO installation directory&amp;gt;/bin/java/ibbt/sumo/config&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Please note that more flexible research licenses are available if it is possible to [[FAQ#What_are_collaboration_options.3F|collaborate in any way]].&lt;br /&gt;
&lt;br /&gt;
== Upgrading ==&lt;br /&gt;
&lt;br /&gt;
=== How do I upgrade to a newer version? ===&lt;br /&gt;
&lt;br /&gt;
Delete your old &amp;lt;code&amp;gt;&amp;lt;SUMO-Toolbox-directory&amp;gt;&amp;lt;/code&amp;gt; completely and replace it by the new one.  Install the new activation file / extension pack as  before (see [[Installation]]), start Matlab and make sure the default run works.  To port your old configuration files to the new version: make a copy of default.xml (from the new version) and copy over your custom changes (from the old version) one by one.  This should prevent any weirdness if the XML structure has changed between releases.&lt;br /&gt;
&lt;br /&gt;
If you had a valid activation file for the previous version, just [[Contact]] us (giving your SUMOlab website username) and we will send you a new activation file.  Note that to update an activation file you must first unzip a copy of the toolbox to a new directory and install the activation file as if it was the very first time.  Upgrading of an activation file without performing a new toolbox install is (unfortunately) not (yet) supported.&lt;br /&gt;
&lt;br /&gt;
== Using ==&lt;br /&gt;
&lt;br /&gt;
=== I have no idea how to use the toolbox, what should I do? ===&lt;br /&gt;
&lt;br /&gt;
See: [[Running#Getting_started]]&lt;br /&gt;
&lt;br /&gt;
=== I want to try one of the different examples ===&lt;br /&gt;
&lt;br /&gt;
See [[Running#Running_different_examples]].&lt;br /&gt;
&lt;br /&gt;
=== I want to model my own problem ===&lt;br /&gt;
&lt;br /&gt;
See : [[Adding an example]].&lt;br /&gt;
&lt;br /&gt;
=== I want to contribute some data/patch/documentation/... ===&lt;br /&gt;
&lt;br /&gt;
See : [[Contributing]].&lt;br /&gt;
&lt;br /&gt;
=== How do I interface with the SUMO Toolbox? ===&lt;br /&gt;
&lt;br /&gt;
See : [[Interfacing with the toolbox]].&lt;br /&gt;
&lt;br /&gt;
=== What configuration options (model type, sample selection algorithm, ...) should I use for my problem? ===&lt;br /&gt;
&lt;br /&gt;
See [[General_guidelines]].&lt;br /&gt;
&lt;br /&gt;
=== Ok, I generated a model, what can I do with it? ===&lt;br /&gt;
&lt;br /&gt;
See: [[Using a model]].&lt;br /&gt;
&lt;br /&gt;
=== How can I share a model created by the SUMO Toolbox? ===&lt;br /&gt;
&lt;br /&gt;
See : [[Using a model#Model_portability| Model portability]].&lt;br /&gt;
&lt;br /&gt;
=== I dont like the final model generated by SUMO how do I improve it? ===&lt;br /&gt;
&lt;br /&gt;
Before you start the modeling you should really ask youself this question: &#039;&#039;What properties do I want to see in the final model?&#039;&#039;  You have to think about what for you constitutes a good model and what constitutes a poor model. Then you should rank those properties depending on how important you find them.  Examples are:&lt;br /&gt;
&lt;br /&gt;
* accuracy in the training data&lt;br /&gt;
** is it important that the error in the training data is exactly 0, or do you prefer some smoothing&lt;br /&gt;
* accuracy outside the training data&lt;br /&gt;
** this is the validation or test error, how important is proper generalization (usually this is very important)&lt;br /&gt;
* what does accuracy mean to you? a low maximum error, a low average error, both, ...&lt;br /&gt;
* smoothness&lt;br /&gt;
** should your model be perfectly smooth or is it acceptable that you have a few small ripples here and there for example&lt;br /&gt;
* are some regions of the response more important than others?&lt;br /&gt;
** for example you may want to be certain that the minima/maxima are captured very accurately but everything in between is less important&lt;br /&gt;
* are there particular special features that your model should have&lt;br /&gt;
** for example, capture underlying poles or discontinuities correctly&lt;br /&gt;
* extrapolation capability&lt;br /&gt;
* ...&lt;br /&gt;
&lt;br /&gt;
It is important to note that often these criteria may be conflicting.  The classical example is fitting noisy data: the lower your training error the higher your testing error.  A natural approach is to combine multiple criteria, see [[Multi-Objective Modeling]].&lt;br /&gt;
&lt;br /&gt;
Once you have decided on a set of requirements the question is then, can the SUMO-Toolbox produce a model that meets them? In SUMO model generation is driven by one or more [[Measures]].  So you should choose the combination of [[Measures]] that most closely match your requirements.  Of course we can not provide a Measure for every single property, but it is very straightforward to [[Add_Measure|add your own Measure]].&lt;br /&gt;
&lt;br /&gt;
Now, lets say you have chosen what you think are the best Measures but you are still not happy with the final model.  Reasons could be:&lt;br /&gt;
&lt;br /&gt;
* you need more modeling iterations or you need to build more models per iteration (see [[Running#Understanding_the_control_flow]]). This will result in a more extensive search of the model parameter space, but will take longer to run.&lt;br /&gt;
* you should switch to a different model parameter optimization algorithm (e.g., for example instead of the Pattern Search variant, try the Genetic Algorithm variant of your AdaptiveModelBuilder.)&lt;br /&gt;
* the model type you are using is not ideally suited to your data&lt;br /&gt;
* there simply is not enough data, use a larger initial design or perform more sampling iterations to get more information per dimension&lt;br /&gt;
* maybe the sample distribution is causing troubles for your model (e.g., Kriging can have problems with clustered data).  In that case it could be worthwhile to choose a different sample selection algorithm.&lt;br /&gt;
* the range of your response variable is not ideal (for example, neural networks have trouble modeling data if the range of the outputs is very very small)&lt;br /&gt;
&lt;br /&gt;
You may also refer to the following [[General_guidelines]].  Finally, of course it may be that your problem is simply a very difficult one and does not approximate well.  But, still you should at least get something satisfactory.&lt;br /&gt;
&lt;br /&gt;
If you are having these kinds of problems, please [[Reporting_problems|let us know]] and we will gladly help out.&lt;br /&gt;
&lt;br /&gt;
=== My data contains noise can the SUMO-Toolbox help me? ===&lt;br /&gt;
&lt;br /&gt;
The original purpose of the SUMO-Toolbox was for it to be used in conjunction with computer simulations.  Since these are fully deterministic you do not have to worry about noise in the data and all the problems it causes.  However, the methods in the toolbox are general fitting methods that work on noisy data as well.  So yes, the toolbox can be used with noisy data, but you will just have to be more careful about how you apply the methods and how you perform model selection.  Its only when you use the toolbox with a noisy simulation engine that a few special  options may need to be set.  In that case [[Contact]] us for more information.&lt;br /&gt;
&lt;br /&gt;
Note though, that the toolbox is not a statistical package, if you have noisy data and you need noise estimation algorithms, kernel smoothing algorithms, etc.  you should look towards other tools.&lt;br /&gt;
&lt;br /&gt;
=== What is the difference between a ModelBuilder and a ModelFactory? ===&lt;br /&gt;
&lt;br /&gt;
See [[Add Model Type]].&lt;br /&gt;
&lt;br /&gt;
=== Why are the Neural Networks so slow? ===&lt;br /&gt;
&lt;br /&gt;
The ANN models are an extremely powerful model type that give very good results in many problems.  However, they are quite slow to use.  There are some things you can do:&lt;br /&gt;
&lt;br /&gt;
* use trainlm or trainscg instead of the default training function trainbr.  trainbr gives very good, smooth results but is slower to use.  If results with trainlm are not good enough, try using msereg as a performance function.&lt;br /&gt;
* try setting the training goal (= the SSE to reach during training) to a small positive number (e.g., 1e-5) instead of 0.&lt;br /&gt;
* check that the output range of your problem is not very small.  If your response data lies between 10e-5 and 10e-9 for example it will be very hard for the neural net to learn it.  In that case rescale your data to a more sane range.&lt;br /&gt;
* switch from ANN to one of the other neural network modelers: fanngenetic or nanngenetic. These are a lot faster than the default backend based on the [http://www.mathworks.com/products/neuralnet/ Matlab Neural Network Toolbox].  However, the accuracy is usually not as good.&lt;br /&gt;
* If you are using [[Measures#CrossValidation| CrossValidation]] try to switch to a different measure since CrossValidation is very expensive to use. CrossValidation is used by default if you have not defined a [[Measures| measure]] yourself.  When using one of the neural network model types, try to use a different measure if you can.  For example, our tests have shown that minimizing the sum of [[Measures#SampleError| SampleError]] and [[Measures#LRMMeasure| LRMMeasure]] can give equal or even better results than CrossValidation, while being much cheaper (see [[Multi-Objective Modeling]] for how to combine multiple measures).  See also the comments in &amp;lt;code&amp;gt;default.xml&amp;lt;/code&amp;gt; for examples.&lt;br /&gt;
* Finally, as with any model type things will slow down if you have many dimensions or very large amounts of data.  If that is the case, try some dimensionality reduction or subsampling techniques.&lt;br /&gt;
&lt;br /&gt;
See also [[FAQ#How_can_I_make_the_toolbox_run_faster.3F]]&lt;br /&gt;
&lt;br /&gt;
=== How can I make the toolbox run faster? ===&lt;br /&gt;
&lt;br /&gt;
There are a number of things you can do to speed things up.  These are listed below.  Remember though that the main reason the toolbox may seem to be slow is due to the many models being built as part of the hyperparameter optimization.  Please make sure you fully understand the [[Running#Understanding_the_control_flow|control flow described here]] before trying more advanced options.&lt;br /&gt;
&lt;br /&gt;
* First of all check that your virus scanner is not interfering with Matlab. If McAfee or any other program wants to scan every file SUMO generates this really slows things down and your computer becomes unusable.&lt;br /&gt;
&lt;br /&gt;
* Turn off the plotting of models in [[Config:ContextConfig#PlotOptions| ContextConfig]], you can always generate plots from the saved mat files&lt;br /&gt;
&lt;br /&gt;
* This is an important one.  For most model builders there is an option &amp;quot;maxFunEals&amp;quot;, &amp;quot;maxIterations&amp;quot;, or equivalent.  Change this value to change the maximum number of models built between 2 sampling iterations.  The higher this number, the slower, but the better the models &#039;&#039;may&#039;&#039; be.  Equivalently, for the Genetic model builders reduce the population size and the number of generations.&lt;br /&gt;
&lt;br /&gt;
* If you are using [[Measures#CrossValidation]] see if you can avoid it and use one of the other measures or a combination of measures (see [[Multi-Objective Modeling]]&lt;br /&gt;
&lt;br /&gt;
* If you are using a very dense [[Measures#ValidationSet]] as your Measure, this means that every single model will be evaluated on that data set.  For some models like RBF, Kriging, SVM, this can slow things down.&lt;br /&gt;
&lt;br /&gt;
* Disable some, or even all of the [[Config:ContextConfig#Profiling| profilers]] or disable the output handlers that draw charts.  For example, you might use the following configuration for the profilers:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Profiling&amp;gt;&lt;br /&gt;
	&amp;lt;Profiler name=&amp;quot;.*share.*|.*ensemble.*|.*Level.*&amp;quot; enabled=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;Output type=&amp;quot;toImage&amp;quot;/&amp;gt;&lt;br /&gt;
		&amp;lt;Output type=&amp;quot;toFile&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;/Profiler&amp;gt;&lt;br /&gt;
			&lt;br /&gt;
	&amp;lt;Profiler name=&amp;quot;.*&amp;quot; enabled=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;Output type=&amp;quot;toFile&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;/Profiler&amp;gt;&lt;br /&gt;
&amp;lt;/Profiling&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;.*&amp;quot; means match any one or more characters ([http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html see here for the full list of supported wildcards]).  Thus in this example all the profilers that have &amp;quot;share&amp;quot;, &amp;quot;ensemble&amp;quot;, or &amp;quot;Level&amp;quot; in their name shoud be enabled and should be saved as a text file (toFile) AND as an image file (toImage).  All the other profilers should be saved just to file. The idea is to only save to image what you want as an image since image generation is expensive.  If you do this or switch off image generation completely you will see everything run much faster.&lt;br /&gt;
&lt;br /&gt;
* Decrease the logging granularity, a log level of FINE (the default is FINEST or ALL) is more then granular enough.  Setting it to FINE, INFO, or even WARNING should speed things up.&lt;br /&gt;
&lt;br /&gt;
* If you have a multi-core/multi-cpu machine:&lt;br /&gt;
** if you have the Matlab Parallel Computing Toolbox, try setting the parallelMode option to true in [[Config:ContextConfig]].  Now all model training occurs in parallel.  This may give unexpected errors in some cases so beware when using.&lt;br /&gt;
** if you are using a native executable or script as the sample evaluator set the threadCount variable in [[Config:SampleEvaluator#LocalSampleEvaluator| LocalSampleEvaluator]] equal to the number of cores/CPUs (only do this if it is ok to start multiple instances of your simulation script in parallel!)&lt;br /&gt;
&lt;br /&gt;
* Dont use the Min-Max measure, it can slow things down. See also [[FAQ#How_do_I_force_the_output_of_the_model_to_lie_in_a_certain_range]]&lt;br /&gt;
&lt;br /&gt;
* If you are using neural networks see [[FAQ#Why_are_the_Neural_Networks_so_slow.3F]]&lt;br /&gt;
&lt;br /&gt;
* If you are having problems with very slow or seemingly hanging runs:&lt;br /&gt;
** Do a run inside the [http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/matlab_env/f9-17018.html&amp;amp;http://www.google.be/search?client=firefox-a&amp;amp;rls=org.mozilla%3Aen-US%3Aofficial&amp;amp;channel=s&amp;amp;hl=nl&amp;amp;q=matlab+profiler&amp;amp;meta=&amp;amp;btnG=Google+zoeken Matlab profiler] and see where most time is spent.&lt;br /&gt;
&lt;br /&gt;
** Monitor CPU and physical/virtual memory usage while the SUMO toolbox is running and see if you notice anything strange.  &lt;br /&gt;
&lt;br /&gt;
* Also note that by default Matlab only allocates about 117 MB memory space for the Java Virtual Machine. If you would like to increase this limit (which you should) please follow the instructions [http://www.mathworks.com/support/solutions/data/1-18I2C.html?solution=1-18I2C here]. See also the general memory instructions [http://www.mathworks.com/support/tech-notes/1100/1106.html here].&lt;br /&gt;
&lt;br /&gt;
To check if your SUMO run has hanged, monitor your log file (with the level set at least to FINE).  If you see no changes for about 30 minutes the toolbox will probably have stalled.  [[Reporting problems| report the problems here]].&lt;br /&gt;
&lt;br /&gt;
Such problems are hard to identify and fix so it is best to work towards a reproducible test case if you think you found a performance or scalability issue.&lt;br /&gt;
&lt;br /&gt;
=== How do I build models with more than one output ===&lt;br /&gt;
&lt;br /&gt;
Sometimes you have multiple responses that you want to model at once.  See [[Running#Models_with_multiple_outputs]]&lt;br /&gt;
&lt;br /&gt;
=== How do I turn off adaptive sampling (run the toolbox for a fixed set of samples)? ===&lt;br /&gt;
&lt;br /&gt;
See : [[Adaptive Modeling Mode]].&lt;br /&gt;
&lt;br /&gt;
=== How do I change the error function (relative error, RMSE, ...)? ===&lt;br /&gt;
&lt;br /&gt;
The [[Measures| &amp;lt;Measure&amp;gt;]] tag specifies the algorithm to use to assign models a score, e.g., [[Measures#CrossValidation| CrossValidation]].  It is also possible to specify which &#039;&#039;&#039;error function&#039;&#039;&#039; to  use, in the measure.  The default error function is &#039;&amp;lt;code&amp;gt;rootRelativeSquareError&amp;lt;/code&amp;gt;&#039;.&lt;br /&gt;
&lt;br /&gt;
Say you want to use [[Measures#CrossValidation| CrossValidation]] with the maximum absolute error, then you would put:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Measure type=&amp;quot;CrossValidation&amp;quot; target=&amp;quot;0.001&amp;quot; errorFcn=&amp;quot;maxAbsoluteError&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On the other hand, if you wanted to use the [[Measures#ValidationSet| ValidationSet]] measure with a relative root-mean-square error you would put:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Measure type=&amp;quot;ValidationSet&amp;quot; target=&amp;quot;0.001&amp;quot; errorFcn=&amp;quot;relativeRms&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default error function is &#039;&amp;lt;code&amp;gt;rootRelativeSquareError&amp;lt;/code&amp;gt;&#039;.  These error functions can be found in the &amp;lt;code&amp;gt;src/matlab/tools/errorFunctions&amp;lt;/code&amp;gt; directory.  You are free to modify them and add your own.  Remember that the choice of error function is very important! Make sure you think well about it.  Also see [[Multi-Objective Modeling]].&lt;br /&gt;
&lt;br /&gt;
=== How do I enable more profilers? ===&lt;br /&gt;
&lt;br /&gt;
Go to the [[Config:ContextConfig#Profiling| &amp;lt;Profiling&amp;gt;]] tag and put &amp;lt;code&amp;gt;&amp;quot;&amp;lt;nowiki&amp;gt;.*&amp;lt;/nowiki&amp;gt;&amp;quot;&amp;lt;/code&amp;gt; as the regular expression.  See also the next question.&lt;br /&gt;
&lt;br /&gt;
=== What regular expressions can I use to filter profilers? ===&lt;br /&gt;
&lt;br /&gt;
See the syntax [http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html here].&lt;br /&gt;
&lt;br /&gt;
=== How can I ensure deterministic results? ===&lt;br /&gt;
&lt;br /&gt;
See : [[Random state]].&lt;br /&gt;
&lt;br /&gt;
=== How do I get a simple closed-form model (symbolic expression)? ===&lt;br /&gt;
&lt;br /&gt;
See : [[Using a model]].&lt;br /&gt;
&lt;br /&gt;
=== How do I enable the Heterogenous evolution to automatically select the best model type? ===&lt;br /&gt;
&lt;br /&gt;
Simply use the [[Config:AdaptiveModelBuilder#heterogenetic| heterogenetic modelbuilder]] as you would any other.&lt;br /&gt;
&lt;br /&gt;
=== What is the combineOutputs option? ===&lt;br /&gt;
&lt;br /&gt;
See [[Running#Models_with_multiple_outputs]]&lt;br /&gt;
&lt;br /&gt;
=== What error function should I use? ===&lt;br /&gt;
&lt;br /&gt;
The default error function is the Root Relative Square Error (RRSE).  On the other hand meanRelativeError may be more intuitive but in that case you have to be careful if you have function values close to zero since in that case the relative error explodes or even gives infinity.  You could also use one of the combined relative error functions (contain a +1 in the denominator to account for small values) but then you get something between a relative and absolute error (=&amp;gt; hard to interpret).&lt;br /&gt;
&lt;br /&gt;
So to be sure an absolute error seems the safest bet (like the RMSE), however in that case you have to come up with sensible accuracy targets and realize that you will build models that try to fit the regions of high absolute value better than the low ones.&lt;br /&gt;
&lt;br /&gt;
Picking an error function is a very tricky business and many people do not realize this.  Which one is best for you and what targets you use ultimately depends on your application and on what kind of model you want.  There is no general answer.&lt;br /&gt;
&lt;br /&gt;
A recommended read is [http://www.springerlink.com/content/24104526223221u3/ is this paper].  See also the page on [[Multi-Objective Modeling]].&lt;br /&gt;
&lt;br /&gt;
=== I just want to generate an initial design (no sampling, no modeling) ===&lt;br /&gt;
&lt;br /&gt;
Do a regular SUMO run, except set the &#039;maxModelingIterations&#039; in the SUMO tag to 0.  The resulting run will only generate (and evaluate) the initial design and save it to samples.txt in the output directory.&lt;br /&gt;
&lt;br /&gt;
=== How do I start a run with the samples of of a previous run, or with a custom initial design? ===&lt;br /&gt;
&lt;br /&gt;
Use a Dataset design component, for example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;InitialDesign type=&amp;quot;DatasetDesign&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Option key=&amp;quot;file&amp;quot; value=&amp;quot;/path/to/the/file/containing/the/points.txt&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;/InitialDesign&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The points of a previous run can be found in the samples.txt file in the output directory of the run you want to continue.&lt;br /&gt;
&lt;br /&gt;
As a sidenote, remark you can start the toolbox with *data points* of a previous run, but not with the *models* of a previous run.&lt;br /&gt;
&lt;br /&gt;
=== What is a level plot? ===&lt;br /&gt;
&lt;br /&gt;
A level plot is a plot that shows how the error histogram changes as the best model improves. An example is:&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Image:levelplot.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Level plots only work if you have a separate dataset (test set) that the model can be checked against.  See the comments in default.xml for how to enable level plots.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== How do I force the output of the model to lie in a certain range ===&lt;br /&gt;
&lt;br /&gt;
See [[Measures#MinMax]].&lt;br /&gt;
&lt;br /&gt;
=== My problem is high dimensional and has a lot of input parameters (more than 10).  Can I use SUMO? ===&lt;br /&gt;
&lt;br /&gt;
That depends.  Remember that the main focus of SUMO is to generate accurate &#039;global&#039; models. If you want to do sampling the practical dimensionality is limited to around 6-8 (though it depends on the problem and how cheap the simulations are!).  Since the more dimensions the more space you need to fill.  At that point you need to see if you can extend the models with domain specific knowledge (to improve performance) or apply a dimensionality reduction method ([[FAQ#Can_the_toolbox_tell_me_which_are_the_most_important_inputs_.28.3D_variable_selection.29.3F|see the next question]]).  On the other hand, if you don&#039;t need to do sample selection but you have a fixed dataset which you want to model.  Then the performance on high dimensional data just depends on the model type.  For examples SVM type models are independent of the dimension and thus can always be applied.  Though things like feature selection are always recommended.&lt;br /&gt;
&lt;br /&gt;
=== Can the toolbox tell me which are the most important inputs (= variable selection)? ===&lt;br /&gt;
&lt;br /&gt;
When tackling high dimensional problems a crucial question is &amp;quot;Are all my input parameters relevant?&amp;quot;.  Normally domain knowledge would answer this question but this is not always straightforward. In those cases a whole set of algorithms exist for doing dimensionality reduction (= feature selection).  Support for some of these algorithms may eventually make it into the toolbox but are not currently implemented.  That is a whole PhD thesis on its own.  However, if a model type provides functions for input relevance determination the toolbox can leverage this.  For example, the LS-SVM model available in the toolbox supports Automatic Relevance Determination (ARD).  This means that if you use the SUMO Toolbox to generate an LS-SVM model, you can call the function &#039;&#039;ARD()&#039;&#039; on the model and it will give you a list of the inputs it thinks are most important.&lt;br /&gt;
&lt;br /&gt;
=== Should I use a Matlab script or a shell script for interfacing with my simulation code? ===&lt;br /&gt;
&lt;br /&gt;
When you want to link SUMO with an external simulation engine (ADS Momentum, SPECTRE, FEBIO, SWAT, ...) you need a [http://en.wikipedia.org/wiki/Shell_script shell script] (or executable) that can take the requested points from SUMO, setup the simulation engine (e.g., set necessary input files), calls the simulator for all the requested points, reads the output (e.g., one or more output files), and returns the results to SUMO (see [[Interfacing with the toolbox]]).&lt;br /&gt;
&lt;br /&gt;
Which one you choose (matlab script + [[Config:SampleEvaluator#matlab|Matlab Sample Evaluator]], or shell script/executable with [[Config:SampleEvaluator#local|Local Sample Evaluator]] is basically a matter of preference, take whatever is easiest for you.&lt;br /&gt;
&lt;br /&gt;
HOWEVER, there is one important consideration: Matlab does not support threads so this means that if you use a matlab script to interface with the simulation engine, simulations and modeling will happen sequentially, NOT in parallel.  This means the modeling code will sit around waiting, doing nothing, until the simulation(s) have finished.  If your simulation code takes a long time to run this is not very efficient.&lt;br /&gt;
&lt;br /&gt;
On the other hand, using a shell script/executable, does allow the modeling and simulation to occur in parallel (at least if you wrote your interface script in such a way that it can be run multiple times in parallel, i.e., no shared global directories or variables that can cause [http://en.wikipedia.org/wiki/Race_condition race conditions]).&lt;br /&gt;
&lt;br /&gt;
As a sidenote, note that if you already put work into a Matlab script, it is still possible to use a shell script, by writing a shell script that starts Matlab (using -nodisplay or -nojvm options), executes your script (using the -r option), and exits Matlab again.  Of course it is not very elegant and adds some overhead but depending on your situation it may be worth it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== How can I look at the internal structure of a SUMO model ===&lt;br /&gt;
&lt;br /&gt;
See [[Using_a_model#Available_methods]].&lt;br /&gt;
&lt;br /&gt;
=== Is there any design documentation available? ===&lt;br /&gt;
&lt;br /&gt;
An in depth overview of the rationale and philosophy, including a treatment of the software architecture underlying the SUMO Toolbox is available in the form of a PhD dissertation.  A copy of this dissertation [http://www.sumo.intec.ugent.be/?q=system/files/2010_04_PhD_DirkGorissen.pdf is available here].&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
=== I have a problem and I want to report it ===&lt;br /&gt;
&lt;br /&gt;
See : [[Reporting problems]].&lt;br /&gt;
&lt;br /&gt;
===I am getting a java out of memory error, what happened?===&lt;br /&gt;
Datasets are loaded through java. This means that the java heap space is used for storing the data. If you try to load a huge dataset (&amp;gt; 50MB), you might experience problems with the maximum heap size. You can solve this by raising the heap size as described on the following webpage:&lt;br /&gt;
[http://www.mathworks.com/support/solutions/data/1-18I2C.html]&lt;br /&gt;
&lt;br /&gt;
=== I sometimes get flat models when using rational functions ===&lt;br /&gt;
&lt;br /&gt;
First make sure the model is indeed flat, and does not just appear so on the plot. You can verify this by looking at the output axis range and making sure it is within reasonable bounds. When there are poles in the model, the axis range is sometimes stretched to make it possible to plot the high values around the pole, causing the rest of the model to appear flat. If the model contains poles, refer to the next question for the solution.&lt;br /&gt;
&lt;br /&gt;
The [[Config:AdaptiveModelBuilder#rational| RationalModel]] tries to do a least squares fit, based on which monomials are allowed in numerator and denominator. We have experienced that some models just find a flat model as the best least squares fit. There are two causes for this:&lt;br /&gt;
&lt;br /&gt;
* The number of sample points is few, and the model parameters (as explained [[Model types explained#PolynomialModel|here]]) force the model to use only a very small set of degrees of freedom.  The solution in this case is to increase the minimum percentage bound in the RationalFactory section of your configuration file: change the &amp;lt;code&amp;gt;&amp;quot;percentBounds&amp;quot;&amp;lt;/code&amp;gt; option to &amp;lt;code&amp;gt;&amp;quot;60,100&amp;quot;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;quot;80,100&amp;quot;&amp;lt;/code&amp;gt;,  or even &amp;lt;code&amp;gt;&amp;quot;100,100&amp;quot;&amp;lt;/code&amp;gt;.  A setting of &amp;lt;code&amp;gt;&amp;quot;100,100&amp;quot;&amp;lt;/code&amp;gt; will force the polynomial models to always exactly interpolate.  However, note that this does not scale very well with the number of samples (to counter this you can set &amp;lt;code&amp;gt;&amp;quot;maxDegrees&amp;quot;&amp;lt;/code&amp;gt;). If, after increasing the &amp;lt;code&amp;gt;&amp;quot;percentBounds&amp;quot;&amp;lt;/code&amp;gt; you still get weird, spiky, models you simply need more samples or you should switch to a different model type.&lt;br /&gt;
* Another possibility is that given a set of monomial degrees, the flat function is just the best possible least squares fit. In that case you simply need to wait for more samples.&lt;br /&gt;
* The measure you are using is not accurately estimating the true error, try a different measure or error function.  Note that a maximum relative error is dangerous to use since a the 0-function (= a flat model) has a lower maximum relative error than a function which overshoots the true behavior in some places but is otherwise correct.&lt;br /&gt;
&lt;br /&gt;
=== When using rational functions I sometimes get &#039;spikes&#039; (poles) in my model ===&lt;br /&gt;
&lt;br /&gt;
When the denominator polynomial of a rational model has zeros inside the domain, the model will tend to infinity near these points. In most cases these models will only be recognized as being `the best&#039; for a short period of time. As more samples get selected these models get replaced by better ones and the spikes should disappear.&lt;br /&gt;
&lt;br /&gt;
So, it is possible that a rational model with &#039;spikes&#039; (caused by poles inside the domain) will be selected as best model. This may or may not be an issue, depending on what you want to use the model for. If it doesn&#039;t matter that the model is very inaccurate at one particular, small spot (near the pole), you can use the model with the pole and it should perform properly.&lt;br /&gt;
&lt;br /&gt;
However, if the model should have a reasonable error on the entire domain, several methods are available to reduce the chance of getting poles or remove the possibility altogether. The possible solutions are:&lt;br /&gt;
&lt;br /&gt;
* Simply wait for more data, usually spikes disappear (but not always).&lt;br /&gt;
* Lower the maximum of the &amp;lt;code&amp;gt;&amp;quot;percentBounds&amp;quot;&amp;lt;/code&amp;gt; option in the RationalFactory section of your configuration file.  For example, say you have 500 data points and if the maximum of the &amp;lt;code&amp;gt;&amp;quot;percentBounds&amp;quot;&amp;lt;/code&amp;gt; option is set to 100 percent it means the degrees of the polynomials in the rational function can go up to 500.  If you set the maximum of the &amp;lt;code&amp;gt;&amp;quot;percentBounds&amp;quot;&amp;lt;/code&amp;gt; option to 10, on the other hand, the maximum degree is set at 50 (= 10 percent of 500).  You can also use the &amp;lt;code&amp;gt;&amp;quot;maxDegrees&amp;quot;&amp;lt;/code&amp;gt; option to set an absolute bound.&lt;br /&gt;
* If you roughly know the output range your data should have, an easy way to eliminate poles is to use the [[Measures#MinMax| MinMax]] [[Measures| Measure]] together with your current measure ([[Measures#CrossValidation| CrossValidation]] by default).  This will cause models whose response falls outside the min-max bounds to be penalized extra, thus spikes should disappear.&lt;br /&gt;
* Use a different model type (RBF, ANN, SVM,...), as spikes are a typical problem of rational functions.&lt;br /&gt;
* Increase the population size if using the genetic version&lt;br /&gt;
* Try using the [[SampleSelector#RationalPoleSuppressionSampleSelector| RationalPoleSuppressionSampleSelector]], it was designed to get rid of this problem more quickly, but it only selects one sample at the time.&lt;br /&gt;
&lt;br /&gt;
However, these solutions may not still not suffice in some cases.  The underlying reason is that the order selection algorithm contains quite a lot of randomness, making it prone to over-fitting.  This issue is being worked on but will take some time.  Automatic order selection is not an easy problem&lt;br /&gt;
&lt;br /&gt;
=== There is no noise in my data yet the rational functions don&#039;t interpolate ===&lt;br /&gt;
&lt;br /&gt;
[[FAQ#I sometimes get flat models when using rational functions |see this question]].&lt;br /&gt;
&lt;br /&gt;
=== When loading a model from disk I get &amp;quot;Warning: Class &#039;:all:&#039; is an unknown object class.  Object &#039;model&#039; of this class has been converted to a structure.&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
You are trying to load a model file without the SUMO Toolbox in your Matlab path.  Make sure the toolbox is in your Matlab path. &lt;br /&gt;
&lt;br /&gt;
In short: Start Matlab, run &amp;lt;code&amp;gt;&amp;lt;SUMO-Toolbox-directory&amp;gt;/startup.m&amp;lt;/code&amp;gt; (to ensure the toolbox is in your path) and then try to load your model.&lt;br /&gt;
&lt;br /&gt;
=== When running the SUMO Toolbox you get an error like &amp;quot;No component with id &#039;annpso&#039; of type &#039;adaptive model builder&#039; found in config file.&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
This means you have specified to use a component with a certain id (in this case an AdaptiveModelBuilder component with id &#039;annpso&#039;) but a component with that id does not exist further down in the configuration file (in this particular case &#039;annpso&#039; does not exist but &#039;anngenetic&#039; or &#039;ann&#039; does, as a quick search through the configuration file will show).  So make sure you only declare components which have a definition lower down.  So see which components are available, simply scroll down the configuration file and see which id&#039;s are specified.  Please also refer to the [[Toolbox configuration#Declarations and Definitions | Declarations and Definitions]] page.&lt;br /&gt;
&lt;br /&gt;
=== When using NANN models I sometimes get &amp;quot;Runtime error in matrix library, Choldc failed. Matrix not positive definite&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
This is a problem in the mex implementation of the [http://www.iau.dtu.dk/research/control/nnsysid.html NNSYSID] toolbox.  Simply delete the mex files, the Matlab implementation will be used and this will not cause any problems.&lt;br /&gt;
&lt;br /&gt;
=== When using FANN models I sometimes get &amp;quot;Invalid MEX-file createFann.mexa64, libfann.so.2: cannot open shared object file: No such file or directory.&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
This means Matlab cannot find the [http://leenissen.dk/fann/ FANN] library itself to link to dynamically.  Make sure the FANN libraries (stored in src/matlab/contrib/fann/src/.libs/) are in your library path, e.g., on unix systems, make sure they are included in LD_LIBRARY_PATH.&lt;br /&gt;
&lt;br /&gt;
=== Undeﬁned function or method ’createFann’ for input arguments of type ’double’. ===&lt;br /&gt;
&lt;br /&gt;
See [[FAQ#When_using_FANN_models_I_sometimes_get_.22Invalid_MEX-file_createFann.mexa64.2C_libfann.so.2:_cannot_open_shared_object_file:_No_such_file_or_directory..22]]&lt;br /&gt;
&lt;br /&gt;
=== When trying to use SVM models I get &#039;Error during fitness evaluation: Error using ==&amp;gt; svmtrain at 170, Group must be a vector&#039; ===&lt;br /&gt;
&lt;br /&gt;
You forgot to build the SVM mex files for your platform.  For windows they are pre-compiled for you, on other systems you have to compile them yourself with the makefile.&lt;br /&gt;
&lt;br /&gt;
=== When running the toolbox you get something like &#039;??? Undefined variable &amp;quot;ibbt&amp;quot; or class &amp;quot;ibbt.sumo.config.ContextConfig.setRootDirectory&amp;quot;&#039; ===&lt;br /&gt;
&lt;br /&gt;
First see [[FAQ#What_is_the_relationship_between_Matlab_and_Java.3F | this FAQ entry]].&lt;br /&gt;
&lt;br /&gt;
This means Matlab cannot find the needed Java classes.  This typically means that you forgot to run &#039;startup&#039; (to set the path correctly) before running the toolbox (using &#039;go&#039;).  So make sure you always run &#039;startup&#039; before running &#039;go&#039; and that both commands are always executed in the toolbox root directory.&lt;br /&gt;
&lt;br /&gt;
If you did run &#039;startup&#039; correctly and you are still getting an error, check that Java is properly enabled:&lt;br /&gt;
&lt;br /&gt;
# typing &#039;usejava jvm&#039; should return 1 &lt;br /&gt;
# typing &#039;s = java.lang.String&#039;, this should &#039;&#039;not&#039;&#039; give an error&lt;br /&gt;
# typing &#039;version(&#039;-java&#039;)&#039; should return at least version 1.5.0&lt;br /&gt;
&lt;br /&gt;
If (1) returns 0, then the jvm of your Matlab installation is not enabled.  Check your Matlab installation or startup parameters (did you start Matlab with -nojvm?)&lt;br /&gt;
If (2) fails but (1) is ok, there is a very weird problem, check the Matlab documentation.&lt;br /&gt;
If (3) returns a version before 1.5.0 you will have to upgrade Matlab to a newer version or force Matlab to use a custom, newer, jvm (See the Matlab docs for how to do this).&lt;br /&gt;
&lt;br /&gt;
=== You get errors related to &#039;&#039;gaoptimset&#039;&#039;,&#039;&#039;psoptimset&#039;&#039;,&#039;&#039;saoptimset&#039;&#039;,&#039;&#039;newff&#039;&#039; not being found or unknown ===&lt;br /&gt;
&lt;br /&gt;
You are trying to use a component of the SUMO toolbox that requires a Matlab toolbox that you do not have.  See the [[System requirements]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== After upgrading I get all kinds of weird errors or warnings when I run my XML files ===&lt;br /&gt;
&lt;br /&gt;
See [[FAQ#How_do_I_upgrade_to_a_newer_version.3F]]&lt;br /&gt;
&lt;br /&gt;
=== I get a warning about duplicate samples being selected, why is this? ===&lt;br /&gt;
&lt;br /&gt;
Sometimes, in special circumstances, multiple sample selectors may select the same sample at the same time. Even though in most cases this is detected and avoided, it can still happen when multiple outputs are modelled in one run, and each output is sampled by a different sample selector. These sample selectors may then accidentally choose the same new sample location.&lt;br /&gt;
&lt;br /&gt;
=== I sometimes see the error of the best model go up, shouldn&#039;t it decrease monotonically? ===&lt;br /&gt;
&lt;br /&gt;
There is no short answer here, it depends on the situation.  Below &#039;single objective&#039; refers to the case where during the hyperparameter optimization (= the modeling iteration) combineOutputs=false, and there is only a single measure set to &#039;on&#039;.  The other cases are classified as &#039;multi objective&#039;.  See also [[Multi-Objective Modeling]].&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Sampling off&#039;&#039;&#039;&lt;br /&gt;
## &#039;&#039;Single objective&#039;&#039;: the error should always decrease monotonically, you should never see it rise. If it does [[reporting problems|report it as a bug]]&lt;br /&gt;
## &#039;&#039;Multi objective&#039;&#039;: There is a very small chance the error can temporarily decrease but it should be safe to ignore.  In this case it is best to use a multi objective enabled modeling algorithm&lt;br /&gt;
# &#039;&#039;&#039;Sampling on&#039;&#039;&#039;&lt;br /&gt;
## &#039;&#039;Single objective&#039;&#039;: inside each modeling iteration the error should always monotonically decrease.  At each sampling iteration the best models are updated (to reflect the new data), thus there the best model score may increase, this is normal behavior(*).  It is possible that the error increases for a short while, but as more samples come in it should decrease again.  If this does not happen you are using a poor measure or poor hyperparameter optimization algorithm, or there is a problem with the modeling technique itself (e.g., clustering in the datapoints is causing numerical problems).&lt;br /&gt;
## &#039;&#039;Multi objective&#039;&#039;: Combination of 1.2 and 2.1.&lt;br /&gt;
&lt;br /&gt;
(*) This is normal if you are using a measure like cross validation that is less reliable on little data than on more data.  However, in some cases you may wish to override this behavior if you are using a measure that is independent of the number of samples the model is trained with (e.g., a dense, external validation set).  In this case you can force a monotonic decrease by setting the &#039;keepOldModels&#039; option in the SUMO tag to true.  Use with caution!&lt;br /&gt;
&lt;br /&gt;
=== At the end of a run I get Undefined variable &amp;quot;ibbt&amp;quot; or class &amp;quot;ibbt.sumo.util.JpegImagesToMovie.createMovie&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
This is normal, the warning printed out before the error explains why:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;[WARNING] jmf.jar not found in the java classpath, movie creation may not work! Did you install the SUMO extension pack? Alternatively you can install the java media framwork from java.sun.com&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
By default, at the end of a run, the toolbox will try to generate a movie of all the intermediate model plots.  To do this it requires the extension pack to be installed (you can download it from the SUMO lab website).  So install the extension pack and you will no longer get the error.  Alternatively you can simply set the &amp;quot;createMovie&amp;quot; option in the &amp;lt;SUMO&amp;gt; tag to &amp;quot;false&amp;quot;.&lt;br /&gt;
So note that there is nothing to worry about, everything has run correctly, it is just the movie creation that is failing.&lt;br /&gt;
&lt;br /&gt;
=== On startup I get the error &amp;quot;java.io.IOException: Couldn&#039;t get lock for output/SUMO-Toolbox.%g.%u.log&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
This error means that SUMO is unable to create the log file.  Check the output directory exists and has the correct permissions.  If  your output directory is on a shared (network) drive this could also cause problems.  Also make sure you are running the toolbox (calling &#039;go&#039;) from the toolbox root directory, and not in some toolbox sub directory! This is very important.&lt;br /&gt;
&lt;br /&gt;
If you still have problems you can override the default logfile name and location as follows:&lt;br /&gt;
&lt;br /&gt;
In the &amp;lt;FileHandler&amp;gt; tag inside the &amp;lt;Logging&amp;gt; tag add the following option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
&amp;lt;Option key=&amp;quot;Pattern&amp;quot; value=&amp;quot;My_SUMO_Log_file.log&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This means that from now on the sumo log file will be saved as the file &amp;quot;My_SUMO_Log_file.log&amp;quot; in the SUMO root directory.  You can use any path you like.&lt;br /&gt;
For more information about this option see [http://java.sun.com/j2se/1.4.2/docs/api/java/util/logging/FileHandler.html the FileHandler Javadoc].&lt;br /&gt;
&lt;br /&gt;
=== The Toolbox crashes with &amp;quot;Too many open files&amp;quot; what should I do? ===&lt;br /&gt;
&lt;br /&gt;
This is a known bug, see [[Known_bugs#Version_6.1]].&lt;br /&gt;
&lt;br /&gt;
If this does not fix your problem then do the following:&lt;br /&gt;
&lt;br /&gt;
On Windows try increasing the limit in windows as dictated by the error message.  Also, when you get the error, use the fopen(&amp;quot;all&amp;quot;) command to see which files are open and send us the list of filenames.  Then we can maybe further help you debug the problem.  Even better would be to use the Process Explorer utility [http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx available here]. When you get the error, dont shut down Matlab but start Process explorer and see which SUMO-Toolbox related files are open.  If you then [[Reporting_problems|let us know]] we can further debug the problem.&lt;br /&gt;
&lt;br /&gt;
On Linux again don&#039;t shut down Matlab but:&lt;br /&gt;
&lt;br /&gt;
* open a new terminal window&lt;br /&gt;
* type:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
lsof &amp;gt; openFiles.txt&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
* Then [[Contact|send us]] the following information:&lt;br /&gt;
** the file openFiles.txt &lt;br /&gt;
** the exact Linux distribution you are using (Red Hat 10, CentOS 5, SUSE 11, etc).&lt;br /&gt;
** the output of&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
uname -a ; df -T ; mount&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As a temporary workaround you can try increasing the maximum number of open files ([http://www.linuxforums.org/forum/redhat-fedora-linux-help/64716-where-chnage-file-max-permanently.html see for example here]).  We are currently debugging this issue.&lt;br /&gt;
&lt;br /&gt;
In general: to be safe it is always best to do a SUMO run from a clean Matlab startup, especially if the run is important or may take a long time.&lt;br /&gt;
&lt;br /&gt;
=== When using the LS-SVM models I get lots of warnings: &amp;quot;make sure lssvmFILE.x (lssvmFILE.exe) is in the current directory, change now to MATLAB implementation...&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
The LS-SVMs have a C implementation and a Matlab implementation.  If you dont have the compiled mex files it will use the matlab implementation and give a warning.  But everything will work properly.  To get rid of the warnings, compile the mex files [[Installation#Windows|as described here]], this can be done very easily.  Or simply comment out the lines that produce the output in the lssvmlab directory in src/matlab/contrib.&lt;br /&gt;
&lt;br /&gt;
=== I get an error &amp;quot;Undefined function or method &#039;trainlssvm&#039; for input arguments of type &#039;cell&#039;&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
You most likely forgot to [[Installation#Extension_pack|install the extension pack]].&lt;br /&gt;
&lt;br /&gt;
=== When running the SUMO-Toolbox under Linux, the [http://en.wikipedia.org/wiki/X_Window_System X server] suddenly restarts and I am logged out of my session ===&lt;br /&gt;
&lt;br /&gt;
Note that in Linux there is an explicit difference between the [http://en.wikipedia.org/wiki/Linux_kernel kernel] and the [http://en.wikipedia.org/wiki/X_Window_System X display server].  If the kernel crashes or panics your system completely freezes (you have to reset manually) or your computer does a full reboot.  Luckily this is very rare.  However, if you display server (X) crashes or restarts it means your operating system is still running fine, its just that you have to log in again since your graphical session has terminated.  The FAQ entry is only for the latter.  If you find your kernel is panicing or freezing, that is a more fundamental problem and you should contact your system admin.&lt;br /&gt;
&lt;br /&gt;
So what happens is that after a few seconds when the toolbox wants to plot the first model [http://en.wikipedia.org/wiki/X_Window_System X] crashes and you are suddenly presented with a login screen.  The problem is not due to SUMO but rather to the Matlab - Display server interaction.&lt;br /&gt;
&lt;br /&gt;
What you should first do is set plotModels to false in the [[Config:ContextConfig]] tag, run again and see if the problem occurs again.  If it does please [[Reporting_problems| report it]].  If the problem does not occur you can then try the following:&lt;br /&gt;
&lt;br /&gt;
* Log in as root (or use [http://en.wikipedia.org/wiki/Sudo sudo])&lt;br /&gt;
* Edit the following configuration file using a text editor (pico, nano, vi, kwrite, gedit,...)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
/etc/X11/xorg.conf&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: the exact location of the xorg.conf file may vary on your system.&lt;br /&gt;
&lt;br /&gt;
* Look for the following line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
  Load         &amp;quot;glx&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Comment it out by replacing it by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#  Load         &amp;quot;glx&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Then save the file, restart your X server (if you do not know how to do this simply reboot your computer)&lt;br /&gt;
* Log in again, and try running the toolbox (making sure plotModels is set to true again).  It should now work.  If it still does not please [[Reporting_problems| report it]].&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
* this is just an empirical workaround, if you have a better idea please [[Contact|let us know]]&lt;br /&gt;
* if you wish to debug further yourself please check the Xorg log files and those in /var/log&lt;br /&gt;
* another possible workaround is to start matlab with the &amp;quot;-nodisplay&amp;quot; option.  That could work as well.&lt;br /&gt;
&lt;br /&gt;
=== I get the error &amp;quot;Failed to close Matlab pool cleanly, error is Too many output arguments&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
This happens if you run the toolbox on Matlab version 2008a and you have the parallel computing toolbox installed.  You can simply ignore this error message, it does not cause any problems. If you want to use SUMO with the parallel computing toolbox you will need Matlab 2008b.&lt;br /&gt;
&lt;br /&gt;
=== The toolbox seems to keep on running forever, when or how will it stop? ===&lt;br /&gt;
&lt;br /&gt;
The toolbox will keep on generating models and selecting data until one of the termination criteria has been reached. It is up to &#039;&#039;you&#039;&#039; to choose these targets carefully, so how low the toolbox runs simply depends on what targets you choose.  Please see [[Running#Understanding_the_control_flow]].&lt;br /&gt;
&lt;br /&gt;
Of course choosing a-priori targets up front is not always easy and there is no real solution for this, except thinking well about what type of model you want (see [[FAQ#I_dont_like_the_final_model_generated_by_SUMO_how_do_I_improve_it.3F]]).  In doubt you can always use a small value (or 0) and then simply quit the running toolbox using Ctrl-C when you think its been enough.&lt;br /&gt;
&lt;br /&gt;
While one could implement fancy, automatic stopping algorithms, their actual benefit is questionable.&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Running&amp;diff=5768</id>
		<title>Running</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Running&amp;diff=5768"/>
		<updated>2012-02-10T15:55:20Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* Changing the configuration xml */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Getting started ==&lt;br /&gt;
&lt;br /&gt;
If you are just getting started with the toolbox and you have no idea how everything works, this section should help you on your way.&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;features&#039;&#039;&#039; and scope of the SUMO Toolbox are detailed on this [[About#Intended_use|page]]. To find out more about the SUMO Toolbox in general, check out the documentation on this [[About#Documentation|page]].&lt;br /&gt;
&lt;br /&gt;
* If you want to get hands-on with the SUMO Toolbox, we recommend using this [http://www.sumowiki.intec.ugent.be/images/7/7b/SUMO_hands_on.pdf guide]. The guide explains the basic SUMO framework, how to &#039;&#039;&#039;install&#039;&#039;&#039; the SUMO Toolbox on your computer and provides some &#039;&#039;&#039;examples&#039;&#039;&#039; on running the toolbox.&lt;br /&gt;
&lt;br /&gt;
* Since the SUMO Toolbox is [[Configuration|configured]] by editing XML files it might be a good idea to read [[FAQ#What is XML?|this page]], if you are not familiar with XML files.&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;installation&#039;&#039;&#039; information can also be found [[Installation|on this wiki]] and more information on running a different example the SUMO Toolbox can be found [[Running#Running_different_examples|here]]. &lt;br /&gt;
&lt;br /&gt;
* The SUMO Toolbox also comes with a set of &#039;&#039;&#039;demo&#039;s&#039;&#039;&#039; showing the different uses of the toolbox. You can find the configuration files for these demo&#039;s in the &#039;config/demo&#039; directory.&lt;br /&gt;
&lt;br /&gt;
* We have also provided some [[General_guidelines|general modelling guidelines]] which you can use a starting point to model your problems.&lt;br /&gt;
&lt;br /&gt;
* Also be sure to check out the &#039;&#039;&#039;Frequently Asked Questions&#039;&#039;&#039; ([[FAQ|FAQ]]) page as it might answer some of your questions.&lt;br /&gt;
&lt;br /&gt;
Finally if you get stuck or have any problems [[Reporting problems|feel free to let us know]] and will do our best to help you.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please don&#039;t hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Running different examples  ==&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
This section is about running a different example problem, if you want to model your own problem see [[Adding an example]].  Make sure you [[configuration|understand the difference between the simulator configuration file and the toolbox configuration file]] and understand how these configuration files are [[Toolbox configuration#Structure|structured]].&lt;br /&gt;
&lt;br /&gt;
=== Changing the configuration xml ===&lt;br /&gt;
The &amp;lt;code&amp;gt;examples/&amp;lt;/code&amp;gt; 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 &amp;lt;code&amp;gt;config/default.xml&amp;lt;/code&amp;gt; and edit the [[Simulator| &amp;lt;Simulator&amp;gt;]] tag to suit your needs (for more information about editing the configuration xml, go to this [[Config:ToolboxConfiguration#Interpreting_the_configuration_file|page]]).&lt;br /&gt;
&lt;br /&gt;
For example, originally the default &#039;&#039;&#039;configuration xml&#039;&#039;&#039; file, default.xml, contains:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Simulator&amp;gt;Math/Academic/Academic2DTwice.xml&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The toolbox will look in the examples directory for a project directory called &amp;lt;code&amp;gt;Math/Academic&amp;lt;/code&amp;gt; and load the &#039;&#039;&#039;simulator xml&#039;&#039;&#039; file named &#039;Academic2DTwice.xml&#039;. If no simulator xml file name is specified, the SUMO Toolbox will load the simulator xml with the same name as directory. For example &amp;lt;code&amp;gt;Math/Peaks&amp;lt;/code&amp;gt; is equivalent to &amp;lt;code&amp;gt;Math/Peaks/Peaks.xml&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now let&#039;s say you want to run one of the different example problems, for example, lets say you want to try the &#039;Michalewicz&#039; example.  In this case you would replace the original Simulator tag with: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Simulator&amp;gt;Math/Michalewicz&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In addition you would have to change the &amp;lt;code&amp;gt;&amp;lt;Outputs&amp;gt;&amp;lt;/code&amp;gt; tag.  The &amp;lt;code&amp;gt;Math/Academic/Academic2DTwice.xml&amp;lt;/code&amp;gt; example has two outputs (&#039;&#039;out&#039;&#039; and &#039;&#039;outinverse&#039;&#039;).  However, the Michalewicz example has only one (&#039;&#039;out&#039;&#039;).  Thus telling the SUMO Toolbox to model the &#039;&#039;outinverse&#039;&#039; output in that case makes no sense since it does not exist for the &#039;Michalewicz&#039; example.  So the following output configuration suffices:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Outputs&amp;gt;&lt;br /&gt;
   &amp;lt;Output name=&amp;quot;out&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/Output&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The rest of default.xml can be kept the same, then simply type in &#039;&amp;lt;code&amp;gt;go&amp;lt;/code&amp;gt;&#039; in the SUMO root to run the example. If you do not specify any arguments, the SUMO Toolbox will use the settings in the default.xml file. If you wish run a different configuration file use the following command &#039;&amp;lt;code&amp;gt;go(pathToYourConfig/yourConfig.xml)&amp;lt;/code&amp;gt;&#039; where pathToYourConfig is the path to where your configuration XML-file is located, and yourConfig.xml is the name of your configuration XML-file.&lt;br /&gt;
&lt;br /&gt;
As noted above, it is also possible to specify an absolute path or refer to a particular simulator xml file directly.  For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Simulator&amp;gt;/path/to/your/project/directory&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Simulator&amp;gt;Ackley/Ackley2D.xml&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Important notes ===&lt;br /&gt;
&lt;br /&gt;
If you start changing default.xml to try out different examples, there are a number of important things you should be aware of.&lt;br /&gt;
&lt;br /&gt;
==== Select matching Inputs and Outputs ====&lt;br /&gt;
Using the &amp;lt;code&amp;gt;&amp;lt;Inputs&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;Outputs&amp;gt;&amp;lt;/code&amp;gt; tags in the SUMO-Toolbox configuration file you can tell the toolbox which outputs should be modeled and how.  Note that these tags are optional.  You can delete them and then the toolbox will simply model all available inputs and outputs.  If you do specify a particular output, for example say you tell the toolbox to model output &#039;&#039;temperature&#039;&#039; of the simulator &#039;ChemistryProblem&#039;.  If you then change the configuration file to model &#039;BiologyProblem&#039; you will have to change the name of the selected output (or input) since most likely &#039;BiologyProblem&#039; will not have an output called &#039;&#039;temperature&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Information on how to further customize to modelling of the outputs can be found [[Outputs|here]].&lt;br /&gt;
&lt;br /&gt;
==== Select a matching SampleEvaluator ====&lt;br /&gt;
There is one important caveat. Some examples consist of a fixed data set, some are implemented as a Matlab function, others as a C++ executable, etc.  When running a different example you have to tell the SUMO Toolbox how the example is implemented so the toolbox knows how to extract data (eg: should it load a data file or should it call a Matlab function).  This is done by specifying the correct [[Config:SampleEvaluator|SampleEvaluator]] tag.  The default SampleEvaluator is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;SampleEvaluator&amp;gt;matlab&amp;lt;/SampleEvaluator&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So this means that the toolbox expects the example you want to run is implemented as a Matlab function.  Thus it is no use running an example that is implemented as a static dataset using the &#039;[[Config:SampleEvaluator#matlab|matlab]]&#039; or &#039;[[Config:SampleEvaluator#local|local]]&#039; sample evaluators.  Doing this will result in an error.  In this case you should use &#039;[[Config:SampleEvaluator#scatteredDataset|scatteredDataset]]&#039; (or sometimes [[Config:SampleEvaluator#griddedDataset|griddedDataset]]).&lt;br /&gt;
&lt;br /&gt;
To see how an example is implemented open the XML file inside the example directory and look at the &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;Implementation&amp;gt;&amp;lt;/source&amp;gt; tag.  To see which SampleEvaluators are available see [[Config:SampleEvaluator]].&lt;br /&gt;
&lt;br /&gt;
=== Select an appropriate model type ===&lt;br /&gt;
The choice of the model type which you use to model your problem has a great impact on the overall accuracy. If you switch to a different example you may also have to change the model type used. For example, if you are using a spline model (which only works in 2D) and you decide to model a problem with many dimensions (e.g., CompActive or BostonHousing) you will have to switch to a different model type (e.g., any of the SVM or LS-SVM model builders). &lt;br /&gt;
&lt;br /&gt;
The &amp;lt;AdaptiveModelBuilder&amp;gt; tag specifies which model type is used to model problem. In most cases the &#039;AdaptiveModelBuilder&#039; also specifies an optimization algorithm to find the best &#039;hyperparameters&#039; of the models. Hyperparameters are parameters which define model, such as the order of a polynomial or the the number of hidden nodes of an Artificial Neural Network. To see all the AdaptiveModelBuilder options and what they do go to [[Config:AdaptiveModelBuilder| this page]].&lt;br /&gt;
&lt;br /&gt;
=== One-shot designs ===&lt;br /&gt;
If you want to use the toolbox to simply model all your data without instead of using the default sequential approach,  see [[Adaptive_Modeling_Mode]] for how to do this.&lt;br /&gt;
&lt;br /&gt;
== Running different configuration files ==&lt;br /&gt;
&lt;br /&gt;
If you just type &amp;quot;go&amp;quot; the SUMO-Toolbox will run using the configuration options in default.xml.  However you may want to make a copy of default.xml and play around with that, leaving your original default.xml intact.  So the question is, how do you run that file?  Lets say your copy is called MyConfigFile.xml.  In order to tell SUMO to run that file you would type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
go(&#039;/path/to/MyConfigFile.xml&#039;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The path can be an absolute path, or a path relative to the SUMO Toolbox root directory.&lt;br /&gt;
To see what other options you have when running go type &#039;&#039;help go&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remember to always run go from the toolbox root directory.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Merging your configuration ===&lt;br /&gt;
&lt;br /&gt;
If you know what you are doing, you can merge your own custom configuration with the default configuration by using the &#039;-merge&#039; option.  Options or tags that are missing in this custom file will then be filled up with the values from the default configuration.  This prevents you from having to duplicate tags in default.xml and creates xml files which are easier to manipulate. However, if you are unfamiliar with XML and not quite sure what you are doing we advise against using it.&lt;br /&gt;
&lt;br /&gt;
=== Running optimization examples ===&lt;br /&gt;
The SUMO toolbox can also be used for minimizing the simulator in an intelligent way. There are 2 examples in included in &amp;lt;code&amp;gt;config/Optimization&amp;lt;/code&amp;gt;. To run these examples is exactly the same as always, e.g. &amp;lt;code&amp;gt;go(&#039;config/optimization/Branin.xml&#039;)&amp;lt;/code&amp;gt;. The only difference is in the sample selector which is specified in the configuration file itself.&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Image:ISCSampleSelector2.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
The example configuration files are well documented, it is advised to go through them for more detailed information.&lt;br /&gt;
&lt;br /&gt;
== Understanding the control flow ==&lt;br /&gt;
&lt;br /&gt;
[[Image:sumo-control-flow.png|thumb|300px|right|The general SUMO-Toolbox control flow]]&lt;br /&gt;
&lt;br /&gt;
When the toolbox is running you might wonder what exactly is going on. The high level control flow that the toolbox goes through is illustrated in the flow chart and explained in more detail below.  You may also refer to the [[About#Presentation|general SUMO presentation]].&lt;br /&gt;
&lt;br /&gt;
# Select samples according to the [[InitialDesign|initial design]] and execute the [[Simulator]] for each of the points&lt;br /&gt;
# Once enough points are available, start the [[Add_Model_Type#Models.2C_Model_builders.2C_and_Factories|Model builder]] which will start producing models as it optimizes the model parameters&lt;br /&gt;
## the number of models generated depends on the [[Config:AdaptiveModelBuilder|AdaptiveModelBuilder]] used. Usually the AdaptiveModelBuilder tag contains a setting like &#039;&#039;maxFunEvals&#039;&#039; or &#039;&#039;popSize&#039;&#039;.  This indicates to the algorithm that is optimizing the model parameters (and thus generating models) how many models it should maximally generate before stopping.  By increasing this number you will generate more models in between sampling iterations, thus have a higher chance of getting a better model, but increasing the computation time.  This step is what we refer to as a &#039;&#039;modeling iteration&#039;&#039;.&lt;br /&gt;
## optimization over the model parameters is driven by the [[Measures|Measure(s)]] that are enabled. Selection of the Measure is thus very important for the modeling process!&lt;br /&gt;
## each time the model builder generates a model that has a lower measure score than the previous best model, the toolbox will trigger a &amp;quot;New best model found&amp;quot; event, save the model, generate a plot, and trigger all the profilers to update themselves.&lt;br /&gt;
## so note that by default, you only see something happen when a new best model is found, you do not see all the other models that are being generated in the background.  If you want to see those, you must increase the logging granularity (or just look in the log file) or [[FAQ#How_do_I_enable_more_profilers.3F|enable more profilers]].&lt;br /&gt;
# So the model builder will run until it has completed&lt;br /&gt;
# Then, if the current best model satisfies all the targets in the enabled Measures, it means we have reached the requirements and the toolbox terminates.&lt;br /&gt;
# If not, the [[SampleSelector]] selects a new set of samples (= a &#039;&#039;sampling iteration&#039;&#039;), they are simulated, and the model building resumes or is restarted according to the configured restart strategy&lt;br /&gt;
# This whole loop continues (thus the toolbox will keep running) until one of the following conditions is true:&lt;br /&gt;
## the targets specified in the active measure tags have been reached (each Measure has a target value which you can set). Note though, that when you are using multiple measures (see [[Multi-Objective Modeling]]) or when using single measures like AIC or LRM, it becomes difficult to set a priori targets since you cant really interpret the scores (in contrast to the simple case with a single measure like CrossValidation where your target is simply the error you require).  In those cases you should usually set the targets to 0 and use one of the other criteria below to make sure the toolbox stops.&lt;br /&gt;
## the maximum running time has been reached (&#039;&#039;maximumTime&#039;&#039; property in the [[Config:SUMO]] tag)&lt;br /&gt;
## the maximum number of samples has been reached (&#039;&#039;maximumTotalSamples&#039;&#039; property in the [[Config:SUMO]] tag)&lt;br /&gt;
## the maximum number of modeling iterations has been reached (&#039;&#039;maxModelingIterations&#039;&#039; property in the [[Config:SUMO]] tag)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that it is also possible to disable the sample selection loop, see [[Adaptive Modeling Mode]].  Also note that while you might think the toolbox is not doing anything, it is actually building models in the background (see above for how to see the details).  The toolbox will only inform you (unless configured otherwise) if it finds a model that is better than the previous best model (using that particular measure!!).  If not it will continue running until one of the stopping conditions is true.&lt;br /&gt;
&lt;br /&gt;
== SUMO Toolbox output ==&lt;br /&gt;
&lt;br /&gt;
All output is stored under the [[Config:ContextConfig#OutputDirectory|directory]] specified in the [[Config:ContextConfig]] section of the configuration file (by default this is set to &amp;quot;&amp;lt;code&amp;gt;output&amp;lt;/code&amp;gt;&amp;quot;). &lt;br /&gt;
&lt;br /&gt;
Starting from version 6.0 the output directory is always relative to the project directory of your example.  Unless you specify an absolute path.&lt;br /&gt;
&lt;br /&gt;
After completion of a SUMO Toolbox run, the following files and directories can be found there (e.g. : in &amp;lt;code&amp;gt;output/&amp;lt;run_name+date+time&amp;gt;/&amp;lt;/code&amp;gt; subdirectory) :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt;: The xml file that was used by this run. Can be used to reproduce the entire modeling process for that run.&lt;br /&gt;
* &amp;lt;code&amp;gt;randstate.dat&amp;lt;/code&amp;gt;: contains states of the random number generators, so that it becomes possible to deterministically repeat a run (see the [[Random state]] page).&lt;br /&gt;
* &amp;lt;code&amp;gt;samples.txt&amp;lt;/code&amp;gt;: a list of all the samples that were evaluated, and their outputs.&lt;br /&gt;
* &amp;lt;code&amp;gt;profilers&amp;lt;/code&amp;gt;-dir: contains information and plots about convergence rates, resource usage, and so on.&lt;br /&gt;
* &amp;lt;code&amp;gt;best&amp;lt;/code&amp;gt;-dir: contains the best models (+ plots) of all outputs that were constructed during the run.  This is continuously updated as the modeling progresses.&lt;br /&gt;
* &amp;lt;code&amp;gt;models_outputName&amp;lt;/code&amp;gt;-dir: contains a history of all intermediate models (+ plots + movie) for each output that was modeled.&lt;br /&gt;
&lt;br /&gt;
If you generated models [[Multi-Objective Modeling|multi-objectively]] you will also find the following directory:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;paretoFronts&amp;lt;/code&amp;gt;-dir: contains snapshots of the population during multi-objective optimization of the model parameters.&lt;br /&gt;
&lt;br /&gt;
== Debugging ==&lt;br /&gt;
&lt;br /&gt;
Remember to always check the log file first if problems occur!&lt;br /&gt;
When [[reporting problems]] please attach your log file and the xml configuration file you used.&lt;br /&gt;
&lt;br /&gt;
To aid understanding and debugging you should set the console and file logging level to FINE (or even FINER, FINEST)&lt;br /&gt;
as follows: &lt;br /&gt;
&lt;br /&gt;
Change the level of the ConsoleHandler tag to FINE, FINER or FINEST.  Do the same for the FileHandler tag. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- Configure ConsoleHandler instances --&amp;gt;&lt;br /&gt;
&amp;lt;ConsoleHandler&amp;gt;&lt;br /&gt;
	&amp;lt;Option key=&amp;quot;Level&amp;quot; value=&amp;quot;FINE&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/ConsoleHandler&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Using models ==&lt;br /&gt;
&lt;br /&gt;
Once you have generated a model, you might wonder what you can do with it. To see how to load, export, and use SUMO generated models see the [[Using a model]] page.&lt;br /&gt;
&lt;br /&gt;
== Modelling complex outputs ==&lt;br /&gt;
&lt;br /&gt;
The toolbox supports the modeling of complex valued data.  If you do not specify any specific &amp;lt;[[Outputs|Output]]&amp;gt; tags, all outputs will be modeled with [[Outputs#Complex_handling|complexHandling]] set to &#039;&amp;lt;code&amp;gt;complex&amp;lt;/code&amp;gt;&#039;. This means that a real output will be modeled as a real value, and a complex output will be modeled as a complex value (with a real and imaginary part).  If you don&#039;t want this (i.e., you want to model the modulus of a complex output or you want to model real and imaginary parts separately), you explicitly have to set [[Outputs#Complex_handling|complexHandling]] to &#039;modulus&#039;, &#039;real&#039;, &#039;imaginary&#039;, or &#039;split&#039;.&lt;br /&gt;
 &lt;br /&gt;
More information on this subject can be found at the [[Outputs#Complex_handling|Outputs]] page.&lt;br /&gt;
&lt;br /&gt;
== Models with multiple outputs ==&lt;br /&gt;
&lt;br /&gt;
If multiple [[Outputs]] are selected, by default the toolbox will model each output separately using a separate adaptive model builder object.  So if you have a system with 3 outputs you will get three different models each with one output.  However, sometimes you may want a single model with multiple outputs.  For example instead of having a neural network for each component of a complex output (real/imaginary) you might prefer a single network with 2 outputs.  To do this simply set the &#039;combineOutputs&#039; attribute of the &amp;lt;AdaptiveModelBuilder&amp;gt; tag to &#039;true&#039;.  That means that each time that model builder is selected for an output, the same model builder object will be used instead of creating a new one.&lt;br /&gt;
&lt;br /&gt;
Note though, that not all model types support multiple outputs.  If they don&#039;t you will get an error message.&lt;br /&gt;
&lt;br /&gt;
Also note that you can also generate models with multiple outputs in a multi-objective fashion.  For information on this see the page on [[Multi-Objective Modeling]].&lt;br /&gt;
&lt;br /&gt;
== Multi-Objective Model generation ==&lt;br /&gt;
&lt;br /&gt;
See the page on [[Multi-Objective Modeling]].&lt;br /&gt;
&lt;br /&gt;
== Interfacing with the SUMO Toolbox ==&lt;br /&gt;
&lt;br /&gt;
To learn how to interface with the toolbox or model your own problem see the [[Adding an example]] and [[Interfacing with the toolbox]] pages.&lt;br /&gt;
&lt;br /&gt;
== Test Suite ==&lt;br /&gt;
&lt;br /&gt;
A test harness is provided that can be run manually or automatically as part of a cron job.  The test suite consists of a number of test XML files (in the config/test/ directory), each describing a particular surrogate modeling experiment.  The file config/test/suite.xml dictates which tests are run and their order.  The suite.xml file also contains the accuracy and sample bounds that are checked after each test.  If the final model found does not fall within the accuracy or number-of-samples bounds, the test is considered failed.&lt;br /&gt;
&lt;br /&gt;
Note also that some of the predefined test cases may rely on data sets or simulation code that are not publically available for confidentiality reasons.  However, since these test problems typically make very good benchmark problems we left them in for illustration purposes.&lt;br /&gt;
&lt;br /&gt;
The coordinating class is the Matlab TestSuite class found in the src/matlab directory. Besides running the tests defined in suite.xml it also tests each of the model member functions.&lt;br /&gt;
&lt;br /&gt;
Assuming the SUMO Toolbox is setup properly and the necessary libraries are compiled ([[Installation#Optional:_Compiling_libraries|see here]]), the test suite should be run as follows (from the SUMO root directory):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
s = TestEngine(&#039;config/test/suite.xml&#039;) ; s.run()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;run()&amp;quot; method also supports an optional parameter (a vector) that dictates which tests to run (e.g., run([2 5 3]) will run tests 2,5 and 3).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note that due to randomization the final accuracy and number of samples used may vary slightly from run to run (causing failed tests).  Thus the bounds must be set sufficiently loose.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Tips ==&lt;br /&gt;
&lt;br /&gt;
See the [[Tips]] page for various tips and gotchas.&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Running&amp;diff=5767</id>
		<title>Running</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Running&amp;diff=5767"/>
		<updated>2012-02-10T15:55:13Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* Changing the configuration xml */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Getting started ==&lt;br /&gt;
&lt;br /&gt;
If you are just getting started with the toolbox and you have no idea how everything works, this section should help you on your way.&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;features&#039;&#039;&#039; and scope of the SUMO Toolbox are detailed on this [[About#Intended_use|page]]. To find out more about the SUMO Toolbox in general, check out the documentation on this [[About#Documentation|page]].&lt;br /&gt;
&lt;br /&gt;
* If you want to get hands-on with the SUMO Toolbox, we recommend using this [http://www.sumowiki.intec.ugent.be/images/7/7b/SUMO_hands_on.pdf guide]. The guide explains the basic SUMO framework, how to &#039;&#039;&#039;install&#039;&#039;&#039; the SUMO Toolbox on your computer and provides some &#039;&#039;&#039;examples&#039;&#039;&#039; on running the toolbox.&lt;br /&gt;
&lt;br /&gt;
* Since the SUMO Toolbox is [[Configuration|configured]] by editing XML files it might be a good idea to read [[FAQ#What is XML?|this page]], if you are not familiar with XML files.&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;installation&#039;&#039;&#039; information can also be found [[Installation|on this wiki]] and more information on running a different example the SUMO Toolbox can be found [[Running#Running_different_examples|here]]. &lt;br /&gt;
&lt;br /&gt;
* The SUMO Toolbox also comes with a set of &#039;&#039;&#039;demo&#039;s&#039;&#039;&#039; showing the different uses of the toolbox. You can find the configuration files for these demo&#039;s in the &#039;config/demo&#039; directory.&lt;br /&gt;
&lt;br /&gt;
* We have also provided some [[General_guidelines|general modelling guidelines]] which you can use a starting point to model your problems.&lt;br /&gt;
&lt;br /&gt;
* Also be sure to check out the &#039;&#039;&#039;Frequently Asked Questions&#039;&#039;&#039; ([[FAQ|FAQ]]) page as it might answer some of your questions.&lt;br /&gt;
&lt;br /&gt;
Finally if you get stuck or have any problems [[Reporting problems|feel free to let us know]] and will do our best to help you.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please don&#039;t hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Running different examples  ==&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
This section is about running a different example problem, if you want to model your own problem see [[Adding an example]].  Make sure you [[configuration|understand the difference between the simulator configuration file and the toolbox configuration file]] and understand how these configuration files are [[Toolbox configuration#Structure|structured]].&lt;br /&gt;
&lt;br /&gt;
=== Changing the configuration xml ===&lt;br /&gt;
The &amp;lt;code&amp;gt;examples/&amp;lt;/code&amp;gt; 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 &amp;lt;code&amp;gt;config/default.xml&amp;lt;/code&amp;gt; and edit the [[Simulator| &amp;lt;Simulator&amp;gt;]] tag to suit your needs (or more information about editing the configuration xml, go to this [[Config:ToolboxConfiguration#Interpreting_the_configuration_file|page]]).&lt;br /&gt;
&lt;br /&gt;
For example, originally the default &#039;&#039;&#039;configuration xml&#039;&#039;&#039; file, default.xml, contains:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Simulator&amp;gt;Math/Academic/Academic2DTwice.xml&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The toolbox will look in the examples directory for a project directory called &amp;lt;code&amp;gt;Math/Academic&amp;lt;/code&amp;gt; and load the &#039;&#039;&#039;simulator xml&#039;&#039;&#039; file named &#039;Academic2DTwice.xml&#039;. If no simulator xml file name is specified, the SUMO Toolbox will load the simulator xml with the same name as directory. For example &amp;lt;code&amp;gt;Math/Peaks&amp;lt;/code&amp;gt; is equivalent to &amp;lt;code&amp;gt;Math/Peaks/Peaks.xml&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now let&#039;s say you want to run one of the different example problems, for example, lets say you want to try the &#039;Michalewicz&#039; example.  In this case you would replace the original Simulator tag with: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Simulator&amp;gt;Math/Michalewicz&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In addition you would have to change the &amp;lt;code&amp;gt;&amp;lt;Outputs&amp;gt;&amp;lt;/code&amp;gt; tag.  The &amp;lt;code&amp;gt;Math/Academic/Academic2DTwice.xml&amp;lt;/code&amp;gt; example has two outputs (&#039;&#039;out&#039;&#039; and &#039;&#039;outinverse&#039;&#039;).  However, the Michalewicz example has only one (&#039;&#039;out&#039;&#039;).  Thus telling the SUMO Toolbox to model the &#039;&#039;outinverse&#039;&#039; output in that case makes no sense since it does not exist for the &#039;Michalewicz&#039; example.  So the following output configuration suffices:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Outputs&amp;gt;&lt;br /&gt;
   &amp;lt;Output name=&amp;quot;out&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/Output&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The rest of default.xml can be kept the same, then simply type in &#039;&amp;lt;code&amp;gt;go&amp;lt;/code&amp;gt;&#039; in the SUMO root to run the example. If you do not specify any arguments, the SUMO Toolbox will use the settings in the default.xml file. If you wish run a different configuration file use the following command &#039;&amp;lt;code&amp;gt;go(pathToYourConfig/yourConfig.xml)&amp;lt;/code&amp;gt;&#039; where pathToYourConfig is the path to where your configuration XML-file is located, and yourConfig.xml is the name of your configuration XML-file.&lt;br /&gt;
&lt;br /&gt;
As noted above, it is also possible to specify an absolute path or refer to a particular simulator xml file directly.  For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Simulator&amp;gt;/path/to/your/project/directory&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Simulator&amp;gt;Ackley/Ackley2D.xml&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Important notes ===&lt;br /&gt;
&lt;br /&gt;
If you start changing default.xml to try out different examples, there are a number of important things you should be aware of.&lt;br /&gt;
&lt;br /&gt;
==== Select matching Inputs and Outputs ====&lt;br /&gt;
Using the &amp;lt;code&amp;gt;&amp;lt;Inputs&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;Outputs&amp;gt;&amp;lt;/code&amp;gt; tags in the SUMO-Toolbox configuration file you can tell the toolbox which outputs should be modeled and how.  Note that these tags are optional.  You can delete them and then the toolbox will simply model all available inputs and outputs.  If you do specify a particular output, for example say you tell the toolbox to model output &#039;&#039;temperature&#039;&#039; of the simulator &#039;ChemistryProblem&#039;.  If you then change the configuration file to model &#039;BiologyProblem&#039; you will have to change the name of the selected output (or input) since most likely &#039;BiologyProblem&#039; will not have an output called &#039;&#039;temperature&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Information on how to further customize to modelling of the outputs can be found [[Outputs|here]].&lt;br /&gt;
&lt;br /&gt;
==== Select a matching SampleEvaluator ====&lt;br /&gt;
There is one important caveat. Some examples consist of a fixed data set, some are implemented as a Matlab function, others as a C++ executable, etc.  When running a different example you have to tell the SUMO Toolbox how the example is implemented so the toolbox knows how to extract data (eg: should it load a data file or should it call a Matlab function).  This is done by specifying the correct [[Config:SampleEvaluator|SampleEvaluator]] tag.  The default SampleEvaluator is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;SampleEvaluator&amp;gt;matlab&amp;lt;/SampleEvaluator&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So this means that the toolbox expects the example you want to run is implemented as a Matlab function.  Thus it is no use running an example that is implemented as a static dataset using the &#039;[[Config:SampleEvaluator#matlab|matlab]]&#039; or &#039;[[Config:SampleEvaluator#local|local]]&#039; sample evaluators.  Doing this will result in an error.  In this case you should use &#039;[[Config:SampleEvaluator#scatteredDataset|scatteredDataset]]&#039; (or sometimes [[Config:SampleEvaluator#griddedDataset|griddedDataset]]).&lt;br /&gt;
&lt;br /&gt;
To see how an example is implemented open the XML file inside the example directory and look at the &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;Implementation&amp;gt;&amp;lt;/source&amp;gt; tag.  To see which SampleEvaluators are available see [[Config:SampleEvaluator]].&lt;br /&gt;
&lt;br /&gt;
=== Select an appropriate model type ===&lt;br /&gt;
The choice of the model type which you use to model your problem has a great impact on the overall accuracy. If you switch to a different example you may also have to change the model type used. For example, if you are using a spline model (which only works in 2D) and you decide to model a problem with many dimensions (e.g., CompActive or BostonHousing) you will have to switch to a different model type (e.g., any of the SVM or LS-SVM model builders). &lt;br /&gt;
&lt;br /&gt;
The &amp;lt;AdaptiveModelBuilder&amp;gt; tag specifies which model type is used to model problem. In most cases the &#039;AdaptiveModelBuilder&#039; also specifies an optimization algorithm to find the best &#039;hyperparameters&#039; of the models. Hyperparameters are parameters which define model, such as the order of a polynomial or the the number of hidden nodes of an Artificial Neural Network. To see all the AdaptiveModelBuilder options and what they do go to [[Config:AdaptiveModelBuilder| this page]].&lt;br /&gt;
&lt;br /&gt;
=== One-shot designs ===&lt;br /&gt;
If you want to use the toolbox to simply model all your data without instead of using the default sequential approach,  see [[Adaptive_Modeling_Mode]] for how to do this.&lt;br /&gt;
&lt;br /&gt;
== Running different configuration files ==&lt;br /&gt;
&lt;br /&gt;
If you just type &amp;quot;go&amp;quot; the SUMO-Toolbox will run using the configuration options in default.xml.  However you may want to make a copy of default.xml and play around with that, leaving your original default.xml intact.  So the question is, how do you run that file?  Lets say your copy is called MyConfigFile.xml.  In order to tell SUMO to run that file you would type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
go(&#039;/path/to/MyConfigFile.xml&#039;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The path can be an absolute path, or a path relative to the SUMO Toolbox root directory.&lt;br /&gt;
To see what other options you have when running go type &#039;&#039;help go&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remember to always run go from the toolbox root directory.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Merging your configuration ===&lt;br /&gt;
&lt;br /&gt;
If you know what you are doing, you can merge your own custom configuration with the default configuration by using the &#039;-merge&#039; option.  Options or tags that are missing in this custom file will then be filled up with the values from the default configuration.  This prevents you from having to duplicate tags in default.xml and creates xml files which are easier to manipulate. However, if you are unfamiliar with XML and not quite sure what you are doing we advise against using it.&lt;br /&gt;
&lt;br /&gt;
=== Running optimization examples ===&lt;br /&gt;
The SUMO toolbox can also be used for minimizing the simulator in an intelligent way. There are 2 examples in included in &amp;lt;code&amp;gt;config/Optimization&amp;lt;/code&amp;gt;. To run these examples is exactly the same as always, e.g. &amp;lt;code&amp;gt;go(&#039;config/optimization/Branin.xml&#039;)&amp;lt;/code&amp;gt;. The only difference is in the sample selector which is specified in the configuration file itself.&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Image:ISCSampleSelector2.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
The example configuration files are well documented, it is advised to go through them for more detailed information.&lt;br /&gt;
&lt;br /&gt;
== Understanding the control flow ==&lt;br /&gt;
&lt;br /&gt;
[[Image:sumo-control-flow.png|thumb|300px|right|The general SUMO-Toolbox control flow]]&lt;br /&gt;
&lt;br /&gt;
When the toolbox is running you might wonder what exactly is going on. The high level control flow that the toolbox goes through is illustrated in the flow chart and explained in more detail below.  You may also refer to the [[About#Presentation|general SUMO presentation]].&lt;br /&gt;
&lt;br /&gt;
# Select samples according to the [[InitialDesign|initial design]] and execute the [[Simulator]] for each of the points&lt;br /&gt;
# Once enough points are available, start the [[Add_Model_Type#Models.2C_Model_builders.2C_and_Factories|Model builder]] which will start producing models as it optimizes the model parameters&lt;br /&gt;
## the number of models generated depends on the [[Config:AdaptiveModelBuilder|AdaptiveModelBuilder]] used. Usually the AdaptiveModelBuilder tag contains a setting like &#039;&#039;maxFunEvals&#039;&#039; or &#039;&#039;popSize&#039;&#039;.  This indicates to the algorithm that is optimizing the model parameters (and thus generating models) how many models it should maximally generate before stopping.  By increasing this number you will generate more models in between sampling iterations, thus have a higher chance of getting a better model, but increasing the computation time.  This step is what we refer to as a &#039;&#039;modeling iteration&#039;&#039;.&lt;br /&gt;
## optimization over the model parameters is driven by the [[Measures|Measure(s)]] that are enabled. Selection of the Measure is thus very important for the modeling process!&lt;br /&gt;
## each time the model builder generates a model that has a lower measure score than the previous best model, the toolbox will trigger a &amp;quot;New best model found&amp;quot; event, save the model, generate a plot, and trigger all the profilers to update themselves.&lt;br /&gt;
## so note that by default, you only see something happen when a new best model is found, you do not see all the other models that are being generated in the background.  If you want to see those, you must increase the logging granularity (or just look in the log file) or [[FAQ#How_do_I_enable_more_profilers.3F|enable more profilers]].&lt;br /&gt;
# So the model builder will run until it has completed&lt;br /&gt;
# Then, if the current best model satisfies all the targets in the enabled Measures, it means we have reached the requirements and the toolbox terminates.&lt;br /&gt;
# If not, the [[SampleSelector]] selects a new set of samples (= a &#039;&#039;sampling iteration&#039;&#039;), they are simulated, and the model building resumes or is restarted according to the configured restart strategy&lt;br /&gt;
# This whole loop continues (thus the toolbox will keep running) until one of the following conditions is true:&lt;br /&gt;
## the targets specified in the active measure tags have been reached (each Measure has a target value which you can set). Note though, that when you are using multiple measures (see [[Multi-Objective Modeling]]) or when using single measures like AIC or LRM, it becomes difficult to set a priori targets since you cant really interpret the scores (in contrast to the simple case with a single measure like CrossValidation where your target is simply the error you require).  In those cases you should usually set the targets to 0 and use one of the other criteria below to make sure the toolbox stops.&lt;br /&gt;
## the maximum running time has been reached (&#039;&#039;maximumTime&#039;&#039; property in the [[Config:SUMO]] tag)&lt;br /&gt;
## the maximum number of samples has been reached (&#039;&#039;maximumTotalSamples&#039;&#039; property in the [[Config:SUMO]] tag)&lt;br /&gt;
## the maximum number of modeling iterations has been reached (&#039;&#039;maxModelingIterations&#039;&#039; property in the [[Config:SUMO]] tag)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that it is also possible to disable the sample selection loop, see [[Adaptive Modeling Mode]].  Also note that while you might think the toolbox is not doing anything, it is actually building models in the background (see above for how to see the details).  The toolbox will only inform you (unless configured otherwise) if it finds a model that is better than the previous best model (using that particular measure!!).  If not it will continue running until one of the stopping conditions is true.&lt;br /&gt;
&lt;br /&gt;
== SUMO Toolbox output ==&lt;br /&gt;
&lt;br /&gt;
All output is stored under the [[Config:ContextConfig#OutputDirectory|directory]] specified in the [[Config:ContextConfig]] section of the configuration file (by default this is set to &amp;quot;&amp;lt;code&amp;gt;output&amp;lt;/code&amp;gt;&amp;quot;). &lt;br /&gt;
&lt;br /&gt;
Starting from version 6.0 the output directory is always relative to the project directory of your example.  Unless you specify an absolute path.&lt;br /&gt;
&lt;br /&gt;
After completion of a SUMO Toolbox run, the following files and directories can be found there (e.g. : in &amp;lt;code&amp;gt;output/&amp;lt;run_name+date+time&amp;gt;/&amp;lt;/code&amp;gt; subdirectory) :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt;: The xml file that was used by this run. Can be used to reproduce the entire modeling process for that run.&lt;br /&gt;
* &amp;lt;code&amp;gt;randstate.dat&amp;lt;/code&amp;gt;: contains states of the random number generators, so that it becomes possible to deterministically repeat a run (see the [[Random state]] page).&lt;br /&gt;
* &amp;lt;code&amp;gt;samples.txt&amp;lt;/code&amp;gt;: a list of all the samples that were evaluated, and their outputs.&lt;br /&gt;
* &amp;lt;code&amp;gt;profilers&amp;lt;/code&amp;gt;-dir: contains information and plots about convergence rates, resource usage, and so on.&lt;br /&gt;
* &amp;lt;code&amp;gt;best&amp;lt;/code&amp;gt;-dir: contains the best models (+ plots) of all outputs that were constructed during the run.  This is continuously updated as the modeling progresses.&lt;br /&gt;
* &amp;lt;code&amp;gt;models_outputName&amp;lt;/code&amp;gt;-dir: contains a history of all intermediate models (+ plots + movie) for each output that was modeled.&lt;br /&gt;
&lt;br /&gt;
If you generated models [[Multi-Objective Modeling|multi-objectively]] you will also find the following directory:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;paretoFronts&amp;lt;/code&amp;gt;-dir: contains snapshots of the population during multi-objective optimization of the model parameters.&lt;br /&gt;
&lt;br /&gt;
== Debugging ==&lt;br /&gt;
&lt;br /&gt;
Remember to always check the log file first if problems occur!&lt;br /&gt;
When [[reporting problems]] please attach your log file and the xml configuration file you used.&lt;br /&gt;
&lt;br /&gt;
To aid understanding and debugging you should set the console and file logging level to FINE (or even FINER, FINEST)&lt;br /&gt;
as follows: &lt;br /&gt;
&lt;br /&gt;
Change the level of the ConsoleHandler tag to FINE, FINER or FINEST.  Do the same for the FileHandler tag. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- Configure ConsoleHandler instances --&amp;gt;&lt;br /&gt;
&amp;lt;ConsoleHandler&amp;gt;&lt;br /&gt;
	&amp;lt;Option key=&amp;quot;Level&amp;quot; value=&amp;quot;FINE&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/ConsoleHandler&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Using models ==&lt;br /&gt;
&lt;br /&gt;
Once you have generated a model, you might wonder what you can do with it. To see how to load, export, and use SUMO generated models see the [[Using a model]] page.&lt;br /&gt;
&lt;br /&gt;
== Modelling complex outputs ==&lt;br /&gt;
&lt;br /&gt;
The toolbox supports the modeling of complex valued data.  If you do not specify any specific &amp;lt;[[Outputs|Output]]&amp;gt; tags, all outputs will be modeled with [[Outputs#Complex_handling|complexHandling]] set to &#039;&amp;lt;code&amp;gt;complex&amp;lt;/code&amp;gt;&#039;. This means that a real output will be modeled as a real value, and a complex output will be modeled as a complex value (with a real and imaginary part).  If you don&#039;t want this (i.e., you want to model the modulus of a complex output or you want to model real and imaginary parts separately), you explicitly have to set [[Outputs#Complex_handling|complexHandling]] to &#039;modulus&#039;, &#039;real&#039;, &#039;imaginary&#039;, or &#039;split&#039;.&lt;br /&gt;
 &lt;br /&gt;
More information on this subject can be found at the [[Outputs#Complex_handling|Outputs]] page.&lt;br /&gt;
&lt;br /&gt;
== Models with multiple outputs ==&lt;br /&gt;
&lt;br /&gt;
If multiple [[Outputs]] are selected, by default the toolbox will model each output separately using a separate adaptive model builder object.  So if you have a system with 3 outputs you will get three different models each with one output.  However, sometimes you may want a single model with multiple outputs.  For example instead of having a neural network for each component of a complex output (real/imaginary) you might prefer a single network with 2 outputs.  To do this simply set the &#039;combineOutputs&#039; attribute of the &amp;lt;AdaptiveModelBuilder&amp;gt; tag to &#039;true&#039;.  That means that each time that model builder is selected for an output, the same model builder object will be used instead of creating a new one.&lt;br /&gt;
&lt;br /&gt;
Note though, that not all model types support multiple outputs.  If they don&#039;t you will get an error message.&lt;br /&gt;
&lt;br /&gt;
Also note that you can also generate models with multiple outputs in a multi-objective fashion.  For information on this see the page on [[Multi-Objective Modeling]].&lt;br /&gt;
&lt;br /&gt;
== Multi-Objective Model generation ==&lt;br /&gt;
&lt;br /&gt;
See the page on [[Multi-Objective Modeling]].&lt;br /&gt;
&lt;br /&gt;
== Interfacing with the SUMO Toolbox ==&lt;br /&gt;
&lt;br /&gt;
To learn how to interface with the toolbox or model your own problem see the [[Adding an example]] and [[Interfacing with the toolbox]] pages.&lt;br /&gt;
&lt;br /&gt;
== Test Suite ==&lt;br /&gt;
&lt;br /&gt;
A test harness is provided that can be run manually or automatically as part of a cron job.  The test suite consists of a number of test XML files (in the config/test/ directory), each describing a particular surrogate modeling experiment.  The file config/test/suite.xml dictates which tests are run and their order.  The suite.xml file also contains the accuracy and sample bounds that are checked after each test.  If the final model found does not fall within the accuracy or number-of-samples bounds, the test is considered failed.&lt;br /&gt;
&lt;br /&gt;
Note also that some of the predefined test cases may rely on data sets or simulation code that are not publically available for confidentiality reasons.  However, since these test problems typically make very good benchmark problems we left them in for illustration purposes.&lt;br /&gt;
&lt;br /&gt;
The coordinating class is the Matlab TestSuite class found in the src/matlab directory. Besides running the tests defined in suite.xml it also tests each of the model member functions.&lt;br /&gt;
&lt;br /&gt;
Assuming the SUMO Toolbox is setup properly and the necessary libraries are compiled ([[Installation#Optional:_Compiling_libraries|see here]]), the test suite should be run as follows (from the SUMO root directory):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
s = TestEngine(&#039;config/test/suite.xml&#039;) ; s.run()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;run()&amp;quot; method also supports an optional parameter (a vector) that dictates which tests to run (e.g., run([2 5 3]) will run tests 2,5 and 3).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note that due to randomization the final accuracy and number of samples used may vary slightly from run to run (causing failed tests).  Thus the bounds must be set sufficiently loose.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Tips ==&lt;br /&gt;
&lt;br /&gt;
See the [[Tips]] page for various tips and gotchas.&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Running&amp;diff=5766</id>
		<title>Running</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Running&amp;diff=5766"/>
		<updated>2012-02-10T15:54:50Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* Changing the configuration xml */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Getting started ==&lt;br /&gt;
&lt;br /&gt;
If you are just getting started with the toolbox and you have no idea how everything works, this section should help you on your way.&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;features&#039;&#039;&#039; and scope of the SUMO Toolbox are detailed on this [[About#Intended_use|page]]. To find out more about the SUMO Toolbox in general, check out the documentation on this [[About#Documentation|page]].&lt;br /&gt;
&lt;br /&gt;
* If you want to get hands-on with the SUMO Toolbox, we recommend using this [http://www.sumowiki.intec.ugent.be/images/7/7b/SUMO_hands_on.pdf guide]. The guide explains the basic SUMO framework, how to &#039;&#039;&#039;install&#039;&#039;&#039; the SUMO Toolbox on your computer and provides some &#039;&#039;&#039;examples&#039;&#039;&#039; on running the toolbox.&lt;br /&gt;
&lt;br /&gt;
* Since the SUMO Toolbox is [[Configuration|configured]] by editing XML files it might be a good idea to read [[FAQ#What is XML?|this page]], if you are not familiar with XML files.&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;installation&#039;&#039;&#039; information can also be found [[Installation|on this wiki]] and more information on running a different example the SUMO Toolbox can be found [[Running#Running_different_examples|here]]. &lt;br /&gt;
&lt;br /&gt;
* The SUMO Toolbox also comes with a set of &#039;&#039;&#039;demo&#039;s&#039;&#039;&#039; showing the different uses of the toolbox. You can find the configuration files for these demo&#039;s in the &#039;config/demo&#039; directory.&lt;br /&gt;
&lt;br /&gt;
* We have also provided some [[General_guidelines|general modelling guidelines]] which you can use a starting point to model your problems.&lt;br /&gt;
&lt;br /&gt;
* Also be sure to check out the &#039;&#039;&#039;Frequently Asked Questions&#039;&#039;&#039; ([[FAQ|FAQ]]) page as it might answer some of your questions.&lt;br /&gt;
&lt;br /&gt;
Finally if you get stuck or have any problems [[Reporting problems|feel free to let us know]] and will do our best to help you.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;We are well aware that documentation is not always complete and possibly even out of date in some cases. We try to document everything as best we can but much is limited by available time and manpower.  We are are a university research group after all. The most up to date documentation can always be found (if not here) in the default.xml configuration file and, of course, in the source files.  If something is unclear please don&#039;t hesitate to [[Reporting problems|ask]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Running different examples  ==&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
This section is about running a different example problem, if you want to model your own problem see [[Adding an example]].  Make sure you [[configuration|understand the difference between the simulator configuration file and the toolbox configuration file]] and understand how these configuration files are [[Toolbox configuration#Structure|structured]].&lt;br /&gt;
&lt;br /&gt;
=== Changing the configuration xml ===&lt;br /&gt;
The &amp;lt;code&amp;gt;examples/&amp;lt;/code&amp;gt; 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 &amp;lt;code&amp;gt;config/default.xml&amp;lt;/code&amp;gt; and edit the [[Simulator| &amp;lt;Simulator&amp;gt;]] tag to suit your needs. For more information about editing the configuration xml, go to this [[Config:ToolboxConfiguration#Interpreting_the_configuration_file|page]].&lt;br /&gt;
&lt;br /&gt;
For example, originally the default &#039;&#039;&#039;configuration xml&#039;&#039;&#039; file, default.xml, contains:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Simulator&amp;gt;Math/Academic/Academic2DTwice.xml&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The toolbox will look in the examples directory for a project directory called &amp;lt;code&amp;gt;Math/Academic&amp;lt;/code&amp;gt; and load the &#039;&#039;&#039;simulator xml&#039;&#039;&#039; file named &#039;Academic2DTwice.xml&#039;. If no simulator xml file name is specified, the SUMO Toolbox will load the simulator xml with the same name as directory. For example &amp;lt;code&amp;gt;Math/Peaks&amp;lt;/code&amp;gt; is equivalent to &amp;lt;code&amp;gt;Math/Peaks/Peaks.xml&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now let&#039;s say you want to run one of the different example problems, for example, lets say you want to try the &#039;Michalewicz&#039; example.  In this case you would replace the original Simulator tag with: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Simulator&amp;gt;Math/Michalewicz&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In addition you would have to change the &amp;lt;code&amp;gt;&amp;lt;Outputs&amp;gt;&amp;lt;/code&amp;gt; tag.  The &amp;lt;code&amp;gt;Math/Academic/Academic2DTwice.xml&amp;lt;/code&amp;gt; example has two outputs (&#039;&#039;out&#039;&#039; and &#039;&#039;outinverse&#039;&#039;).  However, the Michalewicz example has only one (&#039;&#039;out&#039;&#039;).  Thus telling the SUMO Toolbox to model the &#039;&#039;outinverse&#039;&#039; output in that case makes no sense since it does not exist for the &#039;Michalewicz&#039; example.  So the following output configuration suffices:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Outputs&amp;gt;&lt;br /&gt;
   &amp;lt;Output name=&amp;quot;out&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/Output&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The rest of default.xml can be kept the same, then simply type in &#039;&amp;lt;code&amp;gt;go&amp;lt;/code&amp;gt;&#039; in the SUMO root to run the example. If you do not specify any arguments, the SUMO Toolbox will use the settings in the default.xml file. If you wish run a different configuration file use the following command &#039;&amp;lt;code&amp;gt;go(pathToYourConfig/yourConfig.xml)&amp;lt;/code&amp;gt;&#039; where pathToYourConfig is the path to where your configuration XML-file is located, and yourConfig.xml is the name of your configuration XML-file.&lt;br /&gt;
&lt;br /&gt;
As noted above, it is also possible to specify an absolute path or refer to a particular simulator xml file directly.  For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Simulator&amp;gt;/path/to/your/project/directory&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Simulator&amp;gt;Ackley/Ackley2D.xml&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Important notes ===&lt;br /&gt;
&lt;br /&gt;
If you start changing default.xml to try out different examples, there are a number of important things you should be aware of.&lt;br /&gt;
&lt;br /&gt;
==== Select matching Inputs and Outputs ====&lt;br /&gt;
Using the &amp;lt;code&amp;gt;&amp;lt;Inputs&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;Outputs&amp;gt;&amp;lt;/code&amp;gt; tags in the SUMO-Toolbox configuration file you can tell the toolbox which outputs should be modeled and how.  Note that these tags are optional.  You can delete them and then the toolbox will simply model all available inputs and outputs.  If you do specify a particular output, for example say you tell the toolbox to model output &#039;&#039;temperature&#039;&#039; of the simulator &#039;ChemistryProblem&#039;.  If you then change the configuration file to model &#039;BiologyProblem&#039; you will have to change the name of the selected output (or input) since most likely &#039;BiologyProblem&#039; will not have an output called &#039;&#039;temperature&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Information on how to further customize to modelling of the outputs can be found [[Outputs|here]].&lt;br /&gt;
&lt;br /&gt;
==== Select a matching SampleEvaluator ====&lt;br /&gt;
There is one important caveat. Some examples consist of a fixed data set, some are implemented as a Matlab function, others as a C++ executable, etc.  When running a different example you have to tell the SUMO Toolbox how the example is implemented so the toolbox knows how to extract data (eg: should it load a data file or should it call a Matlab function).  This is done by specifying the correct [[Config:SampleEvaluator|SampleEvaluator]] tag.  The default SampleEvaluator is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;SampleEvaluator&amp;gt;matlab&amp;lt;/SampleEvaluator&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So this means that the toolbox expects the example you want to run is implemented as a Matlab function.  Thus it is no use running an example that is implemented as a static dataset using the &#039;[[Config:SampleEvaluator#matlab|matlab]]&#039; or &#039;[[Config:SampleEvaluator#local|local]]&#039; sample evaluators.  Doing this will result in an error.  In this case you should use &#039;[[Config:SampleEvaluator#scatteredDataset|scatteredDataset]]&#039; (or sometimes [[Config:SampleEvaluator#griddedDataset|griddedDataset]]).&lt;br /&gt;
&lt;br /&gt;
To see how an example is implemented open the XML file inside the example directory and look at the &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;Implementation&amp;gt;&amp;lt;/source&amp;gt; tag.  To see which SampleEvaluators are available see [[Config:SampleEvaluator]].&lt;br /&gt;
&lt;br /&gt;
=== Select an appropriate model type ===&lt;br /&gt;
The choice of the model type which you use to model your problem has a great impact on the overall accuracy. If you switch to a different example you may also have to change the model type used. For example, if you are using a spline model (which only works in 2D) and you decide to model a problem with many dimensions (e.g., CompActive or BostonHousing) you will have to switch to a different model type (e.g., any of the SVM or LS-SVM model builders). &lt;br /&gt;
&lt;br /&gt;
The &amp;lt;AdaptiveModelBuilder&amp;gt; tag specifies which model type is used to model problem. In most cases the &#039;AdaptiveModelBuilder&#039; also specifies an optimization algorithm to find the best &#039;hyperparameters&#039; of the models. Hyperparameters are parameters which define model, such as the order of a polynomial or the the number of hidden nodes of an Artificial Neural Network. To see all the AdaptiveModelBuilder options and what they do go to [[Config:AdaptiveModelBuilder| this page]].&lt;br /&gt;
&lt;br /&gt;
=== One-shot designs ===&lt;br /&gt;
If you want to use the toolbox to simply model all your data without instead of using the default sequential approach,  see [[Adaptive_Modeling_Mode]] for how to do this.&lt;br /&gt;
&lt;br /&gt;
== Running different configuration files ==&lt;br /&gt;
&lt;br /&gt;
If you just type &amp;quot;go&amp;quot; the SUMO-Toolbox will run using the configuration options in default.xml.  However you may want to make a copy of default.xml and play around with that, leaving your original default.xml intact.  So the question is, how do you run that file?  Lets say your copy is called MyConfigFile.xml.  In order to tell SUMO to run that file you would type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
go(&#039;/path/to/MyConfigFile.xml&#039;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The path can be an absolute path, or a path relative to the SUMO Toolbox root directory.&lt;br /&gt;
To see what other options you have when running go type &#039;&#039;help go&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remember to always run go from the toolbox root directory.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Merging your configuration ===&lt;br /&gt;
&lt;br /&gt;
If you know what you are doing, you can merge your own custom configuration with the default configuration by using the &#039;-merge&#039; option.  Options or tags that are missing in this custom file will then be filled up with the values from the default configuration.  This prevents you from having to duplicate tags in default.xml and creates xml files which are easier to manipulate. However, if you are unfamiliar with XML and not quite sure what you are doing we advise against using it.&lt;br /&gt;
&lt;br /&gt;
=== Running optimization examples ===&lt;br /&gt;
The SUMO toolbox can also be used for minimizing the simulator in an intelligent way. There are 2 examples in included in &amp;lt;code&amp;gt;config/Optimization&amp;lt;/code&amp;gt;. To run these examples is exactly the same as always, e.g. &amp;lt;code&amp;gt;go(&#039;config/optimization/Branin.xml&#039;)&amp;lt;/code&amp;gt;. The only difference is in the sample selector which is specified in the configuration file itself.&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Image:ISCSampleSelector2.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
The example configuration files are well documented, it is advised to go through them for more detailed information.&lt;br /&gt;
&lt;br /&gt;
== Understanding the control flow ==&lt;br /&gt;
&lt;br /&gt;
[[Image:sumo-control-flow.png|thumb|300px|right|The general SUMO-Toolbox control flow]]&lt;br /&gt;
&lt;br /&gt;
When the toolbox is running you might wonder what exactly is going on. The high level control flow that the toolbox goes through is illustrated in the flow chart and explained in more detail below.  You may also refer to the [[About#Presentation|general SUMO presentation]].&lt;br /&gt;
&lt;br /&gt;
# Select samples according to the [[InitialDesign|initial design]] and execute the [[Simulator]] for each of the points&lt;br /&gt;
# Once enough points are available, start the [[Add_Model_Type#Models.2C_Model_builders.2C_and_Factories|Model builder]] which will start producing models as it optimizes the model parameters&lt;br /&gt;
## the number of models generated depends on the [[Config:AdaptiveModelBuilder|AdaptiveModelBuilder]] used. Usually the AdaptiveModelBuilder tag contains a setting like &#039;&#039;maxFunEvals&#039;&#039; or &#039;&#039;popSize&#039;&#039;.  This indicates to the algorithm that is optimizing the model parameters (and thus generating models) how many models it should maximally generate before stopping.  By increasing this number you will generate more models in between sampling iterations, thus have a higher chance of getting a better model, but increasing the computation time.  This step is what we refer to as a &#039;&#039;modeling iteration&#039;&#039;.&lt;br /&gt;
## optimization over the model parameters is driven by the [[Measures|Measure(s)]] that are enabled. Selection of the Measure is thus very important for the modeling process!&lt;br /&gt;
## each time the model builder generates a model that has a lower measure score than the previous best model, the toolbox will trigger a &amp;quot;New best model found&amp;quot; event, save the model, generate a plot, and trigger all the profilers to update themselves.&lt;br /&gt;
## so note that by default, you only see something happen when a new best model is found, you do not see all the other models that are being generated in the background.  If you want to see those, you must increase the logging granularity (or just look in the log file) or [[FAQ#How_do_I_enable_more_profilers.3F|enable more profilers]].&lt;br /&gt;
# So the model builder will run until it has completed&lt;br /&gt;
# Then, if the current best model satisfies all the targets in the enabled Measures, it means we have reached the requirements and the toolbox terminates.&lt;br /&gt;
# If not, the [[SampleSelector]] selects a new set of samples (= a &#039;&#039;sampling iteration&#039;&#039;), they are simulated, and the model building resumes or is restarted according to the configured restart strategy&lt;br /&gt;
# This whole loop continues (thus the toolbox will keep running) until one of the following conditions is true:&lt;br /&gt;
## the targets specified in the active measure tags have been reached (each Measure has a target value which you can set). Note though, that when you are using multiple measures (see [[Multi-Objective Modeling]]) or when using single measures like AIC or LRM, it becomes difficult to set a priori targets since you cant really interpret the scores (in contrast to the simple case with a single measure like CrossValidation where your target is simply the error you require).  In those cases you should usually set the targets to 0 and use one of the other criteria below to make sure the toolbox stops.&lt;br /&gt;
## the maximum running time has been reached (&#039;&#039;maximumTime&#039;&#039; property in the [[Config:SUMO]] tag)&lt;br /&gt;
## the maximum number of samples has been reached (&#039;&#039;maximumTotalSamples&#039;&#039; property in the [[Config:SUMO]] tag)&lt;br /&gt;
## the maximum number of modeling iterations has been reached (&#039;&#039;maxModelingIterations&#039;&#039; property in the [[Config:SUMO]] tag)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that it is also possible to disable the sample selection loop, see [[Adaptive Modeling Mode]].  Also note that while you might think the toolbox is not doing anything, it is actually building models in the background (see above for how to see the details).  The toolbox will only inform you (unless configured otherwise) if it finds a model that is better than the previous best model (using that particular measure!!).  If not it will continue running until one of the stopping conditions is true.&lt;br /&gt;
&lt;br /&gt;
== SUMO Toolbox output ==&lt;br /&gt;
&lt;br /&gt;
All output is stored under the [[Config:ContextConfig#OutputDirectory|directory]] specified in the [[Config:ContextConfig]] section of the configuration file (by default this is set to &amp;quot;&amp;lt;code&amp;gt;output&amp;lt;/code&amp;gt;&amp;quot;). &lt;br /&gt;
&lt;br /&gt;
Starting from version 6.0 the output directory is always relative to the project directory of your example.  Unless you specify an absolute path.&lt;br /&gt;
&lt;br /&gt;
After completion of a SUMO Toolbox run, the following files and directories can be found there (e.g. : in &amp;lt;code&amp;gt;output/&amp;lt;run_name+date+time&amp;gt;/&amp;lt;/code&amp;gt; subdirectory) :&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt;: The xml file that was used by this run. Can be used to reproduce the entire modeling process for that run.&lt;br /&gt;
* &amp;lt;code&amp;gt;randstate.dat&amp;lt;/code&amp;gt;: contains states of the random number generators, so that it becomes possible to deterministically repeat a run (see the [[Random state]] page).&lt;br /&gt;
* &amp;lt;code&amp;gt;samples.txt&amp;lt;/code&amp;gt;: a list of all the samples that were evaluated, and their outputs.&lt;br /&gt;
* &amp;lt;code&amp;gt;profilers&amp;lt;/code&amp;gt;-dir: contains information and plots about convergence rates, resource usage, and so on.&lt;br /&gt;
* &amp;lt;code&amp;gt;best&amp;lt;/code&amp;gt;-dir: contains the best models (+ plots) of all outputs that were constructed during the run.  This is continuously updated as the modeling progresses.&lt;br /&gt;
* &amp;lt;code&amp;gt;models_outputName&amp;lt;/code&amp;gt;-dir: contains a history of all intermediate models (+ plots + movie) for each output that was modeled.&lt;br /&gt;
&lt;br /&gt;
If you generated models [[Multi-Objective Modeling|multi-objectively]] you will also find the following directory:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;paretoFronts&amp;lt;/code&amp;gt;-dir: contains snapshots of the population during multi-objective optimization of the model parameters.&lt;br /&gt;
&lt;br /&gt;
== Debugging ==&lt;br /&gt;
&lt;br /&gt;
Remember to always check the log file first if problems occur!&lt;br /&gt;
When [[reporting problems]] please attach your log file and the xml configuration file you used.&lt;br /&gt;
&lt;br /&gt;
To aid understanding and debugging you should set the console and file logging level to FINE (or even FINER, FINEST)&lt;br /&gt;
as follows: &lt;br /&gt;
&lt;br /&gt;
Change the level of the ConsoleHandler tag to FINE, FINER or FINEST.  Do the same for the FileHandler tag. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- Configure ConsoleHandler instances --&amp;gt;&lt;br /&gt;
&amp;lt;ConsoleHandler&amp;gt;&lt;br /&gt;
	&amp;lt;Option key=&amp;quot;Level&amp;quot; value=&amp;quot;FINE&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/ConsoleHandler&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Using models ==&lt;br /&gt;
&lt;br /&gt;
Once you have generated a model, you might wonder what you can do with it. To see how to load, export, and use SUMO generated models see the [[Using a model]] page.&lt;br /&gt;
&lt;br /&gt;
== Modelling complex outputs ==&lt;br /&gt;
&lt;br /&gt;
The toolbox supports the modeling of complex valued data.  If you do not specify any specific &amp;lt;[[Outputs|Output]]&amp;gt; tags, all outputs will be modeled with [[Outputs#Complex_handling|complexHandling]] set to &#039;&amp;lt;code&amp;gt;complex&amp;lt;/code&amp;gt;&#039;. This means that a real output will be modeled as a real value, and a complex output will be modeled as a complex value (with a real and imaginary part).  If you don&#039;t want this (i.e., you want to model the modulus of a complex output or you want to model real and imaginary parts separately), you explicitly have to set [[Outputs#Complex_handling|complexHandling]] to &#039;modulus&#039;, &#039;real&#039;, &#039;imaginary&#039;, or &#039;split&#039;.&lt;br /&gt;
 &lt;br /&gt;
More information on this subject can be found at the [[Outputs#Complex_handling|Outputs]] page.&lt;br /&gt;
&lt;br /&gt;
== Models with multiple outputs ==&lt;br /&gt;
&lt;br /&gt;
If multiple [[Outputs]] are selected, by default the toolbox will model each output separately using a separate adaptive model builder object.  So if you have a system with 3 outputs you will get three different models each with one output.  However, sometimes you may want a single model with multiple outputs.  For example instead of having a neural network for each component of a complex output (real/imaginary) you might prefer a single network with 2 outputs.  To do this simply set the &#039;combineOutputs&#039; attribute of the &amp;lt;AdaptiveModelBuilder&amp;gt; tag to &#039;true&#039;.  That means that each time that model builder is selected for an output, the same model builder object will be used instead of creating a new one.&lt;br /&gt;
&lt;br /&gt;
Note though, that not all model types support multiple outputs.  If they don&#039;t you will get an error message.&lt;br /&gt;
&lt;br /&gt;
Also note that you can also generate models with multiple outputs in a multi-objective fashion.  For information on this see the page on [[Multi-Objective Modeling]].&lt;br /&gt;
&lt;br /&gt;
== Multi-Objective Model generation ==&lt;br /&gt;
&lt;br /&gt;
See the page on [[Multi-Objective Modeling]].&lt;br /&gt;
&lt;br /&gt;
== Interfacing with the SUMO Toolbox ==&lt;br /&gt;
&lt;br /&gt;
To learn how to interface with the toolbox or model your own problem see the [[Adding an example]] and [[Interfacing with the toolbox]] pages.&lt;br /&gt;
&lt;br /&gt;
== Test Suite ==&lt;br /&gt;
&lt;br /&gt;
A test harness is provided that can be run manually or automatically as part of a cron job.  The test suite consists of a number of test XML files (in the config/test/ directory), each describing a particular surrogate modeling experiment.  The file config/test/suite.xml dictates which tests are run and their order.  The suite.xml file also contains the accuracy and sample bounds that are checked after each test.  If the final model found does not fall within the accuracy or number-of-samples bounds, the test is considered failed.&lt;br /&gt;
&lt;br /&gt;
Note also that some of the predefined test cases may rely on data sets or simulation code that are not publically available for confidentiality reasons.  However, since these test problems typically make very good benchmark problems we left them in for illustration purposes.&lt;br /&gt;
&lt;br /&gt;
The coordinating class is the Matlab TestSuite class found in the src/matlab directory. Besides running the tests defined in suite.xml it also tests each of the model member functions.&lt;br /&gt;
&lt;br /&gt;
Assuming the SUMO Toolbox is setup properly and the necessary libraries are compiled ([[Installation#Optional:_Compiling_libraries|see here]]), the test suite should be run as follows (from the SUMO root directory):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
s = TestEngine(&#039;config/test/suite.xml&#039;) ; s.run()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;run()&amp;quot; method also supports an optional parameter (a vector) that dictates which tests to run (e.g., run([2 5 3]) will run tests 2,5 and 3).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note that due to randomization the final accuracy and number of samples used may vary slightly from run to run (causing failed tests).  Thus the bounds must be set sufficiently loose.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Tips ==&lt;br /&gt;
&lt;br /&gt;
See the [[Tips]] page for various tips and gotchas.&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Config:ToolboxConfiguration&amp;diff=5765</id>
		<title>Config:ToolboxConfiguration</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Config:ToolboxConfiguration&amp;diff=5765"/>
		<updated>2012-02-10T15:53:40Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* Modifying/Creating your own configuration section */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Toolbox configuration file ==&lt;br /&gt;
This is the default SUMO toolbox configuration, this is what gets used when you run &#039;go&#039; without any arguments You can edit this file directly or make a copy and run that. See the wiki for detailed information.&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:ToolboxConfiguration|ToolboxConfiguration]] version=&amp;quot;7.0&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:Plan|Plan]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:ContextConfig|ContextConfig]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:Logging|Logging]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:LevelPlot|LevelPlot]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SUMO|SUMO]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleSelector|SampleSelector]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:AdaptiveModelBuilder|AdaptiveModelBuilder]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:BasisFunction|BasisFunction]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:InitialDesign|InitialDesign]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:Optimizer|Optimizer]]/&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:ToolboxConfiguration|ToolboxConfiguration]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Interpreting the configuration file == &lt;br /&gt;
&lt;br /&gt;
When first looking at the default.xml you are presented with a lot of information and it can be a bit difficult to understand what is going, especially if you are not familiar with XML. However there is method in the madness, and this section will help you to break down the components that make up the configuration file. &lt;br /&gt;
&lt;br /&gt;
=== Comments ===&lt;br /&gt;
Comments in the XML are displayed like so:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;!-- This is an example comment. --&amp;gt;        &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default.xml contains a lot of comments with information about the different sections or example usage.&lt;br /&gt;
&lt;br /&gt;
=== Tags ===&lt;br /&gt;
XML groups information that logically belong to with each other within so called &#039;&#039;&#039;tags&#039;&#039;&#039;. Here is an example of a &#039;&#039;recipe&#039;&#039; tag. This is a recipe to make pancakes, which is grouped in a logical way; all the ingredients &#039;&#039;items&#039;&#039; are grouped within the &#039;&#039;ingredients&#039;&#039; tag. The &#039;&#039;items&#039;&#039; themselves in turn group information about the &#039;&#039;type&#039;&#039; of ingredient and the required &#039;&#039;amount&#039;&#039;. Tags can also have attributes, here the &#039;&#039;recipe&#039;&#039; tag has an attribute called &#039;&#039;category&#039;&#039; with the value &#039;&#039;desert&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;recipe category=&amp;quot;dessert&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;title&amp;gt;Pancakes&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;sumo@intec.ugent.be&amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;date&amp;gt;Wed, 14 Jun 95&amp;lt;/date&amp;gt;&lt;br /&gt;
  &amp;lt;description&amp;gt;&lt;br /&gt;
    Good old fashioned pancakes.&lt;br /&gt;
  &amp;lt;/description&amp;gt;&lt;br /&gt;
  &amp;lt;ingredients&amp;gt;&lt;br /&gt;
    &amp;lt;item&amp;gt;&lt;br /&gt;
        &amp;lt;amount&amp;gt;3&amp;lt;/amount&amp;gt;&lt;br /&gt;
        &amp;lt;type&amp;gt;eggs&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;/item&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;item&amp;gt;&lt;br /&gt;
         &amp;lt;amount&amp;gt;0.5 tablespoon&amp;lt;/amount&amp;gt;&lt;br /&gt;
         &amp;lt;type&amp;gt;salt&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;/item&amp;gt;&lt;br /&gt;
     ...&lt;br /&gt;
  &amp;lt;/ingredients&amp;gt;&lt;br /&gt;
  &amp;lt;preparation&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
  &amp;lt;/preparation&amp;gt;&lt;br /&gt;
 &amp;lt;/recipe&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The configuration file uses XML to group information about the Toolbox into logical units. Here is an example configuration of a [[Config:SampleSelector#delaunay|SampleSelector]] called delaunay. It has three attributes &#039;&#039;id&#039;&#039;, &#039;&#039;type&#039;&#039; and &#039;&#039;combineOutputs&#039;&#039;. The SUMO Toolbox uses the &#039;&#039;id&#039;&#039; to refer to this configuration section in other places in the configuration file. The &#039;&#039;type&#039;&#039; refers tells the toolbox what class of sample selector it has to look for in the &amp;lt;code&amp;gt;src&amp;lt;/code&amp;gt; folder, in this case the class &#039;&#039;PipeLinSampleSelector&#039;&#039; which you can find under &amp;lt;code&amp;gt;src/matlab/sampleselector/@PipeLineSampleSelector&amp;lt;/code&amp;gt;. The &#039;&#039;combineOutputs&#039;&#039; tells the SUMO how the SampleSelector has to deal with multiple outputs.&lt;br /&gt;
&lt;br /&gt;
If you look at the implementation of the PipeLineSampleSelector you will see that it requires a &#039;&#039;CandidateGenerator&#039;&#039;, &#039;&#039;CandidateRanker&#039;&#039; and a &#039;&#039;MergeCriterion&#039;&#039; all of which are specified here within the &#039;&#039;SampleSelector&#039;&#039; tag.&lt;br /&gt;
&lt;br /&gt;
Other components (such as [[Config:AdaptiveModelBuilder|AdaptiveModelBuilder]], [[Config:InitialDesign|initial design]], etc...) require different information. To find what options and configurations you need/can give to a component check out their wiki page or their implementation in the Toolbox.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=xml&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;SampleSelector id=&amp;quot;delaunay&amp;quot; type=&amp;quot;PipelineSampleSelector&amp;quot; combineOutputs=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
		&amp;lt;CandidateGenerator type=&amp;quot;DelaunayCandidateGenerator&amp;quot;/&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;modelDifference&amp;quot;&amp;gt;&lt;br /&gt;
        		&amp;lt;Option key=&amp;quot;criterion_parameter&amp;quot; value=&amp;quot;2&amp;quot;/&amp;gt;&lt;br /&gt;
       		&amp;lt;/CandidateRanker&amp;gt;&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;delaunayVolume&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        	&amp;lt;MergeCriterion type=&amp;quot;WeightedAverage&amp;quot; weights=&amp;quot;[1 1]&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing configuration components of an experimental run ===&lt;br /&gt;
The SUMO Toolbox was written with flexibility in mind, making it easy to experiment with different combinations of algorithms. Here is a snippet from a configuration XML. The snippet show the &amp;lt;Plan&amp;gt; tag which determines how the experimental runs are configured and two different pre-defined &amp;lt;SampleSelector&amp;gt; tags, &#039;&#039;random&#039;&#039; and &#039;&#039;delaunay&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;ISO-8859-1&amp;quot; ?&amp;gt;&lt;br /&gt;
&amp;lt;ToolboxConfiguration version=&amp;quot;7.0&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;Plan&amp;gt;&lt;br /&gt;
                &amp;lt;ContextConfig&amp;gt;default&amp;lt;/ContextConfig&amp;gt;&lt;br /&gt;
		&amp;lt;SUMO&amp;gt;default&amp;lt;/SUMO&amp;gt;&lt;br /&gt;
		&amp;lt;LevelPlot&amp;gt;default&amp;lt;/LevelPlot&amp;gt;&lt;br /&gt;
		&amp;lt;Simulator&amp;gt;Math/Academic/Academic2DTwice.xml&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
                &amp;lt;Run name=&amp;quot;&amp;quot; repeat=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;InitialDesign&amp;gt;lhdWithCornerPoints&amp;lt;/InitialDesign&amp;gt;&lt;br /&gt;
			&amp;lt;SampleSelector&amp;gt;random&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
			&amp;lt;SampleEvaluator&amp;gt;matlab&amp;lt;/SampleEvaluator&amp;gt;&lt;br /&gt;
			&amp;lt;AdaptiveModelBuilder&amp;gt;kriging&amp;lt;/AdaptiveModelBuilder&amp;gt;&lt;br /&gt;
			&amp;lt;Measure type=&amp;quot;CrossValidation&amp;quot; target=&amp;quot;0.01&amp;quot; errorFcn=&amp;quot;rootRelativeSquareError&amp;quot; use=&amp;quot;on&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Outputs&amp;gt;&lt;br /&gt;
				&amp;lt;Output name=&amp;quot;out&amp;quot;&amp;gt;&lt;br /&gt;
				&amp;lt;/Output&amp;gt;&lt;br /&gt;
				&amp;lt;Output name=&amp;quot;outinverse&amp;quot;&amp;gt;&lt;br /&gt;
				&amp;lt;/Output&amp;gt;&lt;br /&gt;
			&amp;lt;/Outputs&amp;gt;&lt;br /&gt;
		&amp;lt;/Run&amp;gt;&lt;br /&gt;
	&amp;lt;/Plan&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 	...&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;SampleSelector id=&amp;quot;random&amp;quot; type=&amp;quot;RandomSampleSelector&amp;quot; combineOutputs=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;SampleSelector id=&amp;quot;delaunay&amp;quot; type=&amp;quot;PipelineSampleSelector&amp;quot; combineOutputs=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
		&amp;lt;CandidateGenerator type=&amp;quot;DelaunayCandidateGenerator&amp;quot;/&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;modelDifference&amp;quot;&amp;gt;&lt;br /&gt;
        		&amp;lt;Option key=&amp;quot;criterion_parameter&amp;quot; value=&amp;quot;2&amp;quot;/&amp;gt;&lt;br /&gt;
       		&amp;lt;/CandidateRanker&amp;gt;&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;delaunayVolume&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        	&amp;lt;MergeCriterion type=&amp;quot;WeightedAverage&amp;quot; weights=&amp;quot;[1 1]&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
	&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ToolboxConfiguration&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All the tags within the &amp;lt;Plan&amp;gt; tag, except for Measure, Inputs and Outputs, refer to a configuration section defined further in the configuration xml. These tags determine what algorithm will be used for the experimental run. For example in this case the tag: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;SampleSelector&amp;gt;random&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
refers to the SampleSelector tag with an &#039;&#039;id=random&#039;&#039;. So even though both the &#039;&#039;random&#039;&#039; SampleSelector and &#039;&#039;delaunay&#039;&#039; SampleSelector are defined, it is the random SampleSelector which will be used in the experimental run. &lt;br /&gt;
&lt;br /&gt;
The default.xml already has a number of configuration section already defined, making it easier for you to experiment with them. All you have to do is use the appropriate &#039;&#039;id&#039;&#039; in the right tags.&lt;br /&gt;
&lt;br /&gt;
=== Modifying/Creating your own configuration section ===&lt;br /&gt;
&lt;br /&gt;
In some cases the default configuration sections might no suit your needs. For example if you require a lhdWithCornerPoints [[Config:InitialDesign|initial design]] with 40 instead of the default 20 points. In this case you can either create a new configuration section like so:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;InitialDesign id=&amp;quot;lhdWithCornerPoints40&amp;quot; type=&amp;quot;CombinedDesign&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;InitialDesign type=&amp;quot;LatinHypercubeDesign&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;!-- how many points to generate --&amp;gt;&lt;br /&gt;
			&amp;lt;Option key=&amp;quot;points&amp;quot; value=&amp;quot;40&amp;quot;/&amp;gt;&lt;br /&gt;
		&amp;lt;/InitialDesign&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		&amp;lt;InitialDesign type=&amp;quot;FactorialDesign&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;Option key=&amp;quot;levels&amp;quot; value=&amp;quot;2&amp;quot; /&amp;gt;&lt;br /&gt;
		&amp;lt;/InitialDesign&amp;gt;&lt;br /&gt;
	&amp;lt;/InitialDesign&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and refer to it in the plan using the &#039;&#039;id&#039;&#039; lhdWithCornerPoints40 or you can simply edit the default lhdWithCornerPoints :). When making your own configuration section, make sure you specify all necessary tags and options and you&#039;re set to go!&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Config:ToolboxConfiguration&amp;diff=5764</id>
		<title>Config:ToolboxConfiguration</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Config:ToolboxConfiguration&amp;diff=5764"/>
		<updated>2012-02-10T15:52:33Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* Changing configuration components of an experimental run */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Toolbox configuration file ==&lt;br /&gt;
This is the default SUMO toolbox configuration, this is what gets used when you run &#039;go&#039; without any arguments You can edit this file directly or make a copy and run that. See the wiki for detailed information.&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:ToolboxConfiguration|ToolboxConfiguration]] version=&amp;quot;7.0&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:Plan|Plan]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:ContextConfig|ContextConfig]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:Logging|Logging]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:LevelPlot|LevelPlot]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SUMO|SUMO]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleSelector|SampleSelector]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:AdaptiveModelBuilder|AdaptiveModelBuilder]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:BasisFunction|BasisFunction]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:InitialDesign|InitialDesign]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:Optimizer|Optimizer]]/&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:ToolboxConfiguration|ToolboxConfiguration]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Interpreting the configuration file == &lt;br /&gt;
&lt;br /&gt;
When first looking at the default.xml you are presented with a lot of information and it can be a bit difficult to understand what is going, especially if you are not familiar with XML. However there is method in the madness, and this section will help you to break down the components that make up the configuration file. &lt;br /&gt;
&lt;br /&gt;
=== Comments ===&lt;br /&gt;
Comments in the XML are displayed like so:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;!-- This is an example comment. --&amp;gt;        &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default.xml contains a lot of comments with information about the different sections or example usage.&lt;br /&gt;
&lt;br /&gt;
=== Tags ===&lt;br /&gt;
XML groups information that logically belong to with each other within so called &#039;&#039;&#039;tags&#039;&#039;&#039;. Here is an example of a &#039;&#039;recipe&#039;&#039; tag. This is a recipe to make pancakes, which is grouped in a logical way; all the ingredients &#039;&#039;items&#039;&#039; are grouped within the &#039;&#039;ingredients&#039;&#039; tag. The &#039;&#039;items&#039;&#039; themselves in turn group information about the &#039;&#039;type&#039;&#039; of ingredient and the required &#039;&#039;amount&#039;&#039;. Tags can also have attributes, here the &#039;&#039;recipe&#039;&#039; tag has an attribute called &#039;&#039;category&#039;&#039; with the value &#039;&#039;desert&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;recipe category=&amp;quot;dessert&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;title&amp;gt;Pancakes&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;sumo@intec.ugent.be&amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;date&amp;gt;Wed, 14 Jun 95&amp;lt;/date&amp;gt;&lt;br /&gt;
  &amp;lt;description&amp;gt;&lt;br /&gt;
    Good old fashioned pancakes.&lt;br /&gt;
  &amp;lt;/description&amp;gt;&lt;br /&gt;
  &amp;lt;ingredients&amp;gt;&lt;br /&gt;
    &amp;lt;item&amp;gt;&lt;br /&gt;
        &amp;lt;amount&amp;gt;3&amp;lt;/amount&amp;gt;&lt;br /&gt;
        &amp;lt;type&amp;gt;eggs&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;/item&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;item&amp;gt;&lt;br /&gt;
         &amp;lt;amount&amp;gt;0.5 tablespoon&amp;lt;/amount&amp;gt;&lt;br /&gt;
         &amp;lt;type&amp;gt;salt&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;/item&amp;gt;&lt;br /&gt;
     ...&lt;br /&gt;
  &amp;lt;/ingredients&amp;gt;&lt;br /&gt;
  &amp;lt;preparation&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
  &amp;lt;/preparation&amp;gt;&lt;br /&gt;
 &amp;lt;/recipe&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The configuration file uses XML to group information about the Toolbox into logical units. Here is an example configuration of a [[Config:SampleSelector#delaunay|SampleSelector]] called delaunay. It has three attributes &#039;&#039;id&#039;&#039;, &#039;&#039;type&#039;&#039; and &#039;&#039;combineOutputs&#039;&#039;. The SUMO Toolbox uses the &#039;&#039;id&#039;&#039; to refer to this configuration section in other places in the configuration file. The &#039;&#039;type&#039;&#039; refers tells the toolbox what class of sample selector it has to look for in the &amp;lt;code&amp;gt;src&amp;lt;/code&amp;gt; folder, in this case the class &#039;&#039;PipeLinSampleSelector&#039;&#039; which you can find under &amp;lt;code&amp;gt;src/matlab/sampleselector/@PipeLineSampleSelector&amp;lt;/code&amp;gt;. The &#039;&#039;combineOutputs&#039;&#039; tells the SUMO how the SampleSelector has to deal with multiple outputs.&lt;br /&gt;
&lt;br /&gt;
If you look at the implementation of the PipeLineSampleSelector you will see that it requires a &#039;&#039;CandidateGenerator&#039;&#039;, &#039;&#039;CandidateRanker&#039;&#039; and a &#039;&#039;MergeCriterion&#039;&#039; all of which are specified here within the &#039;&#039;SampleSelector&#039;&#039; tag.&lt;br /&gt;
&lt;br /&gt;
Other components (such as [[Config:AdaptiveModelBuilder|AdaptiveModelBuilder]], [[Config:InitialDesign|initial design]], etc...) require different information. To find what options and configurations you need/can give to a component check out their wiki page or their implementation in the Toolbox.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=xml&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;SampleSelector id=&amp;quot;delaunay&amp;quot; type=&amp;quot;PipelineSampleSelector&amp;quot; combineOutputs=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
		&amp;lt;CandidateGenerator type=&amp;quot;DelaunayCandidateGenerator&amp;quot;/&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;modelDifference&amp;quot;&amp;gt;&lt;br /&gt;
        		&amp;lt;Option key=&amp;quot;criterion_parameter&amp;quot; value=&amp;quot;2&amp;quot;/&amp;gt;&lt;br /&gt;
       		&amp;lt;/CandidateRanker&amp;gt;&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;delaunayVolume&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        	&amp;lt;MergeCriterion type=&amp;quot;WeightedAverage&amp;quot; weights=&amp;quot;[1 1]&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing configuration components of an experimental run ===&lt;br /&gt;
The SUMO Toolbox was written with flexibility in mind, making it easy to experiment with different combinations of algorithms. Here is a snippet from a configuration XML. The snippet show the &amp;lt;Plan&amp;gt; tag which determines how the experimental runs are configured and two different pre-defined &amp;lt;SampleSelector&amp;gt; tags, &#039;&#039;random&#039;&#039; and &#039;&#039;delaunay&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;ISO-8859-1&amp;quot; ?&amp;gt;&lt;br /&gt;
&amp;lt;ToolboxConfiguration version=&amp;quot;7.0&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;Plan&amp;gt;&lt;br /&gt;
                &amp;lt;ContextConfig&amp;gt;default&amp;lt;/ContextConfig&amp;gt;&lt;br /&gt;
		&amp;lt;SUMO&amp;gt;default&amp;lt;/SUMO&amp;gt;&lt;br /&gt;
		&amp;lt;LevelPlot&amp;gt;default&amp;lt;/LevelPlot&amp;gt;&lt;br /&gt;
		&amp;lt;Simulator&amp;gt;Math/Academic/Academic2DTwice.xml&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
                &amp;lt;Run name=&amp;quot;&amp;quot; repeat=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;InitialDesign&amp;gt;lhdWithCornerPoints&amp;lt;/InitialDesign&amp;gt;&lt;br /&gt;
			&amp;lt;SampleSelector&amp;gt;random&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
			&amp;lt;SampleEvaluator&amp;gt;matlab&amp;lt;/SampleEvaluator&amp;gt;&lt;br /&gt;
			&amp;lt;AdaptiveModelBuilder&amp;gt;kriging&amp;lt;/AdaptiveModelBuilder&amp;gt;&lt;br /&gt;
			&amp;lt;Measure type=&amp;quot;CrossValidation&amp;quot; target=&amp;quot;0.01&amp;quot; errorFcn=&amp;quot;rootRelativeSquareError&amp;quot; use=&amp;quot;on&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Outputs&amp;gt;&lt;br /&gt;
				&amp;lt;Output name=&amp;quot;out&amp;quot;&amp;gt;&lt;br /&gt;
				&amp;lt;/Output&amp;gt;&lt;br /&gt;
				&amp;lt;Output name=&amp;quot;outinverse&amp;quot;&amp;gt;&lt;br /&gt;
				&amp;lt;/Output&amp;gt;&lt;br /&gt;
			&amp;lt;/Outputs&amp;gt;&lt;br /&gt;
		&amp;lt;/Run&amp;gt;&lt;br /&gt;
	&amp;lt;/Plan&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 	...&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;SampleSelector id=&amp;quot;random&amp;quot; type=&amp;quot;RandomSampleSelector&amp;quot; combineOutputs=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;SampleSelector id=&amp;quot;delaunay&amp;quot; type=&amp;quot;PipelineSampleSelector&amp;quot; combineOutputs=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
		&amp;lt;CandidateGenerator type=&amp;quot;DelaunayCandidateGenerator&amp;quot;/&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;modelDifference&amp;quot;&amp;gt;&lt;br /&gt;
        		&amp;lt;Option key=&amp;quot;criterion_parameter&amp;quot; value=&amp;quot;2&amp;quot;/&amp;gt;&lt;br /&gt;
       		&amp;lt;/CandidateRanker&amp;gt;&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;delaunayVolume&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        	&amp;lt;MergeCriterion type=&amp;quot;WeightedAverage&amp;quot; weights=&amp;quot;[1 1]&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
	&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ToolboxConfiguration&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All the tags within the &amp;lt;Plan&amp;gt; tag, except for Measure, Inputs and Outputs, refer to a configuration section defined further in the configuration xml. These tags determine what algorithm will be used for the experimental run. For example in this case the tag: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;SampleSelector&amp;gt;random&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
refers to the SampleSelector tag with an &#039;&#039;id=random&#039;&#039;. So even though both the &#039;&#039;random&#039;&#039; SampleSelector and &#039;&#039;delaunay&#039;&#039; SampleSelector are defined, it is the random SampleSelector which will be used in the experimental run. &lt;br /&gt;
&lt;br /&gt;
The default.xml already has a number of configuration section already defined, making it easier for you to experiment with them. All you have to do is use the appropriate &#039;&#039;id&#039;&#039; in the right tags.&lt;br /&gt;
&lt;br /&gt;
=== Modifying/Creating your own configuration section ===&lt;br /&gt;
&lt;br /&gt;
In some cases the default configuration sections might no suit your needs. For example if you require a lhdWithCornerPoints [[Config:InitialDesign|initial design]] with 40 instead of the default 20 points, you can either create a new configuration section like so:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;InitialDesign id=&amp;quot;lhdWithCornerPoints40&amp;quot; type=&amp;quot;CombinedDesign&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;InitialDesign type=&amp;quot;LatinHypercubeDesign&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;!-- how many points to generate --&amp;gt;&lt;br /&gt;
			&amp;lt;Option key=&amp;quot;points&amp;quot; value=&amp;quot;40&amp;quot;/&amp;gt;&lt;br /&gt;
		&amp;lt;/InitialDesign&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		&amp;lt;InitialDesign type=&amp;quot;FactorialDesign&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;Option key=&amp;quot;levels&amp;quot; value=&amp;quot;2&amp;quot; /&amp;gt;&lt;br /&gt;
		&amp;lt;/InitialDesign&amp;gt;&lt;br /&gt;
	&amp;lt;/InitialDesign&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and refer to it in the plan using the &#039;&#039;id&#039;&#039; lhdWithCornerPoints40 or you can simply edit the default lhdWithCornerPoints :). When making your own configuration section, make sure you specify all necessary tags and options and you&#039;re set to go!&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Config:ToolboxConfiguration&amp;diff=5763</id>
		<title>Config:ToolboxConfiguration</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Config:ToolboxConfiguration&amp;diff=5763"/>
		<updated>2012-02-10T15:50:19Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* test */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Toolbox configuration file ==&lt;br /&gt;
This is the default SUMO toolbox configuration, this is what gets used when you run &#039;go&#039; without any arguments You can edit this file directly or make a copy and run that. See the wiki for detailed information.&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:ToolboxConfiguration|ToolboxConfiguration]] version=&amp;quot;7.0&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:Plan|Plan]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:ContextConfig|ContextConfig]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:Logging|Logging]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:LevelPlot|LevelPlot]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SUMO|SUMO]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleSelector|SampleSelector]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:AdaptiveModelBuilder|AdaptiveModelBuilder]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:BasisFunction|BasisFunction]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:InitialDesign|InitialDesign]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:Optimizer|Optimizer]]/&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:ToolboxConfiguration|ToolboxConfiguration]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Interpreting the configuration file == &lt;br /&gt;
&lt;br /&gt;
When first looking at the default.xml you are presented with a lot of information and it can be a bit difficult to understand what is going, especially if you are not familiar with XML. However there is method in the madness, and this section will help you to break down the components that make up the configuration file. &lt;br /&gt;
&lt;br /&gt;
=== Comments ===&lt;br /&gt;
Comments in the XML are displayed like so:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;!-- This is an example comment. --&amp;gt;        &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default.xml contains a lot of comments with information about the different sections or example usage.&lt;br /&gt;
&lt;br /&gt;
=== Tags ===&lt;br /&gt;
XML groups information that logically belong to with each other within so called &#039;&#039;&#039;tags&#039;&#039;&#039;. Here is an example of a &#039;&#039;recipe&#039;&#039; tag. This is a recipe to make pancakes, which is grouped in a logical way; all the ingredients &#039;&#039;items&#039;&#039; are grouped within the &#039;&#039;ingredients&#039;&#039; tag. The &#039;&#039;items&#039;&#039; themselves in turn group information about the &#039;&#039;type&#039;&#039; of ingredient and the required &#039;&#039;amount&#039;&#039;. Tags can also have attributes, here the &#039;&#039;recipe&#039;&#039; tag has an attribute called &#039;&#039;category&#039;&#039; with the value &#039;&#039;desert&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;recipe category=&amp;quot;dessert&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;title&amp;gt;Pancakes&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;sumo@intec.ugent.be&amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;date&amp;gt;Wed, 14 Jun 95&amp;lt;/date&amp;gt;&lt;br /&gt;
  &amp;lt;description&amp;gt;&lt;br /&gt;
    Good old fashioned pancakes.&lt;br /&gt;
  &amp;lt;/description&amp;gt;&lt;br /&gt;
  &amp;lt;ingredients&amp;gt;&lt;br /&gt;
    &amp;lt;item&amp;gt;&lt;br /&gt;
        &amp;lt;amount&amp;gt;3&amp;lt;/amount&amp;gt;&lt;br /&gt;
        &amp;lt;type&amp;gt;eggs&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;/item&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;item&amp;gt;&lt;br /&gt;
         &amp;lt;amount&amp;gt;0.5 tablespoon&amp;lt;/amount&amp;gt;&lt;br /&gt;
         &amp;lt;type&amp;gt;salt&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;/item&amp;gt;&lt;br /&gt;
     ...&lt;br /&gt;
  &amp;lt;/ingredients&amp;gt;&lt;br /&gt;
  &amp;lt;preparation&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
  &amp;lt;/preparation&amp;gt;&lt;br /&gt;
 &amp;lt;/recipe&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The configuration file uses XML to group information about the Toolbox into logical units. Here is an example configuration of a [[Config:SampleSelector#delaunay|SampleSelector]] called delaunay. It has three attributes &#039;&#039;id&#039;&#039;, &#039;&#039;type&#039;&#039; and &#039;&#039;combineOutputs&#039;&#039;. The SUMO Toolbox uses the &#039;&#039;id&#039;&#039; to refer to this configuration section in other places in the configuration file. The &#039;&#039;type&#039;&#039; refers tells the toolbox what class of sample selector it has to look for in the &amp;lt;code&amp;gt;src&amp;lt;/code&amp;gt; folder, in this case the class &#039;&#039;PipeLinSampleSelector&#039;&#039; which you can find under &amp;lt;code&amp;gt;src/matlab/sampleselector/@PipeLineSampleSelector&amp;lt;/code&amp;gt;. The &#039;&#039;combineOutputs&#039;&#039; tells the SUMO how the SampleSelector has to deal with multiple outputs.&lt;br /&gt;
&lt;br /&gt;
If you look at the implementation of the PipeLineSampleSelector you will see that it requires a &#039;&#039;CandidateGenerator&#039;&#039;, &#039;&#039;CandidateRanker&#039;&#039; and a &#039;&#039;MergeCriterion&#039;&#039; all of which are specified here within the &#039;&#039;SampleSelector&#039;&#039; tag.&lt;br /&gt;
&lt;br /&gt;
Other components (such as [[Config:AdaptiveModelBuilder|AdaptiveModelBuilder]], [[Config:InitialDesign|initial design]], etc...) require different information. To find what options and configurations you need/can give to a component check out their wiki page or their implementation in the Toolbox.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=xml&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;SampleSelector id=&amp;quot;delaunay&amp;quot; type=&amp;quot;PipelineSampleSelector&amp;quot; combineOutputs=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
		&amp;lt;CandidateGenerator type=&amp;quot;DelaunayCandidateGenerator&amp;quot;/&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;modelDifference&amp;quot;&amp;gt;&lt;br /&gt;
        		&amp;lt;Option key=&amp;quot;criterion_parameter&amp;quot; value=&amp;quot;2&amp;quot;/&amp;gt;&lt;br /&gt;
       		&amp;lt;/CandidateRanker&amp;gt;&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;delaunayVolume&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        	&amp;lt;MergeCriterion type=&amp;quot;WeightedAverage&amp;quot; weights=&amp;quot;[1 1]&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing configuration components of an experimental run ===&lt;br /&gt;
The SUMO Toolbox was written with flexibility in mind, making it easy to experiment with different combinations of algorithms. Here is a snippet from a configuration XML. The snippet show the &amp;lt;Plan&amp;gt; tag which determines how the experimental runs are configured and two different pre-defined &amp;lt;SampleSelector&amp;gt; tags.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;ISO-8859-1&amp;quot; ?&amp;gt;&lt;br /&gt;
&amp;lt;ToolboxConfiguration version=&amp;quot;7.0&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;Plan&amp;gt;&lt;br /&gt;
                &amp;lt;ContextConfig&amp;gt;default&amp;lt;/ContextConfig&amp;gt;&lt;br /&gt;
		&amp;lt;SUMO&amp;gt;default&amp;lt;/SUMO&amp;gt;&lt;br /&gt;
		&amp;lt;LevelPlot&amp;gt;default&amp;lt;/LevelPlot&amp;gt;&lt;br /&gt;
		&amp;lt;Simulator&amp;gt;Math/Academic/Academic2DTwice.xml&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
                &amp;lt;Run name=&amp;quot;&amp;quot; repeat=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;InitialDesign&amp;gt;lhdWithCornerPoints&amp;lt;/InitialDesign&amp;gt;&lt;br /&gt;
			&amp;lt;SampleSelector&amp;gt;random&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
			&amp;lt;SampleEvaluator&amp;gt;matlab&amp;lt;/SampleEvaluator&amp;gt;&lt;br /&gt;
			&amp;lt;AdaptiveModelBuilder&amp;gt;kriging&amp;lt;/AdaptiveModelBuilder&amp;gt;&lt;br /&gt;
			&amp;lt;Measure type=&amp;quot;CrossValidation&amp;quot; target=&amp;quot;0.01&amp;quot; errorFcn=&amp;quot;rootRelativeSquareError&amp;quot; use=&amp;quot;on&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Outputs&amp;gt;&lt;br /&gt;
				&amp;lt;Output name=&amp;quot;out&amp;quot;&amp;gt;&lt;br /&gt;
				&amp;lt;/Output&amp;gt;&lt;br /&gt;
				&amp;lt;Output name=&amp;quot;outinverse&amp;quot;&amp;gt;&lt;br /&gt;
				&amp;lt;/Output&amp;gt;&lt;br /&gt;
			&amp;lt;/Outputs&amp;gt;&lt;br /&gt;
		&amp;lt;/Run&amp;gt;&lt;br /&gt;
	&amp;lt;/Plan&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 	...&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;SampleSelector id=&amp;quot;random&amp;quot; type=&amp;quot;RandomSampleSelector&amp;quot; combineOutputs=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;SampleSelector id=&amp;quot;delaunay&amp;quot; type=&amp;quot;PipelineSampleSelector&amp;quot; combineOutputs=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
		&amp;lt;CandidateGenerator type=&amp;quot;DelaunayCandidateGenerator&amp;quot;/&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;modelDifference&amp;quot;&amp;gt;&lt;br /&gt;
        		&amp;lt;Option key=&amp;quot;criterion_parameter&amp;quot; value=&amp;quot;2&amp;quot;/&amp;gt;&lt;br /&gt;
       		&amp;lt;/CandidateRanker&amp;gt;&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;delaunayVolume&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        	&amp;lt;MergeCriterion type=&amp;quot;WeightedAverage&amp;quot; weights=&amp;quot;[1 1]&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
	&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ToolboxConfiguration&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All the tags within the &amp;lt;Plan&amp;gt; tag, except for Measure, Inputs and Outputs, refer to a configuration section defined further in the configuration xml. These tags determine what algorithm will be used for the experimental run. For example in this case the tag: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;SampleSelector&amp;gt;random&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
refers to the SampleSelector tag with an &#039;&#039;id=random&#039;&#039;. So even though both the &#039;&#039;random&#039;&#039; SampleSelector and &#039;&#039;delaunay&#039;&#039; SampleSelector are defined, it is the random SampleSelector which will be used in the experimental run. &lt;br /&gt;
&lt;br /&gt;
The default.xml already has a number of configuration section already defined, making it easier for you to experiment with them. All you have to do is use the appropriate &#039;&#039;id&#039;&#039; in the right tags.&lt;br /&gt;
&lt;br /&gt;
=== Modifying/Creating your own configuration section ===&lt;br /&gt;
&lt;br /&gt;
In some cases the default configuration sections might no suit your needs. For example if you require a lhdWithCornerPoints [[Config:InitialDesign|initial design]] with 40 instead of the default 20 points, you can either create a new configuration section like so:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;InitialDesign id=&amp;quot;lhdWithCornerPoints40&amp;quot; type=&amp;quot;CombinedDesign&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;InitialDesign type=&amp;quot;LatinHypercubeDesign&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;!-- how many points to generate --&amp;gt;&lt;br /&gt;
			&amp;lt;Option key=&amp;quot;points&amp;quot; value=&amp;quot;40&amp;quot;/&amp;gt;&lt;br /&gt;
		&amp;lt;/InitialDesign&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		&amp;lt;InitialDesign type=&amp;quot;FactorialDesign&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;Option key=&amp;quot;levels&amp;quot; value=&amp;quot;2&amp;quot; /&amp;gt;&lt;br /&gt;
		&amp;lt;/InitialDesign&amp;gt;&lt;br /&gt;
	&amp;lt;/InitialDesign&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and refer to it in the plan using the &#039;&#039;id&#039;&#039; lhdWithCornerPoints40 or you can simply edit the default lhdWithCornerPoints :). When making your own configuration section, make sure you specify all necessary tags and options and you&#039;re set to go!&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Config:ToolboxConfiguration&amp;diff=5762</id>
		<title>Config:ToolboxConfiguration</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Config:ToolboxConfiguration&amp;diff=5762"/>
		<updated>2012-02-10T15:41:08Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* Changing configuration components of an experimental run */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Toolbox configuration file ==&lt;br /&gt;
This is the default SUMO toolbox configuration, this is what gets used when you run &#039;go&#039; without any arguments You can edit this file directly or make a copy and run that. See the wiki for detailed information.&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:ToolboxConfiguration|ToolboxConfiguration]] version=&amp;quot;7.0&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:Plan|Plan]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:ContextConfig|ContextConfig]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:Logging|Logging]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:LevelPlot|LevelPlot]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SUMO|SUMO]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleSelector|SampleSelector]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:AdaptiveModelBuilder|AdaptiveModelBuilder]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:BasisFunction|BasisFunction]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:InitialDesign|InitialDesign]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:Optimizer|Optimizer]]/&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:ToolboxConfiguration|ToolboxConfiguration]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Interpreting the configuration file == &lt;br /&gt;
&lt;br /&gt;
When first looking at the default.xml you are presented with a lot of information and it can be a bit difficult to understand what is going, especially if you are not familiar with XML. However there is method in the madness, and this section will help you to break down the components that make up the configuration file. &lt;br /&gt;
&lt;br /&gt;
=== Comments ===&lt;br /&gt;
Comments in the XML are displayed like so:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;!-- This is an example comment. --&amp;gt;        &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default.xml contains a lot of comments with information about the different sections or example usage.&lt;br /&gt;
&lt;br /&gt;
=== Tags ===&lt;br /&gt;
XML groups information that logically belong to with each other within so called &#039;&#039;&#039;tags&#039;&#039;&#039;. Here is an example of a &#039;&#039;recipe&#039;&#039; tag. This is a recipe to make pancakes, which is grouped in a logical way; all the ingredients &#039;&#039;items&#039;&#039; are grouped within the &#039;&#039;ingredients&#039;&#039; tag. The &#039;&#039;items&#039;&#039; themselves in turn group information about the &#039;&#039;type&#039;&#039; of ingredient and the required &#039;&#039;amount&#039;&#039;. Tags can also have attributes, here the &#039;&#039;recipe&#039;&#039; tag has an attribute called &#039;&#039;category&#039;&#039; with the value &#039;&#039;desert&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;recipe category=&amp;quot;dessert&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;title&amp;gt;Pancakes&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;sumo@intec.ugent.be&amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;date&amp;gt;Wed, 14 Jun 95&amp;lt;/date&amp;gt;&lt;br /&gt;
  &amp;lt;description&amp;gt;&lt;br /&gt;
    Good old fashioned pancakes.&lt;br /&gt;
  &amp;lt;/description&amp;gt;&lt;br /&gt;
  &amp;lt;ingredients&amp;gt;&lt;br /&gt;
    &amp;lt;item&amp;gt;&lt;br /&gt;
        &amp;lt;amount&amp;gt;3&amp;lt;/amount&amp;gt;&lt;br /&gt;
        &amp;lt;type&amp;gt;eggs&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;/item&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;item&amp;gt;&lt;br /&gt;
         &amp;lt;amount&amp;gt;0.5 tablespoon&amp;lt;/amount&amp;gt;&lt;br /&gt;
         &amp;lt;type&amp;gt;salt&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;/item&amp;gt;&lt;br /&gt;
     ...&lt;br /&gt;
  &amp;lt;/ingredients&amp;gt;&lt;br /&gt;
  &amp;lt;preparation&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
  &amp;lt;/preparation&amp;gt;&lt;br /&gt;
 &amp;lt;/recipe&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The configuration file uses XML to group information about the Toolbox into logical units. Here is an example configuration of a [[Config:SampleSelector#delaunay|SampleSelector]] called delaunay. It has three attributes &#039;&#039;id&#039;&#039;, &#039;&#039;type&#039;&#039; and &#039;&#039;combineOutputs&#039;&#039;. The SUMO Toolbox uses the &#039;&#039;id&#039;&#039; to refer to this configuration section in other places in the configuration file. The &#039;&#039;type&#039;&#039; refers tells the toolbox what class of sample selector it has to look for in the &amp;lt;code&amp;gt;src&amp;lt;/code&amp;gt; folder, in this case the class &#039;&#039;PipeLinSampleSelector&#039;&#039; which you can find under &amp;lt;code&amp;gt;src/matlab/sampleselector/@PipeLineSampleSelector&amp;lt;/code&amp;gt;. The &#039;&#039;combineOutputs&#039;&#039; tells the SUMO how the SampleSelector has to deal with multiple outputs.&lt;br /&gt;
&lt;br /&gt;
If you look at the implementation of the PipeLineSampleSelector you will see that it requires a &#039;&#039;CandidateGenerator&#039;&#039;, &#039;&#039;CandidateRanker&#039;&#039; and a &#039;&#039;MergeCriterion&#039;&#039; all of which are specified here within the &#039;&#039;SampleSelector&#039;&#039; tag.&lt;br /&gt;
&lt;br /&gt;
Other components (such as [[Config:AdaptiveModelBuilder|AdaptiveModelBuilder]], [[Config:InitialDesign|initial design]], etc...) require different information. To find what options and configurations you need/can give to a component check out their wiki page or their implementation in the Toolbox.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=xml&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;SampleSelector id=&amp;quot;delaunay&amp;quot; type=&amp;quot;PipelineSampleSelector&amp;quot; combineOutputs=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
		&amp;lt;CandidateGenerator type=&amp;quot;DelaunayCandidateGenerator&amp;quot;/&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;modelDifference&amp;quot;&amp;gt;&lt;br /&gt;
        		&amp;lt;Option key=&amp;quot;criterion_parameter&amp;quot; value=&amp;quot;2&amp;quot;/&amp;gt;&lt;br /&gt;
       		&amp;lt;/CandidateRanker&amp;gt;&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;delaunayVolume&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        	&amp;lt;MergeCriterion type=&amp;quot;WeightedAverage&amp;quot; weights=&amp;quot;[1 1]&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing configuration components of an experimental run ===&lt;br /&gt;
The SUMO Toolbox was written with flexibility in mind, making it easy to experiment with different combinations of algorithms. Here is a snippet from a configuration XML. The snippet show the &amp;lt;Plan&amp;gt; tag which determines how the experimental runs are configured and two different pre-defined &amp;lt;SampleSelector&amp;gt; tags.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;ISO-8859-1&amp;quot; ?&amp;gt;&lt;br /&gt;
&amp;lt;ToolboxConfiguration version=&amp;quot;7.0&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;Plan&amp;gt;&lt;br /&gt;
                &amp;lt;ContextConfig&amp;gt;default&amp;lt;/ContextConfig&amp;gt;&lt;br /&gt;
		&amp;lt;SUMO&amp;gt;default&amp;lt;/SUMO&amp;gt;&lt;br /&gt;
		&amp;lt;LevelPlot&amp;gt;default&amp;lt;/LevelPlot&amp;gt;&lt;br /&gt;
		&amp;lt;Simulator&amp;gt;Math/Academic/Academic2DTwice.xml&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
                &amp;lt;Run name=&amp;quot;&amp;quot; repeat=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;InitialDesign&amp;gt;lhdWithCornerPoints&amp;lt;/InitialDesign&amp;gt;&lt;br /&gt;
			&amp;lt;SampleSelector&amp;gt;random&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
			&amp;lt;SampleEvaluator&amp;gt;matlab&amp;lt;/SampleEvaluator&amp;gt;&lt;br /&gt;
			&amp;lt;AdaptiveModelBuilder&amp;gt;kriging&amp;lt;/AdaptiveModelBuilder&amp;gt;&lt;br /&gt;
			&amp;lt;Measure type=&amp;quot;CrossValidation&amp;quot; target=&amp;quot;0.01&amp;quot; errorFcn=&amp;quot;rootRelativeSquareError&amp;quot; use=&amp;quot;on&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Outputs&amp;gt;&lt;br /&gt;
				&amp;lt;Output name=&amp;quot;out&amp;quot;&amp;gt;&lt;br /&gt;
				&amp;lt;/Output&amp;gt;&lt;br /&gt;
				&amp;lt;Output name=&amp;quot;outinverse&amp;quot;&amp;gt;&lt;br /&gt;
				&amp;lt;/Output&amp;gt;&lt;br /&gt;
			&amp;lt;/Outputs&amp;gt;&lt;br /&gt;
		&amp;lt;/Run&amp;gt;&lt;br /&gt;
	&amp;lt;/Plan&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 	...&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;SampleSelector id=&amp;quot;random&amp;quot; type=&amp;quot;RandomSampleSelector&amp;quot; combineOutputs=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;SampleSelector id=&amp;quot;delaunay&amp;quot; type=&amp;quot;PipelineSampleSelector&amp;quot; combineOutputs=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
		&amp;lt;CandidateGenerator type=&amp;quot;DelaunayCandidateGenerator&amp;quot;/&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;modelDifference&amp;quot;&amp;gt;&lt;br /&gt;
        		&amp;lt;Option key=&amp;quot;criterion_parameter&amp;quot; value=&amp;quot;2&amp;quot;/&amp;gt;&lt;br /&gt;
       		&amp;lt;/CandidateRanker&amp;gt;&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;delaunayVolume&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        	&amp;lt;MergeCriterion type=&amp;quot;WeightedAverage&amp;quot; weights=&amp;quot;[1 1]&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
	&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ToolboxConfiguration&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All the tags within the &amp;lt;Plan&amp;gt; tag, except for Measure, Inputs and Outputs, refer to a configuration section defined further in the configuration xml. These tags determine what algorithm will be used for the experimental run. For example in this case the tag: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;SampleSelector&amp;gt;random&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
refers to the SampleSelector tag with an &#039;&#039;id=random&#039;&#039;. So even though both the &#039;&#039;random&#039;&#039; SampleSelector and &#039;&#039;delaunay&#039;&#039; SampleSelector are defined, it is the random SampleSelector which will be used in the experimental run. &lt;br /&gt;
&lt;br /&gt;
The default.xml already has a number of configuration section already defined, making it easier for you to experiment with them. All you have to do is use the appropriate &#039;&#039;id&#039;&#039; in the right tags.&lt;br /&gt;
&lt;br /&gt;
=== test ===&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Config:ToolboxConfiguration&amp;diff=5761</id>
		<title>Config:ToolboxConfiguration</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Config:ToolboxConfiguration&amp;diff=5761"/>
		<updated>2012-02-10T15:40:48Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* Toolbox configuration file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Toolbox configuration file ==&lt;br /&gt;
This is the default SUMO toolbox configuration, this is what gets used when you run &#039;go&#039; without any arguments You can edit this file directly or make a copy and run that. See the wiki for detailed information.&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:ToolboxConfiguration|ToolboxConfiguration]] version=&amp;quot;7.0&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:Plan|Plan]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:ContextConfig|ContextConfig]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:Logging|Logging]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:LevelPlot|LevelPlot]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SUMO|SUMO]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleSelector|SampleSelector]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:AdaptiveModelBuilder|AdaptiveModelBuilder]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:BasisFunction|BasisFunction]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:InitialDesign|InitialDesign]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:Optimizer|Optimizer]]/&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:ToolboxConfiguration|ToolboxConfiguration]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Interpreting the configuration file == &lt;br /&gt;
&lt;br /&gt;
When first looking at the default.xml you are presented with a lot of information and it can be a bit difficult to understand what is going, especially if you are not familiar with XML. However there is method in the madness, and this section will help you to break down the components that make up the configuration file. &lt;br /&gt;
&lt;br /&gt;
=== Comments ===&lt;br /&gt;
Comments in the XML are displayed like so:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;!-- This is an example comment. --&amp;gt;        &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default.xml contains a lot of comments with information about the different sections or example usage.&lt;br /&gt;
&lt;br /&gt;
=== Tags ===&lt;br /&gt;
XML groups information that logically belong to with each other within so called &#039;&#039;&#039;tags&#039;&#039;&#039;. Here is an example of a &#039;&#039;recipe&#039;&#039; tag. This is a recipe to make pancakes, which is grouped in a logical way; all the ingredients &#039;&#039;items&#039;&#039; are grouped within the &#039;&#039;ingredients&#039;&#039; tag. The &#039;&#039;items&#039;&#039; themselves in turn group information about the &#039;&#039;type&#039;&#039; of ingredient and the required &#039;&#039;amount&#039;&#039;. Tags can also have attributes, here the &#039;&#039;recipe&#039;&#039; tag has an attribute called &#039;&#039;category&#039;&#039; with the value &#039;&#039;desert&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;recipe category=&amp;quot;dessert&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;title&amp;gt;Pancakes&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;sumo@intec.ugent.be&amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;date&amp;gt;Wed, 14 Jun 95&amp;lt;/date&amp;gt;&lt;br /&gt;
  &amp;lt;description&amp;gt;&lt;br /&gt;
    Good old fashioned pancakes.&lt;br /&gt;
  &amp;lt;/description&amp;gt;&lt;br /&gt;
  &amp;lt;ingredients&amp;gt;&lt;br /&gt;
    &amp;lt;item&amp;gt;&lt;br /&gt;
        &amp;lt;amount&amp;gt;3&amp;lt;/amount&amp;gt;&lt;br /&gt;
        &amp;lt;type&amp;gt;eggs&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;/item&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;item&amp;gt;&lt;br /&gt;
         &amp;lt;amount&amp;gt;0.5 tablespoon&amp;lt;/amount&amp;gt;&lt;br /&gt;
         &amp;lt;type&amp;gt;salt&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;/item&amp;gt;&lt;br /&gt;
     ...&lt;br /&gt;
  &amp;lt;/ingredients&amp;gt;&lt;br /&gt;
  &amp;lt;preparation&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
  &amp;lt;/preparation&amp;gt;&lt;br /&gt;
 &amp;lt;/recipe&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The configuration file uses XML to group information about the Toolbox into logical units. Here is an example configuration of a [[Config:SampleSelector#delaunay|SampleSelector]] called delaunay. It has three attributes &#039;&#039;id&#039;&#039;, &#039;&#039;type&#039;&#039; and &#039;&#039;combineOutputs&#039;&#039;. The SUMO Toolbox uses the &#039;&#039;id&#039;&#039; to refer to this configuration section in other places in the configuration file. The &#039;&#039;type&#039;&#039; refers tells the toolbox what class of sample selector it has to look for in the &amp;lt;code&amp;gt;src&amp;lt;/code&amp;gt; folder, in this case the class &#039;&#039;PipeLinSampleSelector&#039;&#039; which you can find under &amp;lt;code&amp;gt;src/matlab/sampleselector/@PipeLineSampleSelector&amp;lt;/code&amp;gt;. The &#039;&#039;combineOutputs&#039;&#039; tells the SUMO how the SampleSelector has to deal with multiple outputs.&lt;br /&gt;
&lt;br /&gt;
If you look at the implementation of the PipeLineSampleSelector you will see that it requires a &#039;&#039;CandidateGenerator&#039;&#039;, &#039;&#039;CandidateRanker&#039;&#039; and a &#039;&#039;MergeCriterion&#039;&#039; all of which are specified here within the &#039;&#039;SampleSelector&#039;&#039; tag.&lt;br /&gt;
&lt;br /&gt;
Other components (such as [[Config:AdaptiveModelBuilder|AdaptiveModelBuilder]], [[Config:InitialDesign|initial design]], etc...) require different information. To find what options and configurations you need/can give to a component check out their wiki page or their implementation in the Toolbox.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=xml&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;SampleSelector id=&amp;quot;delaunay&amp;quot; type=&amp;quot;PipelineSampleSelector&amp;quot; combineOutputs=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
		&amp;lt;CandidateGenerator type=&amp;quot;DelaunayCandidateGenerator&amp;quot;/&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;modelDifference&amp;quot;&amp;gt;&lt;br /&gt;
        		&amp;lt;Option key=&amp;quot;criterion_parameter&amp;quot; value=&amp;quot;2&amp;quot;/&amp;gt;&lt;br /&gt;
       		&amp;lt;/CandidateRanker&amp;gt;&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;delaunayVolume&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        	&amp;lt;MergeCriterion type=&amp;quot;WeightedAverage&amp;quot; weights=&amp;quot;[1 1]&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing configuration components of an experimental run ===&lt;br /&gt;
The SUMO Toolbox was written with flexibility in mind, making it easy to experiment with different combinations of algorithms. Here is a snippet from a configuration XML. The snippet show the &amp;lt;Plan&amp;gt; tag which determines how the experimental runs are configured and two different pre-defined &amp;lt;SampleSelector&amp;gt; tags.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;ISO-8859-1&amp;quot; ?&amp;gt;&lt;br /&gt;
&amp;lt;ToolboxConfiguration version=&amp;quot;7.0&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;Plan&amp;gt;&lt;br /&gt;
                &amp;lt;ContextConfig&amp;gt;default&amp;lt;/ContextConfig&amp;gt;&lt;br /&gt;
		&amp;lt;SUMO&amp;gt;default&amp;lt;/SUMO&amp;gt;&lt;br /&gt;
		&amp;lt;LevelPlot&amp;gt;default&amp;lt;/LevelPlot&amp;gt;&lt;br /&gt;
		&amp;lt;Simulator&amp;gt;Math/Academic/Academic2DTwice.xml&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
                &amp;lt;Run name=&amp;quot;&amp;quot; repeat=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;InitialDesign&amp;gt;lhdWithCornerPoints&amp;lt;/InitialDesign&amp;gt;&lt;br /&gt;
			&amp;lt;SampleSelector&amp;gt;random&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
			&amp;lt;SampleEvaluator&amp;gt;matlab&amp;lt;/SampleEvaluator&amp;gt;&lt;br /&gt;
			&amp;lt;AdaptiveModelBuilder&amp;gt;kriging&amp;lt;/AdaptiveModelBuilder&amp;gt;&lt;br /&gt;
			&amp;lt;Measure type=&amp;quot;CrossValidation&amp;quot; target=&amp;quot;0.01&amp;quot; errorFcn=&amp;quot;rootRelativeSquareError&amp;quot; use=&amp;quot;on&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Outputs&amp;gt;&lt;br /&gt;
				&amp;lt;Output name=&amp;quot;out&amp;quot;&amp;gt;&lt;br /&gt;
				&amp;lt;/Output&amp;gt;&lt;br /&gt;
				&amp;lt;Output name=&amp;quot;outinverse&amp;quot;&amp;gt;&lt;br /&gt;
				&amp;lt;/Output&amp;gt;&lt;br /&gt;
			&amp;lt;/Outputs&amp;gt;&lt;br /&gt;
		&amp;lt;/Run&amp;gt;&lt;br /&gt;
	&amp;lt;/Plan&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 	...&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;SampleSelector id=&amp;quot;random&amp;quot; type=&amp;quot;RandomSampleSelector&amp;quot; combineOutputs=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;SampleSelector id=&amp;quot;delaunay&amp;quot; type=&amp;quot;PipelineSampleSelector&amp;quot; combineOutputs=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
		&amp;lt;CandidateGenerator type=&amp;quot;DelaunayCandidateGenerator&amp;quot;/&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;modelDifference&amp;quot;&amp;gt;&lt;br /&gt;
        		&amp;lt;Option key=&amp;quot;criterion_parameter&amp;quot; value=&amp;quot;2&amp;quot;/&amp;gt;&lt;br /&gt;
       		&amp;lt;/CandidateRanker&amp;gt;&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;delaunayVolume&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        	&amp;lt;MergeCriterion type=&amp;quot;WeightedAverage&amp;quot; weights=&amp;quot;[1 1]&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
	&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ToolboxConfiguration&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All the tags within the &amp;lt;Plan&amp;gt; tag, except for Measure, Inputs and Outputs, refer to a configuration section defined further in the configuration xml. These tags determine what algorithm will be used for the experimental run. For example in this case the tag: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;SampleSelector&amp;gt;random&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
refers to the SampleSelector tag with an &#039;&#039;id=random&#039;&#039;. So even though both the &#039;&#039;random&#039;&#039; SampleSelector and &#039;&#039;delaunay&#039;&#039; SampleSelector are defined, it is the random SampleSelector which will be used in the experimental run. &lt;br /&gt;
&lt;br /&gt;
The default.xml already has a number of configuration section already defined, making it easier for you to experiment with them. All you have to do is use the appropriate &#039;&#039;id&#039;&#039; in the right tags.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== test ===&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Config:ToolboxConfiguration&amp;diff=5760</id>
		<title>Config:ToolboxConfiguration</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Config:ToolboxConfiguration&amp;diff=5760"/>
		<updated>2012-02-10T15:40:28Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* Changing configuration components of an experimental run */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Toolbox configuration file ==&lt;br /&gt;
This is the default SUMO toolbox configuration, this is what gets used when you run &#039;go&#039; without any arguments You can edit this file directly or make a copy and run that. See the wiki for detailed information.&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:ToolboxConfiguration|ToolboxConfiguration]] version=&amp;quot;7.0&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:Plan|Plan]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:ContextConfig|ContextConfig]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:Logging|Logging]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:LevelPlot|LevelPlot]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SUMO|SUMO]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleSelector|SampleSelector]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:AdaptiveModelBuilder|AdaptiveModelBuilder]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:BasisFunction|BasisFunction]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:InitialDesign|InitialDesign]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:Optimizer|Optimizer]]/&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:ToolboxConfiguration|ToolboxConfiguration]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Interpreting the configuration file == &lt;br /&gt;
&lt;br /&gt;
When first looking at the default.xml you are presented with a lot of information and it can be a bit difficult to understand what is going, especially if you are not familiar with XML. However there is method in the madness, and this section will help you to break down the components that make up the configuration file. &lt;br /&gt;
&lt;br /&gt;
=== Comments ===&lt;br /&gt;
Comments in the XML are displayed like so:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;!-- This is an example comment. --&amp;gt;        &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default.xml contains a lot of comments with information about the different sections or example usage.&lt;br /&gt;
&lt;br /&gt;
=== Tags ===&lt;br /&gt;
XML groups information that logically belong to with each other within so called &#039;&#039;&#039;tags&#039;&#039;&#039;. Here is an example of a &#039;&#039;recipe&#039;&#039; tag. This is a recipe to make pancakes, which is grouped in a logical way; all the ingredients &#039;&#039;items&#039;&#039; are grouped within the &#039;&#039;ingredients&#039;&#039; tag. The &#039;&#039;items&#039;&#039; themselves in turn group information about the &#039;&#039;type&#039;&#039; of ingredient and the required &#039;&#039;amount&#039;&#039;. Tags can also have attributes, here the &#039;&#039;recipe&#039;&#039; tag has an attribute called &#039;&#039;category&#039;&#039; with the value &#039;&#039;desert&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;recipe category=&amp;quot;dessert&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;title&amp;gt;Pancakes&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;sumo@intec.ugent.be&amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;date&amp;gt;Wed, 14 Jun 95&amp;lt;/date&amp;gt;&lt;br /&gt;
  &amp;lt;description&amp;gt;&lt;br /&gt;
    Good old fashioned pancakes.&lt;br /&gt;
  &amp;lt;/description&amp;gt;&lt;br /&gt;
  &amp;lt;ingredients&amp;gt;&lt;br /&gt;
    &amp;lt;item&amp;gt;&lt;br /&gt;
        &amp;lt;amount&amp;gt;3&amp;lt;/amount&amp;gt;&lt;br /&gt;
        &amp;lt;type&amp;gt;eggs&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;/item&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;item&amp;gt;&lt;br /&gt;
         &amp;lt;amount&amp;gt;0.5 tablespoon&amp;lt;/amount&amp;gt;&lt;br /&gt;
         &amp;lt;type&amp;gt;salt&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;/item&amp;gt;&lt;br /&gt;
     ...&lt;br /&gt;
  &amp;lt;/ingredients&amp;gt;&lt;br /&gt;
  &amp;lt;preparation&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
  &amp;lt;/preparation&amp;gt;&lt;br /&gt;
 &amp;lt;/recipe&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The configuration file uses XML to group information about the Toolbox into logical units. Here is an example configuration of a [[Config:SampleSelector#delaunay|SampleSelector]] called delaunay. It has three attributes &#039;&#039;id&#039;&#039;, &#039;&#039;type&#039;&#039; and &#039;&#039;combineOutputs&#039;&#039;. The SUMO Toolbox uses the &#039;&#039;id&#039;&#039; to refer to this configuration section in other places in the configuration file. The &#039;&#039;type&#039;&#039; refers tells the toolbox what class of sample selector it has to look for in the &amp;lt;code&amp;gt;src&amp;lt;/code&amp;gt; folder, in this case the class &#039;&#039;PipeLinSampleSelector&#039;&#039; which you can find under &amp;lt;code&amp;gt;src/matlab/sampleselector/@PipeLineSampleSelector&amp;lt;/code&amp;gt;. The &#039;&#039;combineOutputs&#039;&#039; tells the SUMO how the SampleSelector has to deal with multiple outputs.&lt;br /&gt;
&lt;br /&gt;
If you look at the implementation of the PipeLineSampleSelector you will see that it requires a &#039;&#039;CandidateGenerator&#039;&#039;, &#039;&#039;CandidateRanker&#039;&#039; and a &#039;&#039;MergeCriterion&#039;&#039; all of which are specified here within the &#039;&#039;SampleSelector&#039;&#039; tag.&lt;br /&gt;
&lt;br /&gt;
Other components (such as [[Config:AdaptiveModelBuilder|AdaptiveModelBuilder]], [[Config:InitialDesign|initial design]], etc...) require different information. To find what options and configurations you need/can give to a component check out their wiki page or their implementation in the Toolbox.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=xml&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;SampleSelector id=&amp;quot;delaunay&amp;quot; type=&amp;quot;PipelineSampleSelector&amp;quot; combineOutputs=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
		&amp;lt;CandidateGenerator type=&amp;quot;DelaunayCandidateGenerator&amp;quot;/&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;modelDifference&amp;quot;&amp;gt;&lt;br /&gt;
        		&amp;lt;Option key=&amp;quot;criterion_parameter&amp;quot; value=&amp;quot;2&amp;quot;/&amp;gt;&lt;br /&gt;
       		&amp;lt;/CandidateRanker&amp;gt;&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;delaunayVolume&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        	&amp;lt;MergeCriterion type=&amp;quot;WeightedAverage&amp;quot; weights=&amp;quot;[1 1]&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing configuration components of an experimental run ===&lt;br /&gt;
The SUMO Toolbox was written with flexibility in mind, making it easy to experiment with different combinations of algorithms. Here is a snippet from a configuration XML. The snippet show the &amp;lt;Plan&amp;gt; tag which determines how the experimental runs are configured and two different pre-defined &amp;lt;SampleSelector&amp;gt; tags.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;ISO-8859-1&amp;quot; ?&amp;gt;&lt;br /&gt;
&amp;lt;ToolboxConfiguration version=&amp;quot;7.0&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;Plan&amp;gt;&lt;br /&gt;
                &amp;lt;ContextConfig&amp;gt;default&amp;lt;/ContextConfig&amp;gt;&lt;br /&gt;
		&amp;lt;SUMO&amp;gt;default&amp;lt;/SUMO&amp;gt;&lt;br /&gt;
		&amp;lt;LevelPlot&amp;gt;default&amp;lt;/LevelPlot&amp;gt;&lt;br /&gt;
		&amp;lt;Simulator&amp;gt;Math/Academic/Academic2DTwice.xml&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
                &amp;lt;Run name=&amp;quot;&amp;quot; repeat=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;InitialDesign&amp;gt;lhdWithCornerPoints&amp;lt;/InitialDesign&amp;gt;&lt;br /&gt;
			&amp;lt;SampleSelector&amp;gt;random&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
			&amp;lt;SampleEvaluator&amp;gt;matlab&amp;lt;/SampleEvaluator&amp;gt;&lt;br /&gt;
			&amp;lt;AdaptiveModelBuilder&amp;gt;kriging&amp;lt;/AdaptiveModelBuilder&amp;gt;&lt;br /&gt;
			&amp;lt;Measure type=&amp;quot;CrossValidation&amp;quot; target=&amp;quot;0.01&amp;quot; errorFcn=&amp;quot;rootRelativeSquareError&amp;quot; use=&amp;quot;on&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Outputs&amp;gt;&lt;br /&gt;
				&amp;lt;Output name=&amp;quot;out&amp;quot;&amp;gt;&lt;br /&gt;
				&amp;lt;/Output&amp;gt;&lt;br /&gt;
				&amp;lt;Output name=&amp;quot;outinverse&amp;quot;&amp;gt;&lt;br /&gt;
				&amp;lt;/Output&amp;gt;&lt;br /&gt;
			&amp;lt;/Outputs&amp;gt;&lt;br /&gt;
		&amp;lt;/Run&amp;gt;&lt;br /&gt;
	&amp;lt;/Plan&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 	...&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;SampleSelector id=&amp;quot;random&amp;quot; type=&amp;quot;RandomSampleSelector&amp;quot; combineOutputs=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;SampleSelector id=&amp;quot;delaunay&amp;quot; type=&amp;quot;PipelineSampleSelector&amp;quot; combineOutputs=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
		&amp;lt;CandidateGenerator type=&amp;quot;DelaunayCandidateGenerator&amp;quot;/&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;modelDifference&amp;quot;&amp;gt;&lt;br /&gt;
        		&amp;lt;Option key=&amp;quot;criterion_parameter&amp;quot; value=&amp;quot;2&amp;quot;/&amp;gt;&lt;br /&gt;
       		&amp;lt;/CandidateRanker&amp;gt;&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;delaunayVolume&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        	&amp;lt;MergeCriterion type=&amp;quot;WeightedAverage&amp;quot; weights=&amp;quot;[1 1]&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
	&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ToolboxConfiguration&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All the tags within the &amp;lt;Plan&amp;gt; tag, except for Measure, Inputs and Outputs, refer to a configuration section defined further in the configuration xml. These tags determine what algorithm will be used for the experimental run. For example in this case the tag: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;SampleSelector&amp;gt;random&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
refers to the SampleSelector tag with an &#039;&#039;id=random&#039;&#039;. So even though both the &#039;&#039;random&#039;&#039; SampleSelector and &#039;&#039;delaunay&#039;&#039; SampleSelector are defined, it is the random SampleSelector which will be used in the experimental run. &lt;br /&gt;
&lt;br /&gt;
The default.xml already has a number of configuration section already defined, making it easier for you to experiment with them. All you have to do is use the appropriate &#039;&#039;id&#039;&#039; in the right tags.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== test ===&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
	<entry>
		<id>https://sumowiki.ilabt.imec.be/index.php?title=Config:ToolboxConfiguration&amp;diff=5759</id>
		<title>Config:ToolboxConfiguration</title>
		<link rel="alternate" type="text/html" href="https://sumowiki.ilabt.imec.be/index.php?title=Config:ToolboxConfiguration&amp;diff=5759"/>
		<updated>2012-02-10T15:39:25Z</updated>

		<summary type="html">&lt;p&gt;Mnguyen: /* Changing configuration components of an experimental run */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Toolbox configuration file ==&lt;br /&gt;
This is the default SUMO toolbox configuration, this is what gets used when you run &#039;go&#039; without any arguments You can edit this file directly or make a copy and run that. See the wiki for detailed information.&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:ToolboxConfiguration|ToolboxConfiguration]] version=&amp;quot;7.0&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:Plan|Plan]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:ContextConfig|ContextConfig]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:Logging|Logging]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:LevelPlot|LevelPlot]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SUMO|SUMO]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleEvaluator|SampleEvaluator]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:SampleSelector|SampleSelector]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:AdaptiveModelBuilder|AdaptiveModelBuilder]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:BasisFunction|BasisFunction]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:InitialDesign|InitialDesign]]/&amp;gt;&lt;br /&gt;
&amp;lt;[[Config:Optimizer|Optimizer]]/&amp;gt;&lt;br /&gt;
&amp;lt;/[[Config:ToolboxConfiguration|ToolboxConfiguration]]&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Interpreting the configuration file == &lt;br /&gt;
&lt;br /&gt;
When first looking at the default.xml you are presented with a lot of information and it can be a bit difficult to understand what is going, especially if you are not familiar with XML. However there is method in the madness, and this section will help you to break down the components that make up the configuration file. &lt;br /&gt;
&lt;br /&gt;
=== Comments ===&lt;br /&gt;
Comments in the XML are displayed like so:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;!-- This is an example comment. --&amp;gt;        &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default.xml contains a lot of comments with information about the different sections or example usage.&lt;br /&gt;
&lt;br /&gt;
=== Tags ===&lt;br /&gt;
XML groups information that logically belong to with each other within so called &#039;&#039;&#039;tags&#039;&#039;&#039;. Here is an example of a &#039;&#039;recipe&#039;&#039; tag. This is a recipe to make pancakes, which is grouped in a logical way; all the ingredients &#039;&#039;items&#039;&#039; are grouped within the &#039;&#039;ingredients&#039;&#039; tag. The &#039;&#039;items&#039;&#039; themselves in turn group information about the &#039;&#039;type&#039;&#039; of ingredient and the required &#039;&#039;amount&#039;&#039;. Tags can also have attributes, here the &#039;&#039;recipe&#039;&#039; tag has an attribute called &#039;&#039;category&#039;&#039; with the value &#039;&#039;desert&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;recipe category=&amp;quot;dessert&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;title&amp;gt;Pancakes&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;sumo@intec.ugent.be&amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;date&amp;gt;Wed, 14 Jun 95&amp;lt;/date&amp;gt;&lt;br /&gt;
  &amp;lt;description&amp;gt;&lt;br /&gt;
    Good old fashioned pancakes.&lt;br /&gt;
  &amp;lt;/description&amp;gt;&lt;br /&gt;
  &amp;lt;ingredients&amp;gt;&lt;br /&gt;
    &amp;lt;item&amp;gt;&lt;br /&gt;
        &amp;lt;amount&amp;gt;3&amp;lt;/amount&amp;gt;&lt;br /&gt;
        &amp;lt;type&amp;gt;eggs&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;/item&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;item&amp;gt;&lt;br /&gt;
         &amp;lt;amount&amp;gt;0.5 tablespoon&amp;lt;/amount&amp;gt;&lt;br /&gt;
         &amp;lt;type&amp;gt;salt&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;/item&amp;gt;&lt;br /&gt;
     ...&lt;br /&gt;
  &amp;lt;/ingredients&amp;gt;&lt;br /&gt;
  &amp;lt;preparation&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
  &amp;lt;/preparation&amp;gt;&lt;br /&gt;
 &amp;lt;/recipe&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The configuration file uses XML to group information about the Toolbox into logical units. Here is an example configuration of a [[Config:SampleSelector#delaunay|SampleSelector]] called delaunay. It has three attributes &#039;&#039;id&#039;&#039;, &#039;&#039;type&#039;&#039; and &#039;&#039;combineOutputs&#039;&#039;. The SUMO Toolbox uses the &#039;&#039;id&#039;&#039; to refer to this configuration section in other places in the configuration file. The &#039;&#039;type&#039;&#039; refers tells the toolbox what class of sample selector it has to look for in the &amp;lt;code&amp;gt;src&amp;lt;/code&amp;gt; folder, in this case the class &#039;&#039;PipeLinSampleSelector&#039;&#039; which you can find under &amp;lt;code&amp;gt;src/matlab/sampleselector/@PipeLineSampleSelector&amp;lt;/code&amp;gt;. The &#039;&#039;combineOutputs&#039;&#039; tells the SUMO how the SampleSelector has to deal with multiple outputs.&lt;br /&gt;
&lt;br /&gt;
If you look at the implementation of the PipeLineSampleSelector you will see that it requires a &#039;&#039;CandidateGenerator&#039;&#039;, &#039;&#039;CandidateRanker&#039;&#039; and a &#039;&#039;MergeCriterion&#039;&#039; all of which are specified here within the &#039;&#039;SampleSelector&#039;&#039; tag.&lt;br /&gt;
&lt;br /&gt;
Other components (such as [[Config:AdaptiveModelBuilder|AdaptiveModelBuilder]], [[Config:InitialDesign|initial design]], etc...) require different information. To find what options and configurations you need/can give to a component check out their wiki page or their implementation in the Toolbox.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=xml&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;SampleSelector id=&amp;quot;delaunay&amp;quot; type=&amp;quot;PipelineSampleSelector&amp;quot; combineOutputs=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
		&amp;lt;CandidateGenerator type=&amp;quot;DelaunayCandidateGenerator&amp;quot;/&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;modelDifference&amp;quot;&amp;gt;&lt;br /&gt;
        		&amp;lt;Option key=&amp;quot;criterion_parameter&amp;quot; value=&amp;quot;2&amp;quot;/&amp;gt;&lt;br /&gt;
       		&amp;lt;/CandidateRanker&amp;gt;&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;delaunayVolume&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        	&amp;lt;MergeCriterion type=&amp;quot;WeightedAverage&amp;quot; weights=&amp;quot;[1 1]&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing configuration components of an experimental run ===&lt;br /&gt;
The SUMO Toolbox was written with flexibility in mind, making it easy to experiment with different combinations of algorithms. Here is a snippet from a configuration XML. The snippet show the &amp;lt;Plan&amp;gt; tag which determines how the experimental runs are configured and two different pre-defined &amp;lt;SampleSelector&amp;gt; tags.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source xmlns:saxon=&amp;quot;http://icl.com/saxon&amp;quot; lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;ISO-8859-1&amp;quot; ?&amp;gt;&lt;br /&gt;
&amp;lt;ToolboxConfiguration version=&amp;quot;7.0&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;Plan&amp;gt;&lt;br /&gt;
                &amp;lt;ContextConfig&amp;gt;default&amp;lt;/ContextConfig&amp;gt;&lt;br /&gt;
		&amp;lt;SUMO&amp;gt;default&amp;lt;/SUMO&amp;gt;&lt;br /&gt;
		&amp;lt;LevelPlot&amp;gt;default&amp;lt;/LevelPlot&amp;gt;&lt;br /&gt;
		&amp;lt;Simulator&amp;gt;Math/Academic/Academic2DTwice.xml&amp;lt;/Simulator&amp;gt;&lt;br /&gt;
                &amp;lt;Run name=&amp;quot;&amp;quot; repeat=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
			&amp;lt;InitialDesign&amp;gt;lhdWithCornerPoints&amp;lt;/InitialDesign&amp;gt;&lt;br /&gt;
			&amp;lt;SampleSelector&amp;gt;random&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
			&amp;lt;SampleEvaluator&amp;gt;matlab&amp;lt;/SampleEvaluator&amp;gt;&lt;br /&gt;
			&amp;lt;AdaptiveModelBuilder&amp;gt;kriging&amp;lt;/AdaptiveModelBuilder&amp;gt;&lt;br /&gt;
			&amp;lt;Measure type=&amp;quot;CrossValidation&amp;quot; target=&amp;quot;0.01&amp;quot; errorFcn=&amp;quot;rootRelativeSquareError&amp;quot; use=&amp;quot;on&amp;quot; /&amp;gt;&lt;br /&gt;
			&amp;lt;Outputs&amp;gt;&lt;br /&gt;
				&amp;lt;Output name=&amp;quot;out&amp;quot;&amp;gt;&lt;br /&gt;
				&amp;lt;/Output&amp;gt;&lt;br /&gt;
				&amp;lt;Output name=&amp;quot;outinverse&amp;quot;&amp;gt;&lt;br /&gt;
				&amp;lt;/Output&amp;gt;&lt;br /&gt;
			&amp;lt;/Outputs&amp;gt;&lt;br /&gt;
		&amp;lt;/Run&amp;gt;&lt;br /&gt;
	&amp;lt;/Plan&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 	...&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;SampleSelector id=&amp;quot;random&amp;quot; type=&amp;quot;RandomSampleSelector&amp;quot; combineOutputs=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;SampleSelector id=&amp;quot;delaunay&amp;quot; type=&amp;quot;PipelineSampleSelector&amp;quot; combineOutputs=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
		&amp;lt;CandidateGenerator type=&amp;quot;DelaunayCandidateGenerator&amp;quot;/&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;modelDifference&amp;quot;&amp;gt;&lt;br /&gt;
        		&amp;lt;Option key=&amp;quot;criterion_parameter&amp;quot; value=&amp;quot;2&amp;quot;/&amp;gt;&lt;br /&gt;
       		&amp;lt;/CandidateRanker&amp;gt;&lt;br /&gt;
        	&amp;lt;CandidateRanker type=&amp;quot;delaunayVolume&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
        	&amp;lt;MergeCriterion type=&amp;quot;WeightedAverage&amp;quot; weights=&amp;quot;[1 1]&amp;quot;/&amp;gt;&lt;br /&gt;
        &lt;br /&gt;
	&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ToolboxConfiguration&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All the tags within the &amp;lt;Plan&amp;gt; tag, except for Measure, Inputs and Outputs, refer to a configuration section defined further in the configuration xml. These tags determine what algorithm will be used for the experimental run. For example in this case the tag: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;SampleSelector&amp;gt;random&amp;lt;/SampleSelector&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
refers to the SampleSelector tag with an &#039;&#039;id=random&#039;&#039;. So even though both the &#039;&#039;random&#039;&#039; SampleSelector and &#039;&#039;delaunay&#039;&#039; SampleSelector are defined, it is the random SampleSelector which will be used in the experimental run. &lt;br /&gt;
&lt;br /&gt;
The default.xml already has a number of configuration section already defined, making it easier for you to experiment with them.&lt;/div&gt;</summary>
		<author><name>Mnguyen</name></author>
	</entry>
</feed>