Topology optimization methods for inverse design of nano-photonic systems have recently become extremely popular and are presented in various forms under names. Approaches comprise gradient non-gradient based algorithms combined with more or less systematic ways to improve convergence, discreteness solutions satisfaction manufacturing constraints. We here provide a tutorial the efficient struct...