The design of penalty based on the global criteria was adapted from Schreck et al. For a reaction pathway, penalties were added to the reactions and the building block molecules. For any reaction or building block molecule in the pathway, the penalty was designed to be lower than 1. The penalty of a reaction is shown in Eq. 1.