本帖最后由 candyisqu 于 2010-3-26 09:10 编辑 6 m0 J- u# f5 S, O6 I3 V5 I
. w* r( @* S9 _" b5 U
本人因毕业论文需要 建立一个遗传模块与仿真模型结合的eM-Plant模型 可每次按GAwizard中的reset 其中的适应度函数 总提示不对: Left and right sides of the assignment are incompatible. 还有这个a := executeSilent(":any is do return calculateFitness;end;"); -- type "any" * `. A% j/ Q, I# r请求大侠指点1 a4 o! i& j+ M1 p$ a
迷经 毕业论文啊
我的适应度函数是:for i:=1 to 25 loop * t2 }2 I; b2 g) B5 I alltime:=i+Plantable[13,i]-Plantable[3,i]; & M; x G r- L) S6 F: s5 W next;7 V2 h8 d) c4 }3 t! k6 K' ^7 h1 D
result:=alltime;4 I5 q3 \, |0 `% u, k
还提示 unknown identifier Plantable ,Plantable存放的是每次遗传算法的个体在仿真模型中运行结束后得到的时间表 是tablefile类型的