@@ -262,18 +262,15 @@ spread from `sample.context`:
262262function generate_scenario end
263263
264264"""
265- generate_anticipative_solver(::AbstractStochasticBenchmark{true} ) -> callable
265+ generate_anticipative_solver(::AbstractBenchmark ) -> callable
266266
267- Return a callable that computes the anticipative solution for a given scenario.
268- The instance and other solver-relevant fields are spread from the sample context.
267+ Return a callable that computes the anticipative solution.
269268
270269- For [`AbstractStochasticBenchmark`](@ref): returns `(scenario; context...) -> y`.
271270- For [`AbstractDynamicBenchmark`](@ref): returns
272- `(scenario; context...) -> Vector{DataSample}` — a full training trajectory.
273-
274- solver = generate_anticipative_solver(bench)
275- y = solver(scenario; sample.context...) # stochastic
276- trajectory = solver(scenario; sample.context...) # dynamic
271+ `(env; reset_env=true, kwargs...) -> Vector{DataSample}`, a full training trajectory.
272+ `reset_env=true` resets the env before solving (initial dataset building);
273+ `reset_env=false` starts from the current env state.
277274"""
278275function generate_anticipative_solver end
279276
@@ -287,16 +284,6 @@ parametric anticipative subproblem:
287284"""
288285function generate_parametric_anticipative_solver end
289286
290- """
291- generate_anticipative_solution(::AbstractStochasticBenchmark, instance, scenario; kwargs...)
292-
293- !!! warning "Deprecated"
294- Use [`generate_anticipative_solver`](@ref) instead, which returns a callable
295- `(scenario; kwargs...) -> y` consistent with the [`generate_maximizer`](@ref)
296- convention.
297- """
298- function generate_anticipative_solution end
299-
300287"""
301288$TYPEDSIGNATURES
302289
0 commit comments