Parametric source sequence

Parametric source sequence

anna_campiRDF7C
Participant Participant
106 Views
2 Replies
Message 1 of 3

Parametric source sequence

anna_campiRDF7C
Participant
Participant

Hello everyone,

 

I want to run an experimenter varying the sequence of input flowitems.

For example I want to run the same model for these 2 sequences of items generated by my source:


SEQUENCE1

ItemName Quantity Type
Arrival1 V 50 V
Arrival2 H 2 H
Arrival3 V 2 R
Arrival4 H 9 H
Arrival5 V 4 V

 

SEQUENCE2

ItemName Quantity Type
Arrival1 H 50 H
Arrival2 V 3 V
Arrival3 V 2 R
Arrival5 V 4 V
 
I know i can connect a parameter to the specific row of the arrival sequence table, and thus i may be able to modify a little my table disabling some rows.
The problem is that these examples are simplified versions of my actual input orders, in reality the sequence of products generated by the source is much longer and differs a lot in each scenario.
 
Is there a way to connect the entire table to a parameter to easily switch from one to the other? 
 
I'm not familiar with Process Flow, so I'd prefer a solution that doesn't involve it. However, if that's the only way to achieve this, I'd be happy to consider any solution.

Thank you all in advance!!
0 Likes
107 Views
2 Replies
Replies (2)
Message 2 of 3

sebastien_b49
Advocate
Advocate

If I understood your issue, a solution would be to  create a global variable, e.g. "Scenario", and  modify your code where you make reference to your Table "SEQUENCE1" or "SEQUENCE2" by changing it to:

"SEQUENCE"+numtostring(Scenario)

 

Then just changing the "Scenario" global variable in the experimenter would select the whole table. 

 

I hope it helps

 

0 Likes
Message 3 of 3

anna_campiRDF7C
Participant
Participant

Thank you for your answer!

Yes, it would probably work, but i am not sure as to where i can find the piece of code that accesses the table of Arrival Sequence for my source. 

The only pieces of code I've ever written were those related to Send to port or process time, which were easily accessible from the Porperties tab. Could you kindly tell me how to access directly the code regulating the item generation?

 

Thank you!

0 Likes