Skip to content

How do I do to have more then 1 constraint? #776

Answered by kernc
DBruV asked this question in Q&A
Discussion options

You must be logged in to vote

Bactest.optimize(constraint=) function can be arbitrarily complex:

stats = bt.optimize(
    ...,
    constraint=lambda param: (param.Fema_len < param.Sema_len and 
                              param.Sema_len < param.Lema_len)
)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by DBruV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants