Optimising an investment portfolio
How should a portfolio of ASX shares be built under risk limits, and does the modelling approach change the answer?
At a glance
What the project found.
- 1.85%monthly return at 4.47% risk (nonlinear)
- 1.76%at 5.03% risk (linear)
- 71.5%of capital in two holdings
Outcome and recommendation
The nonlinear model gave the best trade-off: a 1.85% expected monthly return at 4.47% risk, against 1.76% at 5.03% for linear programming and 1.08% at 3.51% for integer programming. I recommended it with caveats: 71.5% of capital sits in two holdings, the estimates rest on only 48 months of data, and the answer is sensitive to the risk-free rate.
What I did
Picked nine ASX stocks across healthcare, financial services and materials, and grouped them into three risk tiers using monthly returns from January 2022 to January 2026. I then solved the same problem three ways in Excel Solver: linear programming (maximise return under risk, sector and capital limits), integer programming (hold exactly six assets) and nonlinear programming (maximise the Sharpe ratio).
Methods
Linear, integer and nonlinear programming, Excel Solver, sensitivity analysis
Explore it
Same nine stocks, three ways to choose.
Start with how the stocks move together, then compare what each model chose and why. Hover, tap or use the buttons.
1. How the stocks move together
Each cell is the correlation of monthly returns, January 2022 to January 2026. Blue cells offset each other; warm cells move together. Correlation, not return alone, is what the nonlinear model used.
Why it matters: the nonlinear model gave MPL 37% and SUN only 8%, even though SUN returned slightly more. MPL’s correlation with PME is −0.05 against +0.44 for SUN, so MPL hedges the big PME holding.
2. What each model chose
LP, ILP and NLP are shown exactly as reported. “Live optimiser” re-solves the nonlinear model in your browser, so you can change the risk-free rate.
3. Risk against return
Every grey dot is a random long-only portfolio of the same nine stocks. The three reported models sit inside that cloud; the Sharpe-maximising mix sits where a line from the risk-free rate just touches its upper edge.
Method and limits
What this page is, and is not.
The data
Average monthly return, standard deviation and the 9×9 covariance matrix for nine ASX stocks across three sectors, from my submitted MIS275 report. The covariances are printed there to four decimals, and that rounded matrix is what this page uses.
How the live optimiser works
The report solved the models in Excel Solver. This page re-solves the Sharpe-maximising model by testing every possible set of held stocks (511 of them) and keeping the best long-only answer. Against the report it reproduces the risks of LP and ILP (5.03% and 3.51%), the PME–MPL correlation (−0.05) and the zero-rate case, where PME falls to about 21%.
Limits
- 54 parameters (9 returns, 45 covariances) are estimated from only 48 months.
- PME’s 3.58% average monthly return is unlikely to persist, yet it drives about a third of the NLP mix.
- Mean–variance ignores skew and assumes past covariances hold.
- 71.5% of NLP capital sits in two stocks. A classroom exercise, not investment advice.
Need a decision modelled before you commit?
Optimisation and scenario models are one of the services offered through Corridor Analytics.