question

Sarthak_22 avatar image
0 Likes"
Sarthak_22 asked Sebastián Cañas commented

Integrating Flexsim with to Solve the knapsack problem?

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.

FlexSim 24.0.0
knapsackknapsackproblem
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

Sebastián Cañas avatar image
0 Likes"
Sebastián Cañas answered Sebastián Cañas commented

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.

· 3
5 |100000

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