In this work, self-consistent calculations of semiconductors band structure and genetic algorithm method are used to design semiconductor nanostructures. In special, we calculate the band structure of semiconductors nanostructures including contact layers, which are frequently neglected.