gabpEval.m
资源名称:GA-bp.rar [点击查看]
上传用户:szhysm888
上传日期:2008-07-11
资源大小:35k
文件大小:0k
源码类别:
人工智能/神经网络
开发平台:
Matlab
- % 遗传算法的适应值计算
- function [sol, val] = gabpEval(sol,options)
- % val - the fittness of this individual
- % sol - the individual, returned to allow for Lamarckian evolution
- % options - [current_generation]
- [P,T,R,S1,S2,S]=nninit;
- for i=1:S,
- x(i)=sol(i);
- end;
- [W1, B1, W2, B2, P, T, A1, A2, SE, val]=gadecod(x);