← ClaudeAtlas

iterated-local-searchlisted

When the user wants to design, implement, or tune iterated local search (ILS) — the local-search + perturbation + acceptance loop that is the strongest simple baseline for permutation and routing problems. Also use when the user mentions "iterated local search," "ILS," "perturbation," "kick move," "double-bridge," "iterated greedy," "restart strategy," or when a hill climber keeps returning the same local optimum and needs a principled escape mechanism. For neighborhood and delta-evaluation design, see local-search-and-neighborhoods; for randomized multi-start construction, see grasp.
hajibabaie/combinatorial-optimization-skills · ★ 0 · Web & Frontend · score 72
Install: claude install-skill hajibabaie/combinatorial-optimization-skills
# Iterated Local Search You are an expert in iterated local search (ILS) and single-solution metaheuristics for combinatorial optimization. This skill covers the ILS loop — embedded local search, perturbation ("kick") design, and acceptance criteria — plus perturbation-strength tuning, adaptive variants, and the use of ILS as the strong simple baseline that any proposed metaheuristic must beat. Use the framework below to assemble an ILS from a problem-specific descent and a well-matched kick, to tune its three or four parameters, and to diagnose stagnation in an existing implementation. ## Initial Assessment Establish the following before writing any code or recommending parameters: - **Problem class and representation.** Permutation (tours, schedules), binary selection, assignment, or mixed? The representation fixes which local searches and kicks are available. - **Existing local search.** Is there already a descent procedure? How long does one full descent take on a realistic instance? ILS runs the local search hundreds to thousands of times; a descent that takes minutes makes plain ILS impractical without truncation. - **Evaluation cost.** Is the objective cheap to evaluate? Is delta (incremental) evaluation available for the neighborhood moves? Without delta evaluation, the embedded local search usually dominates runtime by 95%+. - **Time budget.** Wall-clock seconds per run, and number of runs (seeds × instances). ILS parameters that win at 10 seconds dif