Beam optimisation must meet codes that describe allowable spans and requirements for proper holding, and weight and span requirements.
https://www.4shared.com/s/fVv50n3Nljq
Beam sizing must satisfy weight and stretch specifications, according to codes that describe acceptable spans, and correct holding and connections at supports.