Oddman answered This page has a pretty good explanation and some diagrams describing profit maximization.There are several ways you can measure efficiency. This page may be a good place to start.