Classical and Modern Optimization Techniques Applied to Control and Modeling