Design And Optimization Of Active Microarchitectured Metamaterials