Simulation 脸和脸的区别是什么?

Simulation 脸和脸的区别是什么?,simulation,netlogo,multi-agent,Simulation,Netlogo,Multi Agent,我在NetLogo中使用了face,没有任何问题,但是对来说不是一样吗?(在代理朝向补丁/代理方向的情况下) 是否存在使用设置为标题优于使用面的场景? 只报告标题 是相似的,并结合成一个 在什么情况下,你想知道朝着某件事情的方向而不去面对它?我相信你能想到很多。一个例子是根据一些标准在两个可能的标题之间进行选择 假设你想面对两个代理人中的一个,无论哪一个要求你转向最少的金额: let first-heading towards first-agent let second-heading to

我在NetLogo中使用了face,没有任何问题,但是来说不是一样吗?(在代理朝向补丁/代理方向的情况下)

是否存在使用设置为标题优于使用的场景?

  • 只报告标题
  • 是相似的,并结合成一个
在什么情况下,你想知道朝着某件事情的方向而不去面对它?我相信你能想到很多。一个例子是根据一些标准在两个可能的标题之间进行选择

假设你想面对两个代理人中的一个,无论哪一个要求你转向最少的金额:

let first-heading towards first-agent
let second-heading towards second-agent

; compare my current heading to the two calculated headings:
let first-angle subtract-headings heading first-heading
let second-angle subtract-headings heading second-heading

if-else abs first-angle < abs second-angle
  [ rt first-angle ]
  [ rt second-angle ]
让第一个指向第一个代理
让第二个走向第二个代理
; 将当前标题与两个计算标题进行比较:
让第一个角度减去第一个航向
让第二个角度减去第二个航向
否则abs第一角度

(在现实生活中,你可能会做一些不同的事情,但我希望这能说明问题所在。)

我明白了。我被“朝向…”上下文中“朝向”的用法吸引住了,这就是为什么我一直把它比作“脸”。我现在明白了。非常感谢。
let first-heading towards first-agent
let second-heading towards second-agent

; compare my current heading to the two calculated headings:
let first-angle subtract-headings heading first-heading
let second-angle subtract-headings heading second-heading

if-else abs first-angle < abs second-angle
  [ rt first-angle ]
  [ rt second-angle ]