Skip to content

How to return weights instead of binary numbers for PortfolioOptimizer #421

Open
@athanzxyt

Description

@athanzxyt

Hello,

I understand that the PortfolioOptimizer in Qiskit Finance/Optimization can solve quadratic programs such as minimum variance. Following the Qiskit Optimization tutorial. However, it returns binary integers on whether or not to select a stock. How do I change the class code to return a weight that each stock should hold within the portfolio?

https://qiskit.org/documentation/finance/tutorials/01_portfolio_optimization.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions