A-KA Model: an Optimization of the Stock's Portfolio