Manufacturing fjsp optimization

From XuShuwenn/RedAct · View interactive version

Manufacturing fjsp optimization is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Optimize flexible job shop scheduling with machine downtime windows and policy budget constraints to minimize makespan.

How to use this skill

Skill file

Flexible Job Shop Scheduling Optimization

When to Use

Execution Protocol

Execution Protocol

Input Files

Output

solution.json

{
  "status": "",
  "makespan": ,
  "schedule": [
    {"job": , "op": , "machine": , "start": , "end": , "dur": }
  ]
}

schedule.csv

Same data as solution.json in CSV format (job, op, machine, start, end, dur)

If no schedule satisfies all stated hard constraints, still write the deliverables and mark infeasibility explicitly.

Use solution.json like:

{
  "status": "INFEASIBLE",
  "makespan": null,
  "schedule": []
}

Do not output FEASIBLE for a schedule that required relaxing freeze, budget, downtime, or precedence constraints.

Goals

  1. Generate feasible schedule
  2. Minimize makespan
  3. No worse policy budgets than baseline
  4. Respect machine downtime windows
  1. Preserve stated policy, baseline, freeze, and lock semantics exactly as defined by the task and input files; do not relax, strengthen, or rewrite them without explicit support
  2. If the task explicitly requires a schedule with lower makespan than baseline, do not present a same-makespan solution as successful
  3. Write /app/output/solution.json and /app/output/schedule.csv
  4. Report results conservatively unless optimality is actually proven
  5. Preserve reproducibility until outputs are finalized
  1. Separate objectives explicitly: first satisfy the task's hard deliverable requirement (feasible repair or explicit infeasibility/failure output), then pursue makespan improvement only if the task explicitly requires or rewards it.
  2. Choose the primary optimization/acceptance target from the task statement and input artifacts, not from inference. Do not promote a baseline metric into a hard success criterion unless the task explicitly says so.
  3. When artifacts provide explicit acceptance metrics such as repair feasibility, zero hard-constraint violations, or budget compliance, satisfy those first and report success against them; do not redirect the search toward beating baseline makespan unless strict makespan improvement is explicitly required.
  4. Use a two-stage workflow by default: first produce one fully validated schedule that satisfies all hard constraints and required budgets, then attempt bounded makespan improvement from that validated baseline.
  5. During repair or improvement, treat policy budgets (for example machine-change and start-shift limits) as candidate-level acceptance checks, not end-of-run afterthoughts; reject over-budget moves before promoting a candidate.

Required Validation Before Modeling

Hard Acceptance Rules

Final Pre-Response Checklist

Hard Acceptance Rules

Tips

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.