{"repo":"dwave-examples/portfolio-optimization","free":true,"listed":false,"github":"https://github.com/dwave-examples/portfolio-optimization","clone":"git clone https://github.com/dwave-examples/portfolio-optimization.git","description":"Solve different formulations of the portfolio optimization problem.","language":"Python","stars":58,"topics":["dqm","cqm","finance","hybrid-solution","advanced"],"license":"Apache-2.0","category":"deployment-docker-iac","readme_excerpt":"Portfolio Optimization Optimizing a portfolio of stocks is a challenging problem that looks to identify the optimal number of shares of each stock to purchase in order to minimize risk (variance) and maximize returns, while staying under some specified spending budget. Installation You can run this example without installation in cloud-based IDEs that support the Development Containers specification (aka \"devcontainers\") such as GitHub Codespaces. For development environments that do not support devcontainers , install requirements: If you are cloning the repo to your local system, working in a virtual environment is recommended. Usage This demo can be run with a browser interface, as seen in the screenshot above, or entirely through the command line. Run with Interface Your development environment should be configured to access the Leap&trade; Quantum Cloud Service. You can see information about supported IDEs and authorizing access to your Leap account here. Run the following terminal command to start the Dash app: Access the user interface with your browser at http://127.0.0.1:8050/. The demo program opens an interface where you can configure problems and submit these problems to a solver. Configuration options can be found in the demo configs.py file. [!NOTE]\\ If you plan on editing any files while the app is running, please run the app with the --debug command-line argument for live reloads and easier debugging: python app.py --debug Run Through CLI Single-Period The sin","default_branch":null,"files":null,"tree":[],"storefront":"/r/dwave-examples","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dwave-examples/portfolio-optimization/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}