Optimization
9 posts
Alloy Composition Optimization: Multi-Objective Materials Design
Using genetic algorithms to optimize alloy compositions for multiple properties simultaneously, balancing strength, hardness, density, and corrosion resistance.
Rocket Motor Optimization: Designing Thrust Profiles
Using genetic algorithms to optimize solid rocket motor grain geometry for target thrust profiles, where physics simulations replace analytical gradients.
HP Lattice Folding: Simplified Protein Structure Prediction
Using genetic algorithms to fold proteins on a lattice model, where the goal is to maximize hydrophobic contacts in a discrete search space.
Lennard-Jones Clusters: Finding Molecular Ground States
Using genetic algorithms to find minimum-energy configurations of atomic clusters, a classic benchmark problem in computational physics.
Island Models: What Splitting the Population Actually Buys
Islands, migration and topology, measured at a matched budget. The results point the opposite way to the usual advice.
Genetic Algorithms: Evolution as Optimization
An introduction to genetic algorithms: how evolutionary principles solve optimization problems, from selection and crossover to mutation and fitness landscapes.
I Tested LLM Prompt Caching With Anthropic and OpenAI
Experiments testing prompt caching with actual API calls, measuring cache hits, token counts, and costs across Anthropic Claude and OpenAI GPT.
Where Did All the RAM Go? Memory Profiling with Memray
High CPU isn''t the only performance issue. Learn how Memray helps track memory leaks and excessive allocation in your Python library to optimize usage.
Finding the Slowdown: Profiling Python Code with Pyinstrument
Your benchmark says a function is slow, but why? Profilers like Pyinstrument help you pinpoint exactly where your Python code is spending its time.