Optimization in a Class of Distributed-Parameter Systems