gusucode.com > 改进的遗传算法的课表编排功能matlab源码程序 > 改进的遗传算法的课表编排功能/改进的遗传算法的课表编排功能/排课/bianma1.m
function y=bianma1(r,T,t) %编码器 if r==1&T==1 Z=2; elseif r==1&T>1 Z=1; elseif r>1&T==1 Z=1; else Z=0; end y=6440*(r-1)+40*(T-1)+t-Z;