A portfolio selection problem changes each time expected returns and risk estimates are updated. Yesterday's portfolio may be a good starting point for today's calculation, but retaining it is a different decision from finding the best portfolio for the new estimates. Transaction costs make that distinction explicit.

A binary selection model that includes trading costs

Let xi indicate whether asset i is selected, and let yi record its previous selection. A simple cardinality-constrained model minimizes λ xTΣ x − μTx + c ∑i |xi − yi|, with ∑i xi = k. The covariance term represents risk, μ represents expected returns, and c is a cost per change in selection. Since y is fixed, |xi − yi| = yi + (1 − 2yi)xi. The turnover term is linear in the new decision and needs no extra variables.

For equal-weight portfolios with fixed cardinality, replacing one asset changes two indicators. In a more detailed trading model, position sizes, fees and market impact would require additional terms. The simplified objective is useful for understanding the selection decision.

For fixed equal-weight cardinality, the factors 1/k and 1/k2 from return and variance can be absorbed into their coefficients.

Illustration: standalone Python calculation.

from itertools import combinations
old={0,1}
score=[8,6,7,1]
def value(s,c):
    return sum(score[i] for i in s)-c*len(s^old)
choices=[set(s) for s in combinations(range(4),2)]
assert max(choices,key=lambda s:value(s,0))=={0,2}
assert max(choices,key=lambda s:value(s,1))==old

In this illustrative calculation the new scores favor replacing an asset if trading is free. Charging a cost for each selection change makes retaining the original pair preferable. The scores are arbitrary objective units.

A warm start and a turnover cost solve different problems

A warm start is a computational starting point. The solver remains free to find another portfolio. The turnover term changes the mathematical objective itself. It represents an economic preference for continuity. Use one or both depending on the question being studied. If the universe of eligible assets changes, check that yesterday's selection can be mapped to today's model and still satisfies its constraints.

Evaluate the complete sequence of decisions

For an experiment, generate a sequence of dated estimates using information that was available at each date. Solve the same model with a cold start and with a warm start, using matched search budgets. Record the objective of the starting selection under the new coefficients, the best feasible objective reached, the time to a specified target and the turnover. Small instances admit enumeration as an independent reference. A larger study needs a defensible bound or a documented best-known reference.

An interesting result is whether previous decisions help the search reach useful solutions sooner, and whether including transaction costs produces a more stable sequence of portfolios.

Model repeated binary portfolio selections with the 4colors Optimizer for QUBO.