Global Table Equation

Global Table Equation

roald_w
Not applicable
22 Views
4 Replies
Message 1 of 5

Global Table Equation

roald_w
Not applicable

[ FlexSim 23.0.10 ]

Hi! I hope you are well 🙂

I have the following control policy (T,S)
1692886125687.png

I wish to save the order quantity needed to obtain level S to my "Squantity" global table, so that once the lead time is over the Inventory is updated with the "Squantity" corresponding to the token.type. As seen below the S value is the Set Quantity S from my global table "MaximumS" minus the Current Inventory from "Buunker Bulk Inventory". This equation is however causing error for me.

1692886085149.png


My "Update INV WIth S" can successfully obtain the value once the lead time has passed, however as stated I am struggling to save the S Quantity. Could you please explain where I went wrong in Figure 1?

Kind Regards
(T,S).fsm

0 Likes
Accepted solutions (1)
23 Views
4 Replies
Replies (4)
Message 2 of 5

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

MaximumS is formatted as a string - change it to numeric (or convert the string to a numeric on the fly).

Message 3 of 5

roald_w
Not applicable

Awesome, @Jason Lightfoot is this achievable through using the function string.toNum() ? 🙂

Trying it out now to edit the flex script directly, just a foreign concept.

0 Likes
Message 4 of 5

jason_lightfootVL7B4
Autodesk
Autodesk

I'd right click the column and change it to string data - it's what people will expect and you can then use the data for comparison queries etc. if needed.

The syntax for getting the numeric value of the string cell will be something like this:

Table("GlobalTable1")[1][1].as(string).toNum()
Message 5 of 5

roald_w
Not applicable
Thanks a lot!
0 Likes