Skip to content

Commit 8f8a65a

Browse files
committed
Add optimal execution trading example
Created a new example that demonstrates optimal trading execution: - Implemented market simulator with price impact model - Added evaluator with metrics for cost improvement vs baseline - Fixed parameter ordering in simulate_execution function - Included timeout handling for search algorithms
1 parent 85d2979 commit 8f8a65a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/optimal_execution/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@ When you add knobs, remember:
226226

227227
5. FAQ
228228
------
229-
229+
Q: **How do I run the example?**
230+
A: Run `python openevolve-run.py examples/optimal_execution/initial_program.py examples/optimal_execution/evaluator.py --iterations 20 --config config.yaml'
230231
Q: **Why does the evaluator re-implement `simulate_execution`?**
231232
A: To guarantee the candidate cannot cheat by hard-coding answers from its own
232233
RNG realisations.

0 commit comments

Comments
 (0)