Code is working, using nlopt engine. Need to implement more constraints where symmetry equivalent atoms are constrained to have the same charge