OnWorks favicon

PortOpt download for Linux

Free download PortOpt Linux app to run online in Ubuntu online, Fedora online or Debian online

This is the Linux app named PortOpt whose latest release can be downloaded as portopt_1_2_windows.zip. It can be run online in the free hosting provider OnWorks for workstations.

Download and run online this app named PortOpt with OnWorks for free.

Follow these instructions in order to run this app:

- 1. Downloaded this application in your PC.

- 2. Enter in our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.

- 3. Upload this application in such filemanager.

- 4. Start the OnWorks Linux online or Windows online emulator or MACOS online emulator from this website.

- 5. From the OnWorks Linux OS you have just started, goto our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.

- 6. Download the application, install it and run it.





PortOpt [Portfolio Optimizer] is a C++ program (with Python binding) implementing the Markowitz(1952) mean-variance model with agent's linear indifference curves toward risk in order to find the optimal assets portfolio under risk.

You have to provide PortOpt (in text files or - if you use the api - using your own code) the variance/covariance matrix of the assets, their average returns and the agent risk preference.

It returns the vector of assets' shares that composes the optimal portfolio.

In order to minimise the variance it internally uses QuadProg++, a library that implement the algorithm of Goldfarb and Idnani for the solution of a (convex) Quadratic Programming problem by means of an active-set dual method. This solution is very efficient as it allows to solve hundred of thousand of portfolio problems in seconds.

PortOpt runs as a text/console tool so it can be easily used in your own scripts.


Financial and Insurance Industry, Science/Research, Developers, Management

User interface


Programming Language



Investment, Mathematics

This is an application that can also be fetched from https://sourceforge.net/projects/portopt/. It has been hosted in OnWorks in order to be run online in an easiest way from one of our free Operative Systems.