<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Running parameter space searches</title>
    <link>http://www.mapleprimes.com/questions/130024-Running-Parameter-Space-Searches</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Sat, 13 Jun 2026 00:38:08 GMT</lastBuildDate>
    <pubDate>Sat, 13 Jun 2026 00:38:08 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Running parameter space searches</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Running parameter space searches</title>
      <link>http://www.mapleprimes.com/questions/130024-Running-Parameter-Space-Searches</link>
    </image>
    <item>
      <title>Simulate</title>
      <link>http://www.mapleprimes.com/questions/130024-Running-Parameter-Space-Searches?ref=Feed:MaplePrimes:Running parameter space searches:Comments#answer130064</link>
      <itunes:summary>&lt;p&gt;You could try and run the loop in Maple itself, using the&amp;nbsp;&lt;a href="http://www.maplesoft.com/support/help/MapleSim/view.aspx?path=MapleSim/LinkModel/SetSubstitutions"&gt;SetSubstitutions&lt;/a&gt; and&amp;nbsp;&lt;a href="http://www.maplesoft.com/support/help/MapleSim/view.aspx?path=MapleSim/LinkModel/Simulate"&gt;Simulate&lt;/a&gt; commands? The runtime of MapleSim is generally accessible in the Maple interface, from a &lt;a href="http://www.maplesoft.com/support/help/MapleSim/view.aspx?path=MapleSim"&gt;set of commands&lt;/a&gt; (an &lt;a href="http://en.wikipedia.org/wiki/Application_programming_interface"&gt;API&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Basic syntax might look something like this:&lt;/p&gt;
&lt;pre&gt;A := MapleSim:-LinkModel('filename' = "yoursavedmodel.msim"):

A:-GetSubstitutions(); # shows you the present set of parameter values

for x from value1 to value2 by increment_value do

   A:-SetSubstitutions({`modelandparamname` = newvaluecomputedfromx})

   arrayofresults := A:-Simulate(output=datapoint, anyotheroptions);

   # You may want returnTimeData=true as an option to Simulate().
   # Each column of output Array is from a separate probe (by row w.r.t. time)

   ExportMatrix(filename, Matrix(arrayofresults));

   # Or export with writedata, or whatever.
   # You might want to use a different export file for each value of x,
   # by using something like cat("basename","_",convert(x,string)) for 'filename'.

end do;
&lt;/pre&gt;
&lt;p&gt;I suspect that instead of calling SetSubstitutions() you might be able to pass the changing parameter value directly to Simulate() as an option like 'params={name=value}'&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;acer&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;You could try and run the loop in Maple itself, using the&amp;nbsp;&lt;a href="http://www.maplesoft.com/support/help/MapleSim/view.aspx?path=MapleSim/LinkModel/SetSubstitutions"&gt;SetSubstitutions&lt;/a&gt; and&amp;nbsp;&lt;a href="http://www.maplesoft.com/support/help/MapleSim/view.aspx?path=MapleSim/LinkModel/Simulate"&gt;Simulate&lt;/a&gt; commands? The runtime of MapleSim is generally accessible in the Maple interface, from a &lt;a href="http://www.maplesoft.com/support/help/MapleSim/view.aspx?path=MapleSim"&gt;set of commands&lt;/a&gt; (an &lt;a href="http://en.wikipedia.org/wiki/Application_programming_interface"&gt;API&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Basic syntax might look something like this:&lt;/p&gt;
&lt;pre&gt;A := MapleSim:-LinkModel('filename' = "yoursavedmodel.msim"):

A:-GetSubstitutions(); # shows you the present set of parameter values

for x from value1 to value2 by increment_value do

   A:-SetSubstitutions({`modelandparamname` = newvaluecomputedfromx})

   arrayofresults := A:-Simulate(output=datapoint, anyotheroptions);

   # You may want returnTimeData=true as an option to Simulate().
   # Each column of output Array is from a separate probe (by row w.r.t. time)

   ExportMatrix(filename, Matrix(arrayofresults));

   # Or export with writedata, or whatever.
   # You might want to use a different export file for each value of x,
   # by using something like cat("basename","_",convert(x,string)) for 'filename'.

end do;
&lt;/pre&gt;
&lt;p&gt;I suspect that instead of calling SetSubstitutions() you might be able to pass the changing parameter value directly to Simulate() as an option like 'params={name=value}'&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;acer&lt;/p&gt;</description>
      <guid>130064</guid>
      <pubDate>Thu, 26 Jan 2012 08:44:18 Z</pubDate>
      <itunes:author>acer</itunes:author>
      <author>acer</author>
    </item>
    <item>
      <title>Thank you</title>
      <link>http://www.mapleprimes.com/questions/130024-Running-Parameter-Space-Searches?ref=Feed:MaplePrimes:Running parameter space searches:Comments#comment130081</link>
      <itunes:summary>&lt;p&gt;Hi Acer,&lt;/p&gt;
&lt;p&gt;Thank you so much for your feedback. I will give that a try.&lt;/p&gt;
&lt;p&gt;Cheers.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Hi Acer,&lt;/p&gt;
&lt;p&gt;Thank you so much for your feedback. I will give that a try.&lt;/p&gt;
&lt;p&gt;Cheers.&lt;/p&gt;</description>
      <guid>130081</guid>
      <pubDate>Fri, 27 Jan 2012 01:36:29 Z</pubDate>
      <itunes:author>rwong1231</itunes:author>
      <author>rwong1231</author>
    </item>
    <item>
      <title>It works!</title>
      <link>http://www.mapleprimes.com/questions/130024-Running-Parameter-Space-Searches?ref=Feed:MaplePrimes:Running parameter space searches:Comments#comment130160</link>
      <itunes:summary>&lt;p&gt;Thank you so much Acer! I followed your format and did a simple routine via the RLCcircuit.msim file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Ron.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;My test routine:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;A:= MapleSim:-LinkModel('filename' = cat(kernelopts('toolboxdir' = MapleSim), kernelopts('dirsep'), "data/examples/RLCcircuit.msim"))&lt;/p&gt;
&lt;p&gt;for x from 1 to 10 do&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;A:-SetSubstitutions({`Main.'RLC::C'` = x}),&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;arrayofresults := A:-Simulate(output = datapoint, returnTimeData = true)&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ExportMatrix(cat("matlabresults_", convert(x, string), ".xls"), Matrix(arrayofresults))&lt;/p&gt;
&lt;p&gt;end do&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Thank you so much Acer! I followed your format and did a simple routine via the RLCcircuit.msim file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Ron.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;My test routine:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;A:= MapleSim:-LinkModel('filename' = cat(kernelopts('toolboxdir' = MapleSim), kernelopts('dirsep'), "data/examples/RLCcircuit.msim"))&lt;/p&gt;
&lt;p&gt;for x from 1 to 10 do&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;A:-SetSubstitutions({`Main.'RLC::C'` = x}),&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;arrayofresults := A:-Simulate(output = datapoint, returnTimeData = true)&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ExportMatrix(cat("matlabresults_", convert(x, string), ".xls"), Matrix(arrayofresults))&lt;/p&gt;
&lt;p&gt;end do&lt;/p&gt;</description>
      <guid>130160</guid>
      <pubDate>Sun, 29 Jan 2012 01:38:55 Z</pubDate>
      <itunes:author>rwong1231</itunes:author>
      <author>rwong1231</author>
    </item>
  </channel>
</rss>