I'm not sure what a Sharp is, but suppose you mean the Sharpe ratio. It is no training objective and not "per-trade". You can look up the Sharpe formula in Wikipedia and the OptimalF formula in Ralph Vince's paper. It's there better explained than I could do it. Both are absolutely "conventional" and used in many trading platforms. Read their descriptions and if then still something is unclear, just ask.