Heuristics as an alternative to variational calculus for optimization of a class of thermal insulation systems