testing gigawatt/Chida's optimization