Design and optimization of sustainable systems