Facility Location MILP Skill

Facility Location MILP Skill is a skill for Claude Code, Codex from junbolian/AdmitOR. It costs 31 tokens per session (2,701 once invoked), scanned A, original, MIT.

A method for modelling facility location as a mixed-integer linear program, or MILP—a mathematical model that chooses whole-number decisions while optimizing a linear cost. It includes facility capacities, customer demand, fixed opening costs, and delivery costs.

In plain words
What is it for?
It is for choosing which facilities to open and how much each facility should supply to each customer, using Python's Pyomo modelling library and a solver.
Why use it?
It turns the trade-off between opening facilities and serving customers into a solvable optimization problem.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for choosing which facilities to open and how much each facility should supply to each customer, using Python's Pyomo modelling library and a solver.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/junbolian/admitor/facility_location_milp
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add junbolian/AdmitOR --skill facility_location_milp
Clone the repo
git clone --depth 1 https://github.com/junbolian/AdmitOR

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Facility Location MILP Skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/junbolian/admitor/facility_location_milp/github.svg)](https://agentmods.dev/skills/junbolian/admitor/facility_location_milp)
Your own site
<a href="https://agentmods.dev/skills/junbolian/admitor/facility_location_milp"><img src="https://agentmods.dev/badge/skills/junbolian/admitor/facility_location_milp/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Facility Location MILP Skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/junbolian/admitor/facility_location_milp"><img src="https://agentmods.dev/badge/skills/junbolian/admitor/facility_location_milp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,701 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.02701
Opus 5 $0.00015 $0.01350
Sonnet 5 $0.00006 $0.00540
Haiku 4.5 $0.00003 $0.00270

Measured today against content hash ce0099141eea, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-17, from the pricing page.

Security

Grade A, and why

Facility Location MILP Skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

artifacts/e1/libraries/skill_library_runsok/facility_location_milp_skill.md · 228 lines

How it starts

The opening of the file, as written. The whole thing — 228 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Workflow 1 (Pyomo with Commercial/Open-Source Solver)

Modeling stage

Strategy Overview

This workflow uses Pyomo's abstract modeling syntax to create a portable MILP formulation, which can be interfaced with various solvers via SolverFactory.

Step 1 - Define Sets and Parameters

  • Define index sets for facilities and customers as Python lists or sets.
  • Organize parameters (fixed costs, capacities, demands, variable costs) as dictionaries keyed by these indices for clarity and scalability.
  • For incomplete or synthetic data, generate deterministic approximations (e.g., base_cost + (i*factor + j) % mod) to ensure reproducibility.

Step 2 - Create Decision Variables

  • Create binary variables y[i] for facility opening decisions (domain=pyo.Binary).
  • Create continuous, non-negative variables x[i,j] for allocation amounts from facility i to customer j (domain=pyo.NonNegativeReals).

Step 3 - Formulate Objective and Constraints

  • Formulate the objective to minimize total cost: sum of fixed_cost[i] * y[i] plus sum of variable_cost[i,j] * x[i,j].
  • Add demand satisfaction constraints: for each customer j, sum of x[i,j] over all facilities must equal demand[j].
  • Add capacity-linking constraints: for each facility i, sum of x[i,j] over all customers must be less than or equal to capacity[i] * y[i]. This enforces that no allocation occurs from a closed facility.

Formulation Template

{
  "sets": ["facilities", "customers"],
  "parameters": {
    "fixed_cost": {"index": "facilities"},
    "capacity": {"index": "facilities"},
    "demand": {"index": "customers"},
    "variable_cost": {"index": ["facilities", "customers"]}
  },
  "decision_variables": {
    "y": {"index": "facilities", "type": "binary"},
    "x": {"index": ["facilities", "customers"], "type": "continuous", "lb": 0}
  },
  "objective": {
    "sense": "min",
    "expression": "sum(fixed_cost[i] * y[i] for i in facilities) + sum(variable_cost[i,j] * x[i,j] for i in facilities for j in customers)"
  },
  "constraints": {
    "demand_satisfaction": {"index": "customers", "expression": "sum(x[i,j] for i in facilities) == demand[j]"},
    "capacity_linking": {"index": "facilities", "expression": "sum(x[i,j] for j in customers) <= capacity[i] * y[i]"}
  }
}

Read the full file on GitHub · 228 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 228 lines · 31 tokens per session scan A ce0099141eea

Subscribe to this mod's changes

Facility Location MILP Skill is a skill published in the GitHub repository junbolian/AdmitOR (41 stars, last pushed yesterday), licensed MIT. It adds 31 tokens to every session and 2,701 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-17.

Related

Other skills, from other repositories

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

exploratory-data-analysis

Perform bounded, local exploratory analysis of explicitly supported scientific files. Use for redacted CSV/TSV/JSON profiles; optional NumPy, HDF5, FASTA/FASTQ, and basic image metadata inspection; missingness/leakage audits; outlier and transformation sensitivity; and rigorous EDA report scaffolds. Other domain…

K-Dense-AI/scientific-agent-skills · 83 tokens

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 42 tokens

phylogenetics

Build and analyze phylogenetic trees using MAFFT (multiple alignment), IQ-TREE 2 (maximum likelihood), and FastTree (fast NJ/ML). Visualize with ETE3 or FigTree. For evolutionary analysis, microbial genomics, viral phylodynamics, protein family analysis, and molecular clock studies.

K-Dense-AI/scientific-agent-skills · 68 tokens

research-engineer

An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.

davila7/claude-code-templates · 43 tokens

mapping-to-snomed

Maps clinical concept spans extracted by OpenMed to SNOMED CT concepts through a USER-SUPPLIED terminology server (the user's own Ontoserver, Snowstorm, or UMLS/UTS), never a bundled vocabulary. Use when the user wants to code findings, disorders, procedures, body structures, or substances to SNOMED CT, run an ECL…

maziyarpanahi/openmed · 205 tokens