Optimize structure from input series which suppose nonlinear inner product function and illegal structures are categorized. This library is moderately withered.