Integrating Flexsim with to Solve the knapsack problem?

Integrating Flexsim with to Solve the knapsack problem?

sarthak_22
Not applicable
28 Views
4 Replies
Message 1 of 5

Integrating Flexsim with to Solve the knapsack problem?

sarthak_22
Not applicable

[ FlexSim 24.0.0 ]

Hello @Sebastián Cañas in the model Integrating Flexsim with Python to Solve the knapsack problem it only collects the optimal solution, but what I want is the model also collects the remaining products after collecting the optimal products under the parameter so that remaining products can also be utilized, so can you please help me out as it is also application in my business.

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

sebastian_canas9DYX7
Collaborator
Collaborator
Accepted solution

Hey @Sarthak_22,

The demo model was built using a combiner to pull the chosen items from the upstream queue using a basic 3d logic.
There are several approaches you could use. I would create a logic using process flow that once the Send to Port or Exit event triggered in the combiner, starts a task sequence to load the remaining product checking the content of the queue.

0 Likes
Message 3 of 5

sarthak_22
Not applicable

Thankyou @Sebastián Cañas if so, please share it with me as soon as possible because i have tried a lot by creating the logics in the Knapsack Problem script in the process flow

0 Likes
Message 4 of 5

sarthak_22
Not applicable
Hello @Sebastián Cañas can you please help me with my problem? As I am trying it but not able to get the solution to it.
0 Likes
Message 5 of 5

sebastian_canas9DYX7
Collaborator
Collaborator

Hey @Sarthak_22 , this is a very simple demo model: TaskSequence.fsm that shows how you should create the logic. Adjust it according to your needs.

I'd suggest to follow some tutorials of the user manual, such like this one. If you have further questions, please post it as a new thread since this isn't anymore about the Knapsack problem application, but it's regarding creating a logic in FlexSim

0 Likes