Skip to content

Commit 16f6c62

Browse files
committed
fix: adapt OpenAI client for AI Foundry compatibility
Modify API parameter handling in OpenAILLM to properly support AI Foundry endpoints: - Add special case for AI Foundry endpoints - Remove unsupported parameters for o-series models - Update URL detection for Azure endpoints - Improve parameter cleaning for different API variants
1 parent 4f92f04 commit 16f6c62

File tree

1 file changed

+22
-2
lines changed
  • examples/trading_volume_optimization_orchestrator

1 file changed

+22
-2
lines changed

examples/trading_volume_optimization_orchestrator/README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,28 @@ When you add knobs, remember:
223223
want a hill to climb.
224224

225225
-------------------------------------------------------------------------------
226-
227-
5. FAQ
226+
227+
5. Optimized Solution
228+
--------------------
229+
230+
The evolutionary search has discovered an efficient strategy for trading volume execution, which can be found in `openevolve_output/best/best_program.py`.
231+
232+
### Key Features of the Solution
233+
234+
- **Alpha-based Schedule Creation**: The solution generates trading schedules using a parametrized approach where an alpha parameter controls the distribution of trading volume over time.
235+
- α < 0: Front-loaded execution (more volume traded early)
236+
- α = 0: Uniform execution (equal volume across all time slices)
237+
- α > 0: Back-loaded execution (more volume traded later)
238+
239+
- **Scenario-based Evaluation**: The solution evaluates different alpha values across multiple random market scenarios, considering:
240+
- Random buy/sell sides
241+
- Variable trading volumes
242+
- Price impact simulation
243+
244+
- **Optimization Method**: The algorithm uses a simple but effective random search approach to find the optimal alpha value that minimizes average slippage costs.
245+
246+
247+
6. FAQ
228248
------
229249
Q: **How do I run the example?**
230250
A: Run `python openevolve-run.py examples/optimal_execution/initial_program.py examples/optimal_execution/evaluator.py --iterations 20 --config config.yaml'

0 commit comments

Comments
 (0)