auto generate and run optimal-regenerator networks