设为首页收藏本站

最大的系统仿真与系统优化公益交流社区

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7664|回复: 1

[求助] 编程遇到困难 请帮助

[复制链接]
发表于 2016-11-26 10:34:58 | 显示全部楼层 |阅读模式
to meet-wolf;; wolf procedure
2 I) [4 s5 C' T+ h  L7 Z( |  if count wolves-here >  0           1 x0 P5 B* _2 i$ q5 T+ w
  [let otherwolf one-of other wolves-here                     2 _4 K/ E( M  N2 y- P4 N' l
    if abs ([k1] of self - [k1] of otherwolf ) > value-k1
& Q2 T$ N" A( R1 K8 ]2 y   ]
9 c7 Z1 l3 b: G' W2 N% N# I; a7 o! j1 U   [ set  [k1] of self [k1] of self + [k1] of otherwolf * z0 {1 G; _, S2 P: K
   ]
0 H1 [9 Y& V9 h9 d5 O2 D5 y. S     end
2 X/ R# W8 B, N7 B显示otherwolf没有被定义,请各路大神帮忙调整通顺
发表于 2016-12-14 14:58:49 | 显示全部楼层
应该是other wolf,,,吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|SimulWay 道于仿真   

GMT+8, 2026-4-29 07:55 , Processed in 0.018251 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表