<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Update Optquest Variables in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/update-optquest-variables/m-p/13565525#M67129</link>
    <description>&lt;P&gt;@Mate &lt;/P&gt;
&lt;P&gt;Thanks Matt for your answer. &lt;/P&gt;
&lt;P&gt;I think that something is missing, because the variables are still loaded as continuous variables and I needed them as permutation variables. &lt;/P&gt;
&lt;P&gt;Could you help me to review my complete code from line 97 to 212 in the attached model?&lt;/P&gt;
&lt;P&gt;The lines 151 and 152 are the ones that you helped me to correct.&lt;/P&gt;
&lt;P&gt;You can find the code in the button called "Cargar Programa".&lt;/P&gt;
&lt;P&gt;&lt;A href="https://answers.flexsim.com/storage/attachments/4875-simulacion-jamones-ceisa-2017-v2.fsm"&gt;simulacion-jamones-ceisa-2017-v2.fsm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks in advanced&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2017 19:15:38 GMT</pubDate>
    <dc:creator>oscar_perez</dc:creator>
    <dc:date>2017-01-25T19:15:38Z</dc:date>
    <item>
      <title>Update Optquest Variables</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/update-optquest-variables/m-p/13565523#M67127</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 16.2.2 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.flexsim.com/storage/attachments/4863-simulacion-jamones-ceisa-2017-prueba2.fsm"&gt;simulacion-jamones-ceisa-2017-prueba2.fsm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hi Jordan, &lt;/P&gt;
&lt;P&gt;Please, can you help me with my model?&lt;/P&gt;
&lt;P&gt;I have a code in post-import code and also on the boton in the main Dashboard, the boton is called "Cargar programa". This code is supposed to update the variables of the optquest according to the excel file, which is imported for each production plan. This code works propertly with version 7.7, but not with version 2016. &lt;/P&gt;
&lt;P&gt;The variables must be permutation variables, but after executing the code they are being loaded as continuos variables. &lt;/P&gt;
&lt;P&gt;The line that does not work is the next: &lt;/P&gt;
&lt;P&gt;treenodeupdateOptQuestVars = node("/Tools/OptQuest/logic/updateOptQuestVars", model()); executefsnode(updateOptQuestVars, NULL); &lt;/P&gt;
&lt;P&gt;I appreciate your answer. &lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 22:29:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/update-optquest-variables/m-p/13565523#M67127</guid>
      <dc:creator>oscar_perez</dc:creator>
      <dc:date>2017-01-24T22:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Update Optquest Variables</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/update-optquest-variables/m-p/13565524#M67128</link>
      <description>&lt;P&gt;The updateOptQuestVars function was moved out of the model and into the Main tree. You can find it at:&lt;/P&gt;&lt;P&gt;MAIN:/project/exec/optquest/definitionLogic/updateOptQuestVars&lt;/P&gt;&lt;P&gt;Change your code to say:&lt;/P&gt;&lt;PRE&gt;treenodeupdateOptQuestVars = node("project/exec/optquest/definitionLogic/updateOptQuestVars", main()); 
executefsnode(updateOptQuestVars, NULL);&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Jan 2017 23:28:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/update-optquest-variables/m-p/13565524#M67128</guid>
      <dc:creator>matt_long</dc:creator>
      <dc:date>2017-01-24T23:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Update Optquest Variables</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/update-optquest-variables/m-p/13565525#M67129</link>
      <description>&lt;P&gt;@Mate &lt;/P&gt;
&lt;P&gt;Thanks Matt for your answer. &lt;/P&gt;
&lt;P&gt;I think that something is missing, because the variables are still loaded as continuous variables and I needed them as permutation variables. &lt;/P&gt;
&lt;P&gt;Could you help me to review my complete code from line 97 to 212 in the attached model?&lt;/P&gt;
&lt;P&gt;The lines 151 and 152 are the ones that you helped me to correct.&lt;/P&gt;
&lt;P&gt;You can find the code in the button called "Cargar Programa".&lt;/P&gt;
&lt;P&gt;&lt;A href="https://answers.flexsim.com/storage/attachments/4875-simulacion-jamones-ceisa-2017-v2.fsm"&gt;simulacion-jamones-ceisa-2017-v2.fsm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks in advanced&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 19:15:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/update-optquest-variables/m-p/13565525#M67129</guid>
      <dc:creator>oscar_perez</dc:creator>
      <dc:date>2017-01-25T19:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Update Optquest Variables</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/update-optquest-variables/m-p/13565526#M67130</link>
      <description>&lt;P&gt;I'm not sure. I don't have your import file so I can't check what's going on, but all of the code is the same from 7.7 to 16.2.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 19:35:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/update-optquest-variables/m-p/13565526#M67130</guid>
      <dc:creator>matt_long</dc:creator>
      <dc:date>2017-01-25T19:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Update Optquest Variables</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/update-optquest-variables/m-p/13565527#M67131</link>
      <description>&lt;P&gt;Hi Matt, &lt;/P&gt;
&lt;P&gt;It was unable to attach the Excel file here, could you give me your email to send it to you?&lt;/P&gt;
&lt;P&gt;I would like to to send you the model and the Excel file, so that you can help me to check the code and know why it does not work.&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 15:39:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/update-optquest-variables/m-p/13565527#M67131</guid>
      <dc:creator>oscar_perez</dc:creator>
      <dc:date>2017-01-26T15:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Update Optquest Variables</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/update-optquest-variables/m-p/13565528#M67132</link>
      <description>&lt;P&gt;&lt;A href="mailto:matt.long@flexsim.com"&gt;matt.long@flexsim.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 16:15:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/update-optquest-variables/m-p/13565528#M67132</guid>
      <dc:creator>matt_long</dc:creator>
      <dc:date>2017-01-26T16:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Update Optquest Variables</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/update-optquest-variables/m-p/13565529#M67133</link>
      <description>&lt;P&gt;On line 154 you were referencing the table in the experimenter window that held the variables. The structure of the view changed so you were no longer referencing the data. This was found by putting a debug point in your code and stepping through the code. Once it go to line 154, nodo_opt was null.&lt;/P&gt;&lt;P&gt;Instead of referencing things in the view, you should reference the data's location in your model. Change line 154 to:&lt;/P&gt;&lt;PRE&gt;treenode nodo_opt = node("Tools/OptQuest/variables",model());
&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jan 2017 18:08:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/update-optquest-variables/m-p/13565529#M67133</guid>
      <dc:creator>matt_long</dc:creator>
      <dc:date>2017-01-26T18:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Update Optquest Variables</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/update-optquest-variables/m-p/13565530#M67134</link>
      <description>&lt;P&gt;Thank you, now it works!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 16:02:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/update-optquest-variables/m-p/13565530#M67134</guid>
      <dc:creator>oscar_perez</dc:creator>
      <dc:date>2017-02-01T16:02:44Z</dc:date>
    </item>
  </channel>
</rss>

