Incorporate spatial classification capability into the OPF