beginning of stochastic
kkt model formulation for invest
p_lin off