Optimize: First, the manager must decide which players to put in starting lineup. First, he tries to assign best players to their primary positions. Then, he scans remaining bench to find players that are eligible to player open positions. If gaps remain, the manager fills the open positions by evaluating players using the defensive spectrum.
Order: From there, the manager orders the lineup. He does this by focusing on the #3 and #4 hitters first, then the #1 and #2, then #5 and #6, then the #9, then the #8. Criteria for each slot varies, but is intuitive.