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

Extend PortfolioOptimization to support integer variables #57

Merged
merged 13 commits into from
Jun 18, 2021

Conversation

a-matsuo
Copy link
Contributor

Summary

Resolves #54.

Details and comments

Currently, PortfolioOptimization supports only binary variables which means we can only chose whether we buy an asset or not. The PR extends PortfolioOptimization to support integer variables. So, now, we can decide how many asset we buy instead of just tow choices, buy or not.

stefan-woerner
stefan-woerner previously approved these changes Jun 10, 2021
Copy link
Contributor

@stefan-woerner stefan-woerner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@woodsp-ibm
Copy link
Member

Since this is a new feature for PortfolioOptimization can we add a reno for this please.

@a-matsuo
Copy link
Contributor Author

@woodsp-ibm Thank you always for helpful comments. I fixed _check_compatibility and the error message. I also added reno (I often forget about it). Could you please review the PR again?

Copy link
Member

@woodsp-ibm woodsp-ibm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just fixed a minor thing in reno to make 'assets' plural as it reads easier like that.

All looks good now. Thanks

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 this pull request may close these issues.

Generalize asset holdings from binary to integer
3 participants