Problem Statement: A warehouse stores n types of products, each with a different weight and value. You are tasked with selecting products to fulfill orders. Each order requests a specific number of items with a total weight limit. Your job is to:
Select the set of products that maximizes the total value while respecting the weight limit.
Handle multiple orders dynamically, where each order may have different weight limits and product requirements.
Ensure that product selection is optimized for different orders arriving in real time.
Problem Statement: A warehouse stores n types of products, each with a different weight and value. You are tasked with selecting products to fulfill orders. Each order requests a specific number of items with a total weight limit. Your job is to:
Select the set of products that maximizes the total value while respecting the weight limit. Handle multiple orders dynamically, where each order may have different weight limits and product requirements. Ensure that product selection is optimized for different orders arriving in real time.