Optimal control in renewable resources modeling