尝试运行无头的BehaviorSpace时出错 [英] Error trying to run headless BehaviorSpace

查看:72
本文介绍了尝试运行无头的BehaviorSpace时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我觉得我必须为这样的基本问题道歉,但是尝试在无头模式下运行BehaviorSpace实验却出现错误.我尝试从命令行运行自己的模型实验,但出现了错误.因此,我然后尝试按照BehaviorSpace文档上的确切说明进行操作.为此,我在Fire.nlogo模型中创建了一个名为"experiment1"的BehaviorSpace实验(请参见屏幕截图),然后尝试执行命令以从命令行运行Experiment1.终端的屏幕截图显示,我首先设置了安装NetLogo 5.3的目录,然后尝试运行BehaviorSpace文档中的命令.终端的屏幕截图还显示了我得到的Java错误.我以前从未使用过该终端,也不确定自己在做什么错,但是我确信自己缺少一些简单的东西.

I feel I must apologize for such a basic question, but I am getting an error simply trying to run BehaviorSpace experiments in headless mode. I tried running my own model experiments from the command line, but got an error. So I then tried following the exact instructions on the BehaviorSpace documentation. To do this, I created a BehaviorSpace experiment in the Fire.nlogo model called "experiment1" (see screen shot) and then tried to execute commands to run experiment1 from the command line. The screen shot of the terminal shows that I first set the directory where I have NetLogo 5.3 installed, and then tried to run the commands from the BehaviorSpace documentation. The screen shot of the terminal also shows the Java error I am getting. I have never used the terminal before and am not sure what I am doing wrong, but I am sure I am missing something simple.

我正在使用Mac OS X和NetLogo 5.3.感谢您的时间.

I am using Mac OS X and NetLogo 5.3. Thank you for your time.

推荐答案

问题是NetLogo随附的Java文件是.jar文件和lib文件所在的位置.因此,在下面的代码中简单地添加Java/就可以找到所有文件.

The problem is that the Java file that comes with NetLogo is where the .jar file and lib file are located. Hence, a simple addition of Java/ in the below code allows all files to be found.

java -Xmx1024m -Dfile.encoding=UTF-8 -cp Java/NetLogo.jar \
  org.nlogo.headless.Main \
  --model Fire.nlogo \
  --experiment experiment1 \
  --table mytable.csv

这篇关于尝试运行无头的BehaviorSpace时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆