设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7673|回复: 1

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

[复制链接]
发表于 2016-11-26 10:34:58 | 显示全部楼层 |阅读模式
to meet-wolf;; wolf procedure
( _* W$ d8 q7 W7 W- K3 p+ q  if count wolves-here >  0           / u  K4 F) g( Y' d
  [let otherwolf one-of other wolves-here                     ' I; V7 d5 o& F3 u: H- T7 r, x
    if abs ([k1] of self - [k1] of otherwolf ) > value-k1
8 E; E4 a3 v, J  K0 P1 H" {   ]. v8 u& N* c: ~9 H$ k  [  s
   [ set  [k1] of self [k1] of self + [k1] of otherwolf 5 h: C" O  d% s5 D* A6 ^6 J
   ]
7 O. ]* e5 _) a4 ~; W     end) U0 Q# a% s$ D& ]$ @  o
显示otherwolf没有被定义,请各路大神帮忙调整通顺
发表于 2016-12-14 14:58:49 | 显示全部楼层
应该是other wolf,,,吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-4-30 20:34 , Processed in 0.016135 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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