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

Investigate the use of Generic when constructing an optimization problem #5

Closed
S-Dafarra opened this issue Apr 6, 2023 · 1 comment · Fixed by #7
Closed

Investigate the use of Generic when constructing an optimization problem #5

S-Dafarra opened this issue Apr 6, 2023 · 1 comment · Fixed by #7
Assignees

Comments

@S-Dafarra
Copy link
Member

S-Dafarra commented Apr 6, 2023

@diegoferigo mentioned to use generics for better static typing and for having autocompletion when getting a specific structure as input and output.

Related comments:

Reference: https://mypy.readthedocs.io/en/stable/generics.html

@S-Dafarra
Copy link
Member Author

I have done it in 8c10698

For the time being, I just focused on the Problem interface, which is the one used by the user. I did not apply it to the Solver interfaces for ease of use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant