Skip to content

Box constraints for optimizers #22281

@vincentqb

Description

@vincentqb

🚀 Feature

Offer the option to set box constraints for optimizers.

Motivation

In some applications of reinforcement learning, falling outside of a region correspond to inadmissible actions.

Alternatives

One can omit the constraints, and hope that the optimal parameters found happen to be within the constraints, without any guarantees.

Additional context

This was suggested in #938 for torch.optim.lbfgs.

CC @bamos

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureA request for a proper, new feature.triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions