Backup, restart, loading, and migration

10. Projects and Compatibility 项目与兼容性

An EvoMass optimization project should be treated as a pair: the compatible Grasshopper definition provides the generators, output parameters, connections, and external analysis workflow, while the project XML stores the optimization state associated with that definition. Keep both when archiving or transferring a study.

EvoMass优化项目应作为一组配套文件保存:兼容的Grasshopper定义负责提供生成器、输出参数、连接关系及外部模拟分析流程,项目XML则保存与该定义相对应的优化状态。归档或转移研究时,应同时保留两者。

10.1 Understand the saved files 了解保存文件

EvoMass uses several file types for different purposes. A project XML is restartable only when it can be matched to the appropriate Grasshopper definition; a CSV export is intended for external analysis and cannot restart a study.

EvoMass使用多种文件保存不同内容。只有当项目XML能够与相应的Grasshopper定义正确匹配时,才可用于恢复运行;CSV仅用于外部数据分析,不能用于恢复研究。

File or folder / 文件或文件夹Purpose / 用途Can resume a run? / 可否恢复运行
Grasshopper document (.gh)
Grasshopper定义
Stores the component graph, connections, and serialized component/editor settings.
保存组件图、连接关系及组件和编辑器设置。
Required together with a compatible project XML.
必须与兼容的项目XML配合使用。
Optimization project (.xml)
优化项目文件
Stores solver settings, component and output identifiers, population data, histories, status records, and accumulated elapsed time.
保存求解器设置、组件与输出标识、种群数据、历史记录、状态日志及累计运行时间。
Yes, after compatibility checks pass.
兼容性检查通过后可以恢复。
backup folder
backup备份文件夹
Contains automatic project checkpoints, a backup Grasshopper definition, available generator setup files, and captured images when enabled.
包含自动项目检查点、Grasshopper备份定义、可用的生成器设置文件,以及启用图像捕捉后生成的图像。
Use GH_backup.gh with a suitable backupNNN.xml.
使用GH_backup.gh与合适的backupNNN.xml配套恢复。
Component setup (.xml)
组件设置文件
Saves reusable Additive or Subtractive Component settings. Load it only into the same generator type.
保存可复用的加法或减法组件设置,且只能载入同类型生成器。
No. It does not contain population or optimization history.
不能,其中不包含种群或优化历史。
Results export (.csv)
结果导出文件
Exports the displayed study table for spreadsheets or statistical analysis.
导出当前研究表格,用于电子表格或统计分析。
No.
不能。

10.2 Save and back up a study 保存与备份研究

10.2.1 Automatic backup structure 自动备份结构

After the initial population is created, EvoMass creates a backup folder beside the active Grasshopper document, or on the Desktop when the definition has not yet been saved. The folder includes GH_backup.gh and an initial backup000.xml. Further backupNNN.xml checkpoints are updated as generations progress, and a final checkpoint is written after normal completion.

初始种群创建后,EvoMass会在当前Grasshopper定义所在目录旁创建backup文件夹;若定义尚未保存,则在桌面创建。该文件夹包含GH_backup.gh及初始检查点backup000.xml。随着进化代数推进,系统会继续更新backupNNN.xml检查点,并在正常完成后写入最终检查点。

For supported generators, files such as Component_0_setup_file.xml preserve their applied setup. When view-image capture is enabled, the images subfolder stores numbered bitmap captures. Because a later run from the same Grasshopper folder can replace backup files with the same names, copy or rename the complete backup folder before starting another run that must remain separate.

对于支持设置文件的生成器,Component_0_setup_file.xml等文件会保存已应用的组件设置。启用视图图像捕获后,images子文件夹将保存按编号命名的位图。由于在同一Grasshopper目录中启动后续研究时,可能替换同名备份文件,因此若需分别保留多个研究,应在启动下一次研究前复制或重命名完整的备份文件夹。

Placeholder for a current EvoMass backup folder and its contents
IMG-PROJECT-BACKUP-01 — The current backup folder showing GH_backup.gh, several backupNNN.xml checkpoints, component setup files, and the images folder. / 当前backup文件夹,其中包含GH_backup.gh、多个backupNNN.xml检查点、组件设置文件及images文件夹。

10.2.2 Manual save and Auto Save 手动保存与自动保存

Save Project creates a named XML project after the study has stopped or completed; it is disabled while calculations are active. If Auto Save is selected, EvoMass writes autosave_project.xml when the run stops or completes. If that filename already exists, a numbered variant is created instead of overwriting it.

Save Project(保存项目)用于在研究停止或完成后创建指定名称的XML项目文件;计算进行期间该按钮不可用。启用Auto Save(自动保存)后,EvoMass会在研究停止或完成时写入autosave_project.xml。若同名文件已存在,系统会创建带编号的新文件,而不会覆盖原文件。

Placeholder for the stopped results window showing Save Project and Auto Save
IMG-PROJECT-SAVE-01 — A stopped or completed results window with Save Project and Auto Save visible. / 已停止或完成的结果窗口,其中显示“Save Project”和“Auto Save”。

10.3 Load, review, and resume 载入、检查与继续运行

  1. Open the matching definition. Use the original Grasshopper file or the GH_backup.gh stored with the run. Confirm that external simulations, referenced files, and plug-ins are available.打开匹配的定义。使用原始Grasshopper文件或与研究一同保存的GH_backup.gh,并确认外部模拟、引用文件及插件均可用。
  2. Review the connected workflow. Confirm the SSIEA generator and output connections. If you deliberately edit an Additive, Subtractive, or Layout Component, complete its validation and click Apply Parameters before loading.检查连接流程。确认SSIEA的生成器与输出连接。若主动修改了加法、减法或布局组件,请先完成验证并单击“Apply Parameters”,再载入项目。
  3. Load the XML. Open the SSIEA editor, click Load Project, and select a manually saved project, an autosave, or the most suitable backupNNN.xml.载入XML。打开SSIEA编辑器,单击“Load Project”,选择手动保存项目、自动保存文件或合适的backupNNN.xml。
  4. Review or continue. EvoMass reconstructs the saved results window. A completed project can be inspected directly; an unfinished compatible project displays Restart Optimization.检查或继续运行。EvoMass会重建已保存的结果窗口。已完成项目可直接检查;未完成且兼容的项目会显示“Restart Optimization”。

The elapsed time stored in the XML is restored and continues accumulating when the optimization restarts. It therefore represents the total active optimization time across the saved and resumed sessions, rather than only the most recent segment.

XML中保存的累计运行时间会在恢复时载入,并在优化重新开始后继续累计。因此,该时间表示保存前后各次运行的总有效优化时间,而非仅记录最近一次运行。

Placeholder animation showing how to load and restart an unfinished EvoMass project
GIF-PROJECT-RESTART-01 — Open the matching Grasshopper definition, load a compatible XML checkpoint, review the reconstructed results window, and click Restart Optimization to continue the unfinished run. / 打开匹配的Grasshopper定义,载入兼容的XML检查点,检查重建后的结果窗口,并单击“Restart Optimization”继续未完成的研究。

10.4 Compatibility checks 兼容性检查

Before reconstructing the solver, EvoMass checks the current Grasshopper definition against identifiers and setup signatures stored in the project XML. The output nicknames help explain the required order in an error message, but matching names alone do not make a rebuilt definition compatible: the original output parameter objects and their order are also checked.

重建求解器之前,EvoMass会将当前Grasshopper定义与项目XML中保存的标识及设置签名进行比较。输出昵称可在错误信息中说明所需顺序,但仅保持名称一致并不能使重新搭建的定义兼容:系统还会检查原始输出参数对象及其顺序。

Message or condition / 信息或情况Meaning / 含义Recommended action / 建议处理
Connected generative components do not match
连接的生成组件不匹配
The number or generator types differ from the saved project.
生成器数量或类型与已保存项目不同。
Open the original or backup Grasshopper definition and restore the saved generator list.
打开原始或备份Grasshopper定义,并恢复保存时的生成器列表。
Component settings differ
组件设置不同
A generator's applied setup signature has changed.
某个生成器已应用的设置签名发生变化。
Restore the saved settings or component setup file, then click Apply Parameters where applicable.
恢复已保存设置或组件设置文件,并在适用时单击“Apply Parameters”。
Component order differs
组件顺序不同
The correct generators are connected in a different SSIEA order.
生成器类型正确,但连接至SSIEA的顺序不同。
Reconnect them in the original order.
按原始顺序重新连接。
Connected output parameters do not match
连接的输出参数不匹配
One or more saved output objects are absent or replaced.
一个或多个已保存输出对象缺失或被替换。
Use the original Grasshopper definition; avoid rebuilding or copying replacement output components for a saved run.
使用原始Grasshopper定义;不要为已保存研究重新搭建或复制替代输出组件。
Output connection order does not match
输出连接顺序不匹配
The correct outputs are present but connected in another order.
输出对象正确,但连接顺序发生变化。
Reconnect them in the required order shown by the message.
按照提示信息中显示的所需顺序重新连接。
Placeholder for representative EvoMass project compatibility messages
IMG-COMPATIBILITY-01 — Example Component Setup Does Not Match message identifying the changed generator setup and the checks required before the project can be loaded. / “Component Setup Does Not Match(组件设置不匹配)”示例信息,其中列出发生变化的生成组件设置,以及载入项目之前需要完成的检查。

10.4.1 Open projects after an EvoMass update 更新EvoMass后打开项目

Use the same EvoMass version for an active study whenever possible. A newer version may add controls or serialized fields that did not exist when an older Grasshopper document or project XML was created, and an older EvoMass version should not be expected to read files produced by a newer one.

对于仍在进行的研究,应尽量使用相同的EvoMass版本。较新版本可能增加旧Grasshopper定义或项目XML创建时尚不存在的控件与序列化字段;同时,也不应假定旧版EvoMass能够读取新版生成的文件。

Placeholder for a typical Grasshopper warning produced by a legacy EvoMass component
IMG-PROJECT-LEGACY-WARNING-01 — A typical warning shown when a Grasshopper definition contains legacy EvoMass components. / Grasshopper定义包含旧版EvoMass组件时显示的典型警告。

Before loading an older project XML in a newer version, open a copy of the associated Grasshopper definition, inspect the Additive, Subtractive, Layout, Variable Adapter, and SSIEA settings, and generate a valid sample model. If any editor is changed, validate it and click Apply Parameters. Save the reviewed Grasshopper definition under a new filename, then attempt to load the XML. If compatibility checks still fail, preserve the old project for result review and begin a new optimization with the updated definition rather than forcing the mismatched state.

在新版中载入旧项目XML之前,请先打开对应Grasshopper定义的副本,检查加法、减法、布局、变量适配器及SSIEA设置,并生成一个有效的示例模型。若修改了任何编辑器,应完成验证并单击Apply Parameters(应用参数)。随后将检查后的Grasshopper定义另存为新文件,再尝试载入XML。若兼容性检查仍未通过,应保留旧项目用于结果查阅,并使用更新后的定义开始新的优化,而不要强行恢复不匹配的状态。

For setup and startup guidance, see 7.5 Review and start the optimization. For loading failures that remain after the checks above, continue to 11. Troubleshooting.

关于设置与启动流程,请参阅7.5 检查并启动优化。若完成上述检查后仍无法载入,请继续参阅11. 故障排除。

Enlarged manual illustration