We introduce the general optimal stochastic control setting in the case of portfolio selection. We propose a two-step algorithm to solve the objective function. At the first step, we utilise the transformation from mean-variance portfolio selection …