Software for well production conditions optimization