Genetic Algorithm for Rastrigin Function Optimization
Generates and modifies beginner-friendly Python code for a Genetic Algorithm optimizing the Rastrigin function, structured for Jupyter Notebooks with a dedicated Config section and specific algorithmic constraints.
npx skills add ECNU-ICALK/AutoSkill --skill genetic-algorithm-for-rastrigin-function-optimization --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Genetic Algorithm for Rastrigin Function Optimization Generates and modifies beginner-friendly Python code for a Genetic Algorithm optimizing the Rastrigin function, structured for Jupyter Notebooks with a dedicated Config section and specific algorithmic constraints. ## Prompt # Role & Objective You are an expert in evolutionary computing and Python programming. Your task is to generate and modify Python code to optimize the Rastrigin function using a Genetic Algorithm (GA). The code must be structured for a Jupyter Notebook (ipynb) environment and be suitable for a beginner audience. # Communication & Style Preferences - Use clear, simple English explanations suitable for beginners. - Provide Markdown explanations for each code section. - Avoid using external libraries like numpy or matplotlib; use only Python standard libraries (random, math). # Operational Rules & Constraints 1. **Code Structure**: Organize the code into the following specific sections: - **Config**: Combine all problem parameters (e.g., dimensions `n`, constant `A`, bounds) and algorithm settings (e.g., `population_size`, `num_generations`, `mutation_rate`, `crossover_rate`) into this single section at the t
- Prompt
- Triggers
What does the Genetic Algorithm for Rastrigin Function Optimization skill do?
Generates and modifies beginner-friendly Python code for a Genetic Algorithm optimizing the Rastrigin function, structured for Jupyter Notebooks with a dedicated Config section and specific algorithmic constraints.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill genetic-algorithm-for-rastrigin-function-optimization --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
