ه) تابع عضویتyesterday.actual.load
تابع بار روز قبل شامل ۸ پارامتر می باشد که در ذیل آمده است:
v.low (very low)
low
sub.norm
mod.norm
norm
ab.norm (above normal)
high
v.high (very high)
تابع عضویت yesterday.actual.loadبه صورت زیر طراحی شده است:
شکل ۴-۶) تابع عضویت yesterday.actual.load
ی) تابع خروجی تحت عنوان load.forecasting
این تابع شبیه تابع actual.loadyesterday.شامل ۸ پارامترمی باشد که نمای آن در ذیل آمده است.
شکل ۴-۷) تابع خروجی load.forecasting
۴-۱-۳) شاخت قواعد با شناخت از مجموعه های فازی
هدف ما در این مرحله این است که از اصطلاحات زبان شناختی و مبهمی که به عنوان پارامتر در مرحله قبل تعریف شدند به عنوان جانشینی برای فرمول های ریاضی به منظور ساخت قواعد اگر آنگاه فازی استفاده کنیم. به دلیل اینکه از روش ممدانی استفاده می کنیم این قواعد موافق با زبان و فهم طبیعی انسان ها می باشد و در واقع ساخته ذهن انسان و تجربه افراد ماهر است.
قاعده های استفاده شده برای این برنامه در ادامه آمده است. باید متذکر شویم که همه قاعده ها دارای ارزش وزنی برابر هستند و در نتیجه گیری کلی هیچکدام نسبت به دیگری برتری ندارد.
قواعد برنامه جهت پیش بینی بار:
در این پروژه قواعد به صورت زیر تعریف شده است:
۱.if(Time is mid.night) and (special.days is Normal-load) and )yesterday.actual.load is low) then (load.forecasting is low)
۲.if(Time is dusk) and (Weekdays is days) and (Temperature is ab.nor) and (special.days is Normal-load ) and (yesterday.actual.load is v.high) then(load.forecasting is v.high)
۳.if(Time is dusk) and (Weekdays is days) and (Temperature is bel.nor) and (special.days is Normal-load ) and (yesterday.actual.load is sub.norm) then(load.forecasting is sub.norm)
۴.if(Time is A.noon) and (Weekdays is days) and (Temperature is high) and (special.days is Normal-load ) and (yesterday.actual.load is v.high) then(load.forecasting is v.high)
۵.if(Time is F.noon) and (Weekdays is days) and (Temperature is high) and (special.days is Normal-load) and (yesterday.actual.load is v.high) then(load.forecasting is v.high)
۶.if(Time is morn) and (Weekdays is days) and (Temperature is ab.nor) and (special.days is (special.days is Normal-load )) and (yesterday.actual.load is high) then(load.forecasting is high)
۷.if(Time is evan) and (Weekdays is days) and (Temperature is high) and (special.days is (special.days is Normal-load ) and (yesterday.actual.load is v.high) then(load.forecasting is v.high)
۸.if(Time is night) and (Weekdays is days) and (Temperature is ab.nor) and (special.days is (special.days is Normal-load ) and (yesterday.actual.load is high) then(load.forecasting is high)
۹.if(Time is mid.night) and (Weekdays is days) and (Temperature is ab.nor) and (special.days is (special.days is Normal-load ) and (yesterday.actual.load is high) then(load.forecasting is high)
۱۰.if(Time is dawn) and (Weekdays is days) and (Temperature is ab.nor) and (special.days is (special.days is Normal-load ) and (yesterday.actual.load is high) then(load.forecasting is high)
.
.
..
.
۱۹۵.if(Time is morn) and (Weekdays is not days) and (Temperature is nor) and (special.days is high-load) and (yesterday.actual.load is sub.nor) then (load.forecasting is mod.norm)
۱۹۶.if(Time is morn) and (Weekdays is days) and (Temperature is nor) and (special.days is low-load) and (yesterday.actual.load is low) then (load.forecasting is v.low)
۱۹۷.if(Time is morn) and (Weekdays is days) and (Temperature is nor) and (special.days is high-load) and (yesterday.actual.load is low) then (load.forecasting is sub.norm)
۱۹۸.if(Time is F.noon) and (Weekdays is days) and (Temperature is nor) and (special.days is high-load) and (yesterday.actual.load is low) then (load.forecasting is sub.norm)
۱۹۹.if(Time is F.noon) and (Weekdays is days) and (Temperature is nor) and (special.days is low-load) and (yesterday.actual.load is sub-norm) then (load.forecasting is low)
۲۰۰.if(Time is F.noon) and (Weekdays is days) and (Temperature is nor) and (special.days is high-load) and (yesterday.actual.load is sub.norm) then (load.forecasting is mod.norm)
۲۰۱.if(Time is dusk) and (Weekdays is days) and (Temperature is nor) and (special.days is high-load) and (yesterday.actual.load is sub.norm) then (load.forecasting is mod.norm)
۲۰۲.if(Time is dusk) and (Weekdays is days) and (Temperature is nor) and (special.days is high-load) and (yesterday.actual.load is sub.norm) then (load.forecasting is mod.norm)
۲۰۳.if(Time is night) and (Weekdays is not days) and (Temperature is nor) and (special.days is low-load) and (yesterday.actual.load is sub.norm) then (load.forecasting is low)
در ادامه کلیه قواعد فازی برنامه در قالب سمبلهای تعریف شده در جدول( ۴-۷) کدگذاری شده است.
جدول۴-۱ )سمبل تابع دما جدول۴-۲)سمبل تابع زمان جدول۴-۳) سمبل تابع بار روز قبل
function |