Rule Based Power Systems