Fjsp baseline repair

From XuShuwenn/RedAct · View interactive version

Fjsp baseline repair is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Repair flexible job shop baseline schedules under machine downtimes and policy budgets to produce a feasible, lower-makespan plan with verifiable constraints.

How to use this skill

Skill file

Flexible Job Shop Baseline Repair with Downtime and Policy Budgets

This skill repairs a provided flexible job shop (FJSP) baseline schedule into a feasible plan that respects machine downtimes, operation precedence, and policy budgets (e.g., machine-change limit and total start-shift budget), while seeking to reduce makespan.

When to Use

Activate this skill when you have:

Inputs (conceptual)

Core Workflow

  1. Parse and Inspect Inputs
  1. Define Precedence-Aware Order
  1. Anchoring and Candidate Generation
  1. Budget-Aware Selection
  1. Completion and Output

Verification

Run the following checks before finalizing:

A solution is successful when all constraints above pass.

Common Pitfalls and How to Avoid Them

Optional Strategy: Small-Instance Enumeration

For small instances (e.g., the product of alternatives across all operations ≤ a few thousand), enumerate all machine assignment combinations:

Optional Script Usage

This skill ships reusable helpers in scripts/fjsp_helpers.py:

Example (conceptual):

This modular approach enables iterative improvement and straightforward validation without overfitting to a single instance.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.