Added documentation for the optimization demo