General optimization of brick hardness