Lattice parameter optimization

Hi Everyone,

I am trying to optimize the lattice parameters of CuO. Since there are 4 parameters to be optimized, I was wondering if anyone could assist me with a script that can perform this task so that I don't have to do it manually.

Thank you so much!