A stochastic portfolio optimization model with complete memory | Synapse