linear-programming

Formulate, analyze, and certify linear programming models with duality proofs.

7|Updated Apr 24, 2026
One-click install
npx skills add https://github.com/Arcadi4/nerdy --skill linear-programming-arcadi4
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: linear-programming
Source: https://github.com/Arcadi4/nerdy/tree/main/clrs/linear-programming
Command: npx skills add https://github.com/Arcadi4/nerdy --skill linear-programming-arcadi4

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a rigorous framework for formulating, solving, proving, and auditing linear-programming models, ensuring that each decision variable has a real interpretation and that optimality can be certified through duality or complementary slackness.

Core Features & Use Cases

  • Comprehensive LP modeling workflow covering standard form conversions, feasibility checks, boundedness reasoning, and duality analysis.
  • Duality certificates, weak/strong duality explanations, and complementary-slackness reasoning applicable to resource allocation, scheduling, and network-flow problems.
  • Guidance for integer-LP caveats and graph/flow formulations, with worked patterns and decision-criteria to choose primal/dual formulations.

Quick Start

Create a formal LP model for a resource allocation problem and verify feasibility and optimality.

Frequently Asked Questions about linear-programming

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prove linear programming optimality using duality and complementary slackness?

Linear programming optimality is certified by constructing the dual problem and verifying complementary slackness conditions. This framework checks that every decision variable and constraint satisfies strict slackness, providing mathematical proof of primal-dual feasibility and boundedness.

What is a Farkas certificate and when is it needed in linear programming?

A Farkas certificate provides mathematical proof of linear programming infeasibility. It is needed when standard solvers return infeasible models, using Farkas' lemma to certify that no feasible solution exists for the given constraint set.

How do I convert linear programming models to standard form for resource allocation problems?

Converting linear programming models to standard form involves transforming inequality constraints into equalities using slack variables and ensuring variables are non-negative. This workflow applies directly to resource allocation, scheduling, and network-flow problem formulations.

What are the main integer-LP caveats when modeling network-flow and scheduling problems?

Integer-LP caveats include integrality gaps and the loss of strong duality guarantees. When modeling network-flow or scheduling problems, decision variables requiring integer values prevent direct application of standard complementary slackness proofs.

Does this linear programming workflow handle unboundedness checks and feasibility analysis?

Yes, the linear programming workflow explicitly handles unboundedness checks and feasibility analysis. It applies dynamic rules for certificates to reason about boundedness and verify whether constraint sets admit feasible solutions across resource allocation and network-flow formulations.