多主体仿真平台.pptVIP

  • 9
  • 0
  • 约5.65千字
  • 约 44页
  • 2023-08-24 发布于广东
  • 举报
绘制turtles数量和青草数量曲线 添加Plot控件 创建两个画笔,分别指定颜色 添加do-plots例程 修改 setup和go例程 第二十九页,共四十四页,2022年,8月28日 to setup clear-all setup-patches setup-turtles do-plots ;;绘制初始点 end to go move-turtles eat-grass reproduce check-death regrow-grass do-plots ;;随仿真运行绘制图形 end to do-plots set-current-plot “totals” ;;选定plot控件 set-current-plot-pen “turtles” ;;选定画笔turtles plot count turtles ;;绘制turtles数量 set-current-plot-pen “grass” ;;选定画笔grass plot count patches with [pcolor=green] ;;绘制青草数量 end 第三十页,共四十四页,2022年,8月28日 7.仿真参数控制 参数控

文档评论(0)

1亿VIP精品文档

相关文档