Static Optimization and Dynamic Modeling of Microalgae Production in Photobioreactors