Skip to content

BoundsIntegral performance improvement #198

Open

Description

@AntoinePrv

Describe the problem or improvement suggested

Right now, the complete history of bounds is stored in the event handler and the integral is recomputed from start before taking a difference.

Describe the solution you would like

Only store the values since the last call to extract and compute directly the integral difference from this.
Something like

auto const& primal_bounds = ...

auto inegral = Reward{0.};
if(...){
    integral = compute_primal_integral(primal_bounds);
} else {
    ...
}

handler.clear_all_but_last();
// No need to compute diff anymore
return integral;

Additional context

#144

Activity

  1. reopened this on Jun 29, 2021
  2. gasse commented on Jun 29, 2021

    @gasse
    Member

    We can further improve the code, and get rid of the vector altogether by accumulating the integral on-the-fly without storing all intermediate bound values.

    Let's keep this issue open until we do it when we have time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions