question

laitriminh avatar image
0 Likes"
laitriminh asked laitriminh commented

Optimizer design

Hi Flexsim community,

I'm having trouble using Optimize to find the optimal position for minimizing the total transportation distance of Transporter 1 and 2. My variables include the bon tam processor, Queue7, and Queue8.

I've tried various methods, such as separating each variable into x and y axes and adding constraints to prevent object overlap, but the results aren't as expected. Currently, I'm thinking of grouping all elements (bon tam, Queue7, and Queue8) into a specific coordinate and allowing them to move within the red area to achieve the optimal position.

However, I'm unsure how to proceed with this idea. I've attached the Flexsim file (version 2019) and images below. I'm hoping to receive assistance from experts. Thank you.

cai tien PA2.fsm1.png


FlexSim 19.0.0
optimizeoptimizer designoptimizer run
1.png (528.8 KiB)
cai-tien-pa2.fsm (380.3 KiB)
5 |100000

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

1 Answer

Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered laitriminh commented

Your results might differ from your expectation because Transporter2 is bound to a travel network. Its travel distance will be shortest if Queue8 is positioned above the connected network node and only get longer the farther the queue is placed away from the node. Maybe try adding additional network nodes connected to the queue so the transporter can choose the closest one.

To move the objects as a group you can move them in a plane (Visual Object) and then only move the plane. Make sure to update any Model.find() expressions that include these objects to the new path (Model.find("Plane/...").

Not part of your question, but it seems a little odd that the speed of all task executers gets updates every time any of them load or unload something. Is this by design?

1705306094371.png


1705306094371.png (16.2 KiB)
· 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.

laitriminh avatar image laitriminh commented ·

Thank you, Felix. I understand your point regarding Transporter2.

However, I haven't fully grasped the part about moving objects using Visual Object. Could you please provide a more detailed explanation?

Also, regarding the movement speed of task executers, I designed it to reflect real-world scenarios when loading and unloading.

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann laitriminh commented ·

If you drop an object from the library onto another object (in this case a plane), it will be placed inside that object and follow any location of that object.

capture1.png

To move objects into one another that are already in the model, use the "Edit Selected Objects" window (open in the top bar menu under "View").

capture2.png

cai-tien-pa2_1.fsm


I just thought it is weird that Transporter2 (and all other Task Executers) move slower because Transporter1 loaded something (as an example).

1 Like 1 ·
capture1.png (38.2 KiB)
capture2.png (8.0 KiB)
cai-tien-pa2-1.fsm (326.5 KiB)
laitriminh avatar image laitriminh Felix Möhlmann commented ·

I've understood the part about placing objects into another plane. Thank you, Felix.

As for controlling the speed of task executers, I've consulted the Flexsim community and initially thought it would work independently for each task executer during load and unload. Could you guide me on any alternative methods to independently limit the speed of task executers during load and unload? I appreciate your assistance, Felix.

0 Likes 0 ·
Show more comments