Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support to different types of Fitness Decorators #48

Open
eduardo-imadeira opened this issue Mar 14, 2024 · 0 comments
Open

Support to different types of Fitness Decorators #48

eduardo-imadeira opened this issue Mar 14, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@eduardo-imadeira
Copy link
Collaborator

We support multiples Fitness Decorators in a single function for example:

@minimize( ... )
@minimize( ... )
def f (i: Int) : Int { (?hole:Int) }

but we only support multiples fitness decorators if they are of the same kind.
@minimize with @minimize or @multi_minimize, and vice versa. And the same appends for the @maximize and @multi_maximize decorators.

we would like to support multiples fitness decorators with different kinds, for examples:

@minimize( ... )
@maximize( ... )
def f (i: Int) : Int { (?hole:Int) }

this can be done by adding support to the unary negation operator ( - ) that produces the negative of its operand, and using that operator to negate the value of the @maximize and @multi_maximize decorators during the process of decorators resolution.

@eduardo-imadeira eduardo-imadeira added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant