A Complementarity Algorithm for an Optimal Capital Path with Invariant Proportions