Neural network-based surrogate modeling and optimization of a multigeneration system | Synapse