Giới thiệu
NetLogo là một môi trường lập trình mô hình đa tác nhân, được thiết kế để mô phỏng các hiện tượng tự nhiên và xã hội. Phần mềm cho phép người dùng tạo ra các mô hình với hàng trăm hoặc hàng nghìn tác nhân hoạt động độc lập, giúp khám phá mối liên hệ giữa hành vi cá nhân và các mô hình tổng thể xuất hiện từ sự tương tác của họ.
NetLogo phù hợp cho việc học tập và nghiên cứu, giúp sinh viên, giáo viên và nhà phát triển giáo trình dễ dàng mở các mô phỏng có sẵn để khám phá hoặc tự tạo mô hình riêng. Phần mềm có tài liệu hướng dẫn chi tiết và thư viện mô hình phong phú trong nhiều lĩnh vực khoa học tự nhiên và xã hội.
Tính năng chính
- Mô phỏng đa tác nhân với khả năng điều khiển hành vi từng tác nhân độc lập.
- Thư viện mô hình phong phú trong các lĩnh vực như sinh học, vật lý, kinh tế, xã hội học.
- Môi trường lập trình đơn giản, phù hợp cho cả học sinh, giáo viên và nhà nghiên cứu.
- Hỗ trợ mở rộng và tùy biến mô hình theo nhu cầu người dùng.
- Chạy trên nhiều nền tảng nhờ Java Virtual Machine.
- Hỗ trợ thao tác dòng lệnh cho người dùng nâng cao.
Ai nên dùng
NetLogo phù hợp với sinh viên, giáo viên, nhà nghiên cứu và những người quan tâm đến việc mô hình hóa các hệ thống phức tạp trong khoa học tự nhiên và xã hội. Đây là công cụ hữu ích để học tập, giảng dạy và nghiên cứu các hiện tượng phát triển theo thời gian.
Cài đặt
- Bấm nút Tải về trên trang này để tải bộ cài gốc.
- Mở file .msi để bắt đầu quá trình cài đặt theo hướng dẫn trên màn hình.
- Hoàn tất cài đặt và khởi động NetLogo để sử dụng.
Lưu ý
NetLogo là phần mềm mã nguồn mở, miễn phí theo giấy phép GPL-2.0-or-later. Phần mềm yêu cầu Java Virtual Machine để chạy và hỗ trợ trên nhiều hệ điều hành phổ biến.
Có gì mới trong 7.0.4
New Features
- Users can now select a preferred code font (see the “Code” tab in the preferences)
- In addition to simply providing more flexibility, this is intended to provide a workaround for users who have reported that Chinese characters were not rendering in code on Windows
- Note that you can quickly search for a specific font by typing a subset of the font’s name after opening the dropdown
- NetLogo will now open the relevant help page in the bundled user manual PDF when an internet connection is not available
- The static HTML version of the manual will no longer be provided, since it mainly duplicates the content of the PDF
- NetLogo will still default to opening your browser to the latest docs on
docs.netlogo.org when an internet connection is available
- Exported BehaviorSpace experiments now record which version of NetLogo they were exported from
- NetLogo will now ask for confirmation if you are about to discard data from paused BehaviorSpace experiments (e.g. by closing the application or changing models)
Bugs Fixed
- Widgets
- Mouse cursor icons were sometimes failing to change appropriately when editing widgets
- Input widgets were getting set to the “String” type after being edited
- The text input on vertically-oriented sliders was not accepting clicks properly
- Plot pen code editors could “undo” into unexpected states
- Plot pen “update” code editors did not provide good scrolling
- The plot-level pen “update” code editors were not keeping their contents in-sync with their respective pen-level pen “update” code editor
- Plot code editors were closing on mouse-down (instead of mouse-up), reducing sensitivity to mouse movement and preventing abortive clicks
- Trying to save a plot with duplicated pen names could lead to multiple error dialogs
- The “Snap to grid” setting from the previous model was persisting when opening a new, empty model
- The plot editor’s display panel for runtime errors was displaying incorrectly
- When panning the 3D view widget, agents could be visible that should not have been, due to the topology
- The “forever” icon on buttons did not previously respond to zooming
- Clicking a slider widget would block the use of some other valid keyboard shortcuts
- Sliders could previously only handle span ranges of up to about 2e9 numbers, but can now span the full range of double-precision floating-point numbers (closer to a span of 3e308 values)
- Compilation errors were not being displayed within “Edit” dialogs for slider widgets
- Some widget types were not offering tooltips when title text was truncated by ellipses
- Button action keys now only work when the interaction tool is selected
- Making a selection box that intersected the view widget sometimes left erroneous vertical lines in the view
- Note widgets were not always using the correct font size when zoomed
- Sliders resized incorrectly when zoomed
- The arrow icon on chooser widgets failed to resize correctly when zoomed
- Editor
- The “Comment / Uncomment” action would previously only add ; to the beginning of the line, but now respects the pre-existing indentation of the text
- Using the “Comment / Uncomment” action on multiple lines of code was not being treated as a single action, with regards to “Undo”/“Redo”
- Only the main Code tab editor was allowing use of the keyboard shortcut for toggling the comment state of a line of code. Now it works in widgets too.
- __includes files were always being compiled on-save, unlike the main Code tab
- __includes files would display their compilation errors in the main Code tab
- __includes files would not update the name listed in their tab until hovered by the mouse
- __includes files, when saved on Windows, could produce duplicated tabs
- Extensions
- GoGo: The daemon process could erroneously continue running if NetLogo closed unexpectedly
- GoGo: The daemon process previously required a separate, manual installation of Java, but now simply reuses the one that ships with NetLogo
- Bitmap: Was not always notifying NetLogo of the need to perform a redraw after importing an image
- LevelSpace: Child models opened in separate code editor tabs could not be closed
- LevelSpace: The child model UI was not adapting to main application’s selected color theme
- Engine
- NetLogo was producing an error when the size of an agentset changed while that agentset was being iterated over
- NetLogo code that calculated an infinite/non-numeric result could result in the wrong error message
- resize-world was not resetting the tick counter
- BehaviorSpace
- BehaviorSpace was not giving early or informative errors, when the world dimension parameters were clearly invalid
- BehaviorSpace experiment selection was not being remembered, after editing that experiment
- BehaviorSpace experiment selection was not being remembered, after importing a new experiment
- The directory from which the last BehaviorSpace experiment was imported was not being remembered
- Checkbox selections (i.e. whether or not to update plots or the view) were not being remembered after resuming a paused experiment
- Tooltips on labels in the experiment editing dialog were hiding too quickly
- Experiments exported to XML were not being given proper XML headers
- HubNet
- Some HubNet widgets had unintended differences in sizing and layout from non-HubNet widgets
- HubNet toolbar actions were sometimes interfering with standard toolbar actions
- The HubNet “mirroring” option was getting out of sync when opening multiple HubNet models in a row
- The HubNet activity name was getting out of sync when opening multiple HubNet models in a row
- “Ghost” monitor widgets were not showing a preview name in the HubNet Client Editor
- An unnecessary number of blank lines were being printed out to the HubNet Control Center when sending a message
- HubNet could sometimes display an incorrect list of connected clients, if multiple connections were established at the same time
- Changes to the drawing layer would sometimes be delayed in appearing to clients
- Opening the HubNet Client Editor would always cause NetLogo to behave as if the current model had unsaved changes.
- Color themes / Dark mode
- The default color theme was not syncing with the device’s system-wide settings
- The divider between the widget area and the Command Center could erroneously take on a shade of gray that did not visually distinguish the two sections very well.
- Apply to System Dynamics Modeler tabs and code editor
- Apply to “Import from Library” button in shapes editor dialogs
- Apply to code block text in rendered Info tab content
- Don’t apply to plotting area borders; use value of set-plot-background-color instead
- Misc
- Files were reloading due to external changes, even when the preference for this was disabled
- Editing a model that was saved in OneDrive (or similar) was causing unnecessary reloads of the model
- netlogo-gui.sh did not properly launch on Linux (although bin/NetLogo worked as expected)
- Errors when parsing invalid .nlogox files were sometimes not handled gracefully
- Multiple “Are you sure you want to overwrite this file?” dialogs were being displayed, when only one was needed
- .nlogox files could be opened by dragging and dropping into the application, but .nlogo files could not
- A dialog was being displayed to warn about unsaved changes when first opening the Models Library window, instead of waiting until a model was actually being opened from the Models Library
- The analytics/telemetry functionality could lead to a freezes or unnecessary use of resources, when unable to upload the data
- The announcement banner was made shorter
- Old autosaves of models were being kept around for far too long
- Models were not being marked as in need of saving after changing the view update mode
- Improved the contrast of buttons that are disabled until ticks start
- The interactable model list in the Models Library dialog had the same background color as the non-interactable sections of that dialog
- Code editors with compiler errors were sometimes scrolling to the bottom whenever they were made visible
- Documentation, text labels, and file names were inconsistently using the terms “BehaviorSearch” and “Behaviorsearch”. It is now consistently “BehaviorSearch”.
- Attempting to open NetLogo models from Finder with the Mac launcher installed was opening the application but not loading the selected file
- Error messages were unhelpful when headlessly launching BehaviorSpace experiments in invalid configurations
- When compiling invalid code of the form set [ 1 2 ] [ 1 2 ] , the error message was unhelpful
- The 3D view widget’s “Model Settings” dialog was not showing the option to mirror the updates to the 2D view
- The 3D view widget would (in rare circumstances) throw an error when being opened or closed