Skip to content

Is it possible to optimize based on multiple variables? #256

Closed
@Gladi-iwnl

Description

@Gladi-iwnl

Is it possible to optimize based on multiple variables? Or set the constraint to a value from the results?

Example:

stats = backtest.optimize(
    n1=range(10, 110, 10),
    n2=range(20, 210, 20),
    constraint=stats['Max. Drawdown [%]'] < 20,
    maximize='Return [%]]')

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionNot a bug, but a FAQ entry

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions