Digital solution of load flow optimal load flow and static estimation problems in ill conditioned power systems