本帖最后由 candyisqu 于 2010-3-26 09:10 编辑 . F) P. W# h# p x D P7 e$ K i 9 H7 ^$ a5 p ]- \& W s$ H本人因毕业论文需要 建立一个遗传模块与仿真模型结合的eM-Plant模型 可每次按GAwizard中的reset 其中的适应度函数 总提示不对: Left and right sides of the assignment are incompatible. 还有这个a := executeSilent(":any is do return calculateFitness;end;"); -- type "any"( \+ G3 ]% `" G. Y& \+ |+ T
请求大侠指点 0 i: m, r+ y# X& z7 r迷经 毕业论文啊
我的适应度函数是:for i:=1 to 25 loop9 D! R. o) {+ X( c1 B6 y( `- m/ M
alltime:=i+Plantable[13,i]-Plantable[3,i];$ s' Z. s7 i3 |, N i- M
next; 2 A' K0 x0 W0 a+ k: A result:=alltime; $ m# n' P/ }1 N9 c( T$ }还提示 unknown identifier Plantable ,Plantable存放的是每次遗传算法的个体在仿真模型中运行结束后得到的时间表 是tablefile类型的