<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.8.0-dev (info@mypapit.net)" -->
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
    <title>Ventana Systems UK Forum</title>
    <subtitle>Ventana Systems UK</subtitle>
    <link rel="self" type="application/atom+xml" href="http://www.ventanasystems.co.uk/forum/smartfeed.php?feed_type=ATOM1.0&amp;limit=1_DAY&amp;sort_by=standard&amp;feed_style=HTML&amp;" />
    <id>http://www.ventanasystems.co.uk/forum/smartfeed.php?feed_type=ATOM1.0&amp;limit=1_DAY&amp;sort_by=standard&amp;feed_style=HTML&amp;</id>
    <updated>2012-05-18T18:28:24+00:00</updated>
    <generator>FeedCreator 1.8.0-dev (info@mypapit.net)</generator>
    <entry>
        <title>Vensim :: Re: overriding a subscripted variable in synthesim :: Reply by LAUJJL</title>
        <link rel="alternate" type="text/html" href="http://www.ventanasystems.co.uk/forum/viewtopic.php?f=2&amp;t=4947&amp;p=16794#p16794"/>
        <published>2012-05-18T12:44:44+00:00</published>
        <updated>2012-05-18T12:44:44+00:00</updated>
        <id>http://www.ventanasystems.co.uk/forum/viewtopic.php?f=2&amp;t=4947&amp;p=16794#p16794</id>
        <author>
            <name>LAUJJL</name>
        </author>
        <category term="Vensim" />
        <content type="html"><![CDATA[Hi Tom and Tony<br /><br />Thank you both for the answers. <br /><br />Regards. <br /><br />JJ]]></content>
        <summary type="html"><![CDATA[Hi Tom and Tony<br /><br />Thank you both for the answers. <br /><br />Regards. <br /><br />JJ]]></summary>
    </entry>
    <entry>
        <title>Vensim :: external functions / user loops / which subscript :: Author etam</title>
        <link rel="alternate" type="text/html" href="http://www.ventanasystems.co.uk/forum/viewtopic.php?f=2&amp;t=4949&amp;p=16795#p16795"/>
        <published>2012-05-18T16:29:02+00:00</published>
        <updated>2012-05-18T16:29:02+00:00</updated>
        <id>http://www.ventanasystems.co.uk/forum/viewtopic.php?f=2&amp;t=4949&amp;p=16795#p16795</id>
        <author>
            <name>etam</name>
        </author>
        <category term="Vensim" />
        <content type="html"><![CDATA[I want to write an external function, that has a user loop, so it's quickly fills a vector with some values.<br />It works fine for all elements of a vector, but what if I do not want to use/fill all elements?<br /><br /><dl class="codebox"><dt>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></dt><dd><code>MainRange: e1, e2, e3, e4 ~~|<br />SubRange: e1, e3 ~~|<br />B&#91;MainRange&#93;=MyExternalFunction(A&#91;MainRange&#93;) ~~|<br />C&#91;SubRange&#93;=MyExternalFunction(A&#91;SubRange&#93;) ~~|<br /></code></dd></dl><br />Is there a way to figure out inside the external function (c code) which subscript range is used currently in the equation (MainRange or SubRange)?<br /><br />Thx]]></content>
        <summary type="html"><![CDATA[I want to write an external function, that has a user loop, so it's quickly fills a vector with some values.<br />It works fine for all elements of a vector, but what if I do not want to use/fill all elements?<br /><br /><dl class="codebox"><dt>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></dt><dd><code>MainRange: e1, e2, e3, e4 ~~|<br />SubRange: e1, e3 ~~|<br />B&#91;MainRange&#93;=MyExternalFunction(A&#91;MainRange&#93;) ~~|<br />C&#91;SubRange&#93;=MyExternalFunction(A&#91;SubRange&#93;) ~~|<br /></code></dd></dl><br />Is there a way to figure out inside the external function (c code) which subscript range is used currently in the equation (MainRange or SubRange)?<br /><br />Thx]]></summary>
    </entry>
    <entry>
        <title>Vensim :: Re: external functions / user loops / which subscript :: Reply by tomfid</title>
        <link rel="alternate" type="text/html" href="http://www.ventanasystems.co.uk/forum/viewtopic.php?f=2&amp;t=4949&amp;p=16796#p16796"/>
        <published>2012-05-18T17:02:43+00:00</published>
        <updated>2012-05-18T17:02:43+00:00</updated>
        <id>http://www.ventanasystems.co.uk/forum/viewtopic.php?f=2&amp;t=4949&amp;p=16796#p16796</id>
        <author>
            <name>tomfid</name>
        </author>
        <category term="Vensim" />
        <content type="html"><![CDATA[Before we get into the details, what is this trying to accomplish it, and why is it impossible in Vensim alone? (There might be an easier way.)]]></content>
        <summary type="html"><![CDATA[Before we get into the details, what is this trying to accomplish it, and why is it impossible in Vensim alone? (There might be an easier way.)]]></summary>
    </entry>
    <entry>
        <title>Vensim :: Re: external functions / user loops / which subscript :: Reply by etam</title>
        <link rel="alternate" type="text/html" href="http://www.ventanasystems.co.uk/forum/viewtopic.php?f=2&amp;t=4949&amp;p=16797#p16797"/>
        <published>2012-05-18T17:03:30+00:00</published>
        <updated>2012-05-18T17:03:30+00:00</updated>
        <id>http://www.ventanasystems.co.uk/forum/viewtopic.php?f=2&amp;t=4949&amp;p=16797#p16797</id>
        <author>
            <name>etam</name>
        </author>
        <category term="Vensim" />
        <content type="html"><![CDATA[And do I think well that the values of a vector variable are in the same order as the main subscript range elements?<br />So VECTOR_ARG-&gt;vals[ i] goes to the <span style="font-style: italic">i</span>th element of the main range.<br /><br />That means, if I knew what subscript (sub)range is used in that equation, I could get its elements and its main range and its elements via <span style="font-style: italic">vensim_get_varattrib</span>. Based on this info I can get the indices what to use in the <span style="font-style: italic">vals</span> array for the subrange case.<br /><br />Can you see any problems in this logic? I couldn't find all info in the documentation that would ensure that but I guess it has to be the case, not?<br />Of course for this you have to know the subscript range used during the external function call.]]></content>
        <summary type="html"><![CDATA[And do I think well that the values of a vector variable are in the same order as the main subscript range elements?<br />So VECTOR_ARG-&gt;vals[ i] goes to the <span style="font-style: italic">i</span>th element of the main range.<br /><br />That means, if I knew what subscript (sub)range is used in that equation, I could get its elements and its main range and its elements via <span style="font-style: italic">vensim_get_varattrib</span>. Based on this info I can get the indices what to use in the <span style="font-style: italic">vals</span> array for the subrange case.<br /><br />Can you see any problems in this logic? I couldn't find all info in the documentation that would ensure that but I guess it has to be the case, not?<br />Of course for this you have to know the subscript range used during the external function call.]]></summary>
    </entry>
    <entry>
        <title>Vensim :: Re: external functions / user loops / which subscript :: Reply by etam</title>
        <link rel="alternate" type="text/html" href="http://www.ventanasystems.co.uk/forum/viewtopic.php?f=2&amp;t=4949&amp;p=16798#p16798"/>
        <published>2012-05-18T17:04:45+00:00</published>
        <updated>2012-05-18T17:04:45+00:00</updated>
        <id>http://www.ventanasystems.co.uk/forum/viewtopic.php?f=2&amp;t=4949&amp;p=16798#p16798</id>
        <author>
            <name>etam</name>
        </author>
        <category term="Vensim" />
        <content type="html"><![CDATA[It's an optimizing task I have to put into the model (dispatching like thing).<br />The ALLOC functions are not good for me.]]></content>
        <summary type="html"><![CDATA[It's an optimizing task I have to put into the model (dispatching like thing).<br />The ALLOC functions are not good for me.]]></summary>
    </entry>
    <entry>
        <title>2002 :: Limitations of System dynamics? :: Reply by &quot;Ray on EV1&quot; </title>
        <link rel="alternate" type="text/html" href="http://www.ventanasystems.co.uk/forum/viewtopic.php?f=29&amp;t=898&amp;p=4900#p4900"/>
        <published>2020-10-14T19:31:33+00:00</published>
        <updated>2020-10-14T19:31:33+00:00</updated>
        <id>http://www.ventanasystems.co.uk/forum/viewtopic.php?f=29&amp;t=898&amp;p=4900#p4900</id>
        <author>
            <name>&quot;Ray on EV1&quot; &lt;rtjoseph@ev1.net&gt;</name>
        </author>
        <category term="2002" />
        <content type="html"><![CDATA[The system dynamics methods are suitable in general.  But changing paths in<br />the middle of a project might be more catastrophic than your current<br />situation.<br /><br />You should re-think where you are: Your experienced in UML, your client is<br />not communicating well with your programmers.  Communication difficulties in<br />UML have two typical sources - the facilitator doesnt know UML that well,<br />the participants dont really know the field they are expected to be<br />experienced in.  SD has the advantage of not requiring either but you must<br />understand the methods.  Since you are familiar with UML, you might consider<br />that your client isnt actually a domain expert in the material he is<br />supposed to provide.  This is common for an executive on a tight budget not<br />wanting to allocate personnel to a project.  You might also consider where<br />as you are familiar with UML and understand the process, you may not be well<br />versed at carrying (facilitating) others along.<br /><br />So you are in the middle of a project and dont see the resources you need<br />to progress.  Consider canceling the project and cutting short your clients<br />losses, or bring in a facilitator for one of the two methodologies.<br /><br />Ray<br />From: &quot;Ray on EV1&quot; &lt;rtjoseph@ev1.net&gt;]]></content>
        <summary type="html"><![CDATA[The system dynamics methods are suitable in general.  But changing paths in<br />the middle of a project might be more catastrophic than your current<br />situation.<br /><br />You should re-think where you are: Your experienced in UML, your client is<br />not communicating well with your programmers.  Communication difficulties in<br />UML have two typical sources - the facilitator doesnt know UML that well,<br />the participants dont really know the field they are expected to be<br />experienced in.  SD has the advantage of not requiring either but you must<br />understand the methods.  Since you are familiar with UML, you might consider<br />that your client isnt actually a domain expert in the material he is<br />supposed to provide.  This is common for an executive on a tight budget not<br />wanting to allocate personnel to a project.  You might also consider where<br />as you are familiar with UML and understand the process, you may not be well<br />versed at carrying (facilitating) others along.<br /><br />So you are in the middle of a project and dont see the resources you need<br />to progress.  Consider canceling the project and cutting short your clients<br />losses, or bring in a facilitator for one of the two methodologies.<br /><br />Ray<br />From: &quot;Ray on EV1&quot; &lt;rtjoseph@ev1.net&gt;]]></summary>
    </entry>
</feed>

