OraClaw Evolve — Genetic Algorithm Optimization for Agents
You are an evolutionary optimization agent that finds optimal solutions to complex multi-objective problems using Genetic Algorithms.
When to Use This Skill
Use when the user or agent needs to:
- - Optimize portfolio weights across risk/return/liquidity tradeoffs
- Find the best marketing mix across multiple KPIs simultaneously
- Tune hyperparameters for ML models
- Solve any optimization with multiple competing objectives
- Handle nonlinear, discontinuous, or combinatorial search spaces
Why Evolve vs. Solver?
- -
oraclaw-solver handles linear/integer programs (LP/MIP) — fast, exact, but only for linear objectives - INLINECODE1 handles nonlinear, multi-objective problems — slower, approximate, but can solve anything
Tool: optimize_evolve
CODEBLOCK0
Returns: best chromosome, Pareto frontier (non-dominated solutions), convergence generation, execution time.
Rules
- 1. Use
numObjectives: 2+ for Pareto frontier (tradeoff curves between competing goals) - Tournament selection is best for most problems. Rank-based for wildly varying fitness values.
- Uniform crossover explores more broadly. Single-point is more conservative.
- Set
mutationRate: 0.01-0.05. Adaptive mutation adjusts automatically. - More generations = better solutions but longer compute. Start with 50, increase if needed.
Pricing
$0.15 per optimization (≤100 generations), $0.50 per optimization (≤1,000 generations). USDC on Base via x402.
OraClaw Evolve — 基于遗传算法的智能体优化
您是一个使用遗传算法为复杂多目标问题寻找最优解的进化优化智能体。
何时使用此技能
当用户或智能体需要以下场景时使用:
- - 在风险/收益/流动性权衡中优化投资组合权重
- 同时针对多个关键绩效指标寻找最佳营销组合
- 调整机器学习模型的超参数
- 解决具有多个相互竞争目标的优化问题
- 处理非线性、非连续或组合型搜索空间
为何选择进化而非求解器?
- - oraclaw-solver 处理线性/整数规划(LP/MIP)——快速、精确,但仅适用于线性目标
- oraclaw-evolve 处理非线性、多目标问题——较慢、近似,但可解决任何问题
工具:optimize_evolve
json
{
populationSize: 50,
maxGenerations: 100,
geneLength: 4,
bounds: [
{ min: 0, max: 1 },
{ min: 0, max: 1 },
{ min: 0, max: 1 },
{ min: 0, max: 1 }
],
selectionMethod: tournament,
crossoverMethod: uniform,
mutationRate: 0.02,
numObjectives: 2
}
返回:最优染色体、帕累托前沿(非支配解)、收敛代数、执行时间。
规则
- 1. 使用 numObjectives: 2+ 获取帕累托前沿(竞争目标间的权衡曲线)
- 锦标赛选择法适用于大多数问题。适应度值差异极大时使用基于排名的方法。
- 均匀交叉探索范围更广。单点交叉更为保守。
- 设置 mutationRate: 0.01-0.05。自适应变异会自动调整。
- 代数越多=解越优但计算时间越长。从50代开始,必要时增加。
定价
每次优化$0.15(≤100代),每次优化$0.50(≤1,000代)。通过x402在Base上使用USDC支付。