Artificial intelligence applied to Portfolio Selection