Chapter 4. Direct Optimization Formulations