Mmp Modeling And Optimization Of Photonic Crystals, Optical Devices, And Nanostructures