Add tasks: (1)bin-packing-optimum-bins (2) gap-min-cost-assignment (3) lot-sizing-optimum-cost#80
Open
JianchengZ wants to merge 9 commits into
Open
Add tasks: (1)bin-packing-optimum-bins (2) gap-min-cost-assignment (3) lot-sizing-optimum-cost#80JianchengZ wants to merge 9 commits into
JianchengZ wants to merge 9 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
(1)bin-packing-optimum-bins
What it’s about: This task asks the agent to determine the minimum number of bins needed to pack a specific list of ten items with fixed sizes into bins of capacity 10. It is a classic one‑dimensional bin‑packing problem with a unique optimal answer.
Skills tested: The agent must perform combinatorial reasoning, apply lower‑bound estimates, and search or construct feasible packings. It tests the ability to reason about subset combinations and to verify that a candidate packing meets capacity and minimality constraints.
Interesting challenges: The main challenge is ensuring the agent finds the optimal solution (6 bins) rather than stopping at a heuristic solution. Because the search space grows exponentially, the task is designed so that naive enumeration is still feasible but requires careful reasoning or pruning.
(2) gap-min-cost-assignment
What it’s about: Here the agent must assign five jobs to three agents, each with its own capacity, resource requirements, and cost matrix, so as to minimise total cost without exceeding any agent’s capacity. It is a small instance of the Generalised Assignment Problem (GAP).
Skills tested: The task exercises discrete optimisation skills—specifically the ability to evaluate cost/resource trade‑offs, respect capacity constraints, and select an optimal assignment from a finite but non‑trivial search space.
Interesting challenges: The optimal assignment requires balancing low costs against the agents’ limited capacities and may not be obvious from the raw data. A brute‑force search is possible but care must be taken to prune infeasible assignments and verify the cost calculations correctly.
(3) lot-sizing-optimum-cost
What it’s about: This task involves planning production for a single item across six periods with varying demand, capacity, variable costs, setup costs, and a holding cost. The agent must choose production quantities to meet demand exactly, start and end with zero inventory, and minimise total cost.
Skills tested: It tests dynamic planning and optimisation abilities—specifically, understanding inventory balance constraints, fixed versus variable production costs, and the interplay between producing early (incurring holding costs) versus delaying production (subject to capacity limits and setup costs).
Interesting challenges: The optimal solution requires reasoning across multiple periods, deciding when it is economical to produce extra units and carry inventory, and ensuring end‑of‑horizon conditions are met. Designing the instance so that the optimal cost is non‑trivial yet deterministic required careful tuning of demands and capacities.