Minor fixes to optimizationnotebooks