Gas flaring system design and optimization with commercial s