AI Blocks

Putting the blocks together

This is taking longer than expected.

Try againBrowse the library
AI Blocks · All skills by job · Minds · Mini tools · How it works · From a source · Apps

AI Blocks › Plan stock, shipping and suppliers

Budget and space picker (knapsack)

Give it items with values and costs. Get the best set to pick within your budget, weight or space limit.

Budget and space picker (knapsack) is a free AI skill for the job "Plan stock, shipping and suppliers". Give the instructions to an AI assistant that supports the required files and tools, then review its output.

Free · No account · MIT licence · Made by Kishor Kukreja

Made by Kishor Kukreja. See the original on GitHub; we copied it as it is, with its licence.

What it does

Out of many options, pick the set that gives the most value without going over your budget, weight, time or space limit. The skill first works out which kind of problem you have: each item once or many times, one limit or several, one container or several. It asks for each item's value and cost, any must-have items, items that cannot go together, and category quotas. It then uses the matching method, usually dynamic programming for exact answers on small to medium lists and quicker approximations on large ones. It shows which items are in, which are out, and the total value used against the limit.

You give it

You get

Use it when

How to use it

  1. Add it to your AI once: download it and add the folder to Claude, ChatGPT or Codex as a skill.
  2. Ask for the job in your own words. Your AI opens the skill when it fits.
  3. It works best when your AI can run code.

More for Plan stock, shipping and suppliers

Every plan stock, shipping and suppliers skill