question

Oscar Perez avatar image
2 Likes"
Oscar Perez asked Oscar Perez answered

Update Optquest Variables

simulacion-jamones-ceisa-2017-prueba2.fsm

Hi Jordan,

Please, can you help me with my model?

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.

The variables must be permutation variables, but after executing the code they are being loaded as continuos variables.

The line that does not work is the next:

treenodeupdateOptQuestVars = node("/Tools/OptQuest/logic/updateOptQuestVars", model()); executefsnode(updateOptQuestVars, NULL);

I appreciate your answer.

Thanks in advance.

FlexSim 16.2.2
optquestvariablesupdate 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Matt Long avatar image
3 Likes"
Matt Long answered Matt Long commented

The updateOptQuestVars function was moved out of the model and into the Main tree. You can find it at:

MAIN:/project/exec/optquest/definitionLogic/updateOptQuestVars

Change your code to say:

  1. treenodeupdateOptQuestVars = node("project/exec/optquest/definitionLogic/updateOptQuestVars", main());
  2. executefsnode(updateOptQuestVars, NULL);
· 5
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Oscar Perez avatar image
0 Likes"
Oscar Perez answered

Thank you, now it works!

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.