无法在运行Windows 10的64位处理器PC上使用Netlogo 6.0.1和Mathematica 11.1之间的链接 [英] Unable to use link between Netlogo 6.0.1 and Mathematica 11.1 on a 64 bit processor pc running Windows 10

查看:90
本文介绍了无法在运行Windows 10的64位处理器PC上使用Netlogo 6.0.1和Mathematica 11.1之间的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在具有64位处理器运行窗口10的PC上运行mathematica-netlogo链接.Netlogo和Mathematica的版本分别为6.0.1和11.1 Student Edition.

I am unable to run the mathematica-netlogo link on my PC with a 64 bit processor running window 10. The versions of Netlogo and Mathematica are 6.0.1 and 11.1 Student Edition respectively.

使用提供的Netlogo目录路径作为该函数的输入运行函数"NLStart []"时,会出现错误.错误消息如下:

The error arises when the function "NLStart[]" is run with the path of the Netlogo directory provided as an input to this function. The error message is as follows:

NLStart :: netlogonotfound:在以下位置找不到NetLogo:C:\ Program Files \ NetLogo 6.0.1 \

NLStart::netlogonotfound: NetLogo could not be found in: C:\Program Files\NetLogo 6.0.1\

在此步骤之前,我成功加载了NetLogo Mathematica链接包.

Prior to this step, I successfully loaded the NetLogo Mathematica link package.

任何克服该问题的有用建议.

Any helpful suggestions to overcome this issue will be appreciated.

谢谢.

推荐答案

我刚刚确认我可以通过以下配置使用NetLogo Mathematica Link:

I've just verified I was able to use NetLogo Mathematica Link with the following configuration:

  • Mathematica 11.1.0.0
  • NetLogo 6.0.1 64位
  • Windows 10 64位

我的Mathematica安装和NetLogo安装均未受影响-我没有为NetLogo 6.0.1安装Mathematica Link 6.0修补程序.另外,NetLogo 6.0.1安装在"C:\ Program Files \ NetLogo 6.0.1"中(某些用户选择安装到其他目​​录,或者其主驱动器不带"C:"字母).

My Mathematica installation was untouched, as was my NetLogo installation - I did not have the Mathematica Link 6.0 hotfix installed for NetLogo 6.0.1. Also, NetLogo 6.0.1 was installed in "C:\Program Files\NetLogo 6.0.1" (some users choose to install to a different directory, or their primary drive is not lettered with "C:").

我打开Mathematica并运行以下命令:

I opened Mathematica and ran the following commands:

  • 文件>安装>键入:包,源:从文件,文件:C:\ Program Files \ NetLogo 6.0.1 \ Mathematica Link \ NetLogo.m,安装名称:NetLogo,仅为此用户安装.请注意,选择此文件时,Mathematica将使用您打开的最后一个目录,因此,在打开文件对话框时,首先导航至驱动器顶部,然后向下导航至NetLogo 6.0.1(使用旧版本的NetLogo.m文件). NetLogo版本几乎肯定会中断Mathematica链接,这是一个很容易犯的错误.
  • 在笔记本中输入(无法对此代码进行阻止):<< NetLogo`
  • 在笔记本中输入:NLStart["C:\\Program Files\\NetLogo 6.0.1"](请注意两个反斜杠,没有尾随反斜杠).
  • 稍有延迟(取决于您的系统速度和内存),NetLogo窗口将打开
  • File > Install > type: Package, source: From File, file: C:\Program Files\NetLogo 6.0.1\Mathematica Link\NetLogo.m, install name: NetLogo, install for this user only. Note that when selecting this file, Mathematica will use the last directory you opened, so when the file dialog opens, first navigate to the the top of the drive then navigate down to NetLogo 6.0.1 (using a NetLogo.m file from an older NetLogo version will almost certainly break Mathematica link, and this is a very easy mistake to make).
  • Entered in the notebook (cannot code block this): <<NetLogo`
  • Entered in the notebook: NLStart["C:\\Program Files\\NetLogo 6.0.1"] (note the double backslashes and no trailing backslash).
  • The NetLogo window will open after a slight delay (depending on your system speed and memory)

如果您已按照这些步骤操作,但仍无法打开Mathematica Link,请发表评论,我们将继续进行故障排除.

If you've followed these steps and are still unable to open Mathematica Link, please comment and we can continue to troubleshoot.

我想为以后的读者巩固故障排除步骤.我介绍了新版本的NetLogo.m,可在此处,用户应下载该文件以进行故障排除(它将与NetLogo的将来版本一起分发).使用此步骤的一些步骤:

I wanted to consolidate troubleshooting steps for future readers. I've introduced a new version of NetLogo.m available here, which users should download for troubleshooting purposes (it will be distributed with future versions of NetLogo). Some steps to using this:

  1. Mathematica将缓存旧的"NetLogo.m"文件.您可以通过在Mathematica中使用以下命令找到这些缓存的位置:

  1. Mathematica will cache old "NetLogo.m" files. You can find where these caches are by using the following commands in Mathematica:

  • FileNameJoin[{ $BaseDirectory, "Applications" }]
  • FileNameJoin[{ $UserBaseDirectory, "Applications" }]
  • FileNameJoin[{ $BaseDirectory, "Applications" }]
  • FileNameJoin[{ $UserBaseDirectory, "Applications" }]

访问在步骤1中获得的目录,并从其中删除所有"NetLogo.m"文件.

Visit the directories obtained in Step 1 and delete all "NetLogo.m" files from them.

这篇关于无法在运行Windows 10的64位处理器PC上使用Netlogo 6.0.1和Mathematica 11.1之间的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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