1. A method of optimizing production in a well, comprising: operating an artificial lift system in a wellbore; monitoring a plurality of production parameters at the surface; monitoring a plurality of downhole parameters in the wellbore; evaluating measured data derived from the plurality of production parameters and the plurality of downhole parameters according to an optimization model; and adjusting operation of the artificial lift mechanism based on the automatic evaluation.