To support automated design optimization, EvoMass provides the Steady-State Island Evolutionary Algorithm (SSIEA). As illustrated above, dividing the population into subpopulations allows several regions of the design solution space to be explored in parallel, reducing the likelihood that every search converges toward the same region. Within each subpopulation, the steady-state replacement strategy introduces new designs progressively. The current editor brings variable management, objective assignment, search presets, population settings, evolution controls, view-image capture, and project loading into one workflow.
为支持自动化设计优化,EvoMass提供稳态多岛进化算法(Steady-State Island Evolutionary Algorithm,SSIEA)。如上图所示,将种群划分为多个子种群,可以并行探索设计空间中的多个区域,降低所有搜索均收敛至同一区域的可能性。在每个子种群内部,稳态替换策略会逐步引入新设计。当前编辑器将变量管理、目标分配、预设搜索方案、种群设置、进化控制、视图图像捕获及项目载入整合为一个连续工作流程。
7.1 Prepare the optimization model 准备优化模型
7.1.1 Connect generators and evaluation results 连接生成器与评价结果
A complete optimization definition normally contains four connected parts. First, configure an EvoMass generative component or a custom parametric model to produce the design geometry. Second, connect the geometry and any required context to the simulation and analysis components. Third, convert the analysis results and any penalty or reward terms into scalar evaluation results. Finally, connect the generator to SSIEA's Generator(s) connector and connect the scalar results to its Fitness connector.
完整的优化定义通常包括四个相互连接的部分。首先,配置EvoMass生成组件或自定义参数化模型以生成设计几何。其次,将设计几何及所需的环境信息连接至模拟及分析组件。再次,将分析结果以及相关的惩罚或奖励项转换为标量评价结果。最后,将生成组件连接至SSIEA的Generator(s)(生成器)连接端,并将标量结果连接至Fitness(适应度)连接端。
Each connected evaluation result must provide one numeric value for the current design; lists and data trees are not supported as individual results. When a simulation component has a separate run switch, enable it before generating a sample model or starting the optimization so that every design receives an updated result.
每个已连接的评价结果必须为当前设计提供一个数值;单个结果不支持列表或数据树。如果模拟组件具有独立的运行开关,应在生成示例模型或启动优化前将其启用,确保每个设计都能获得更新后的评价结果。
Use clear and stable nicknames for connected results because these names are reused in the optimization table and visualization axes. Before opening the editor, right-click SSIEA and choose Generate Sample Model. This updates the connected model once and helps identify invalid parameters, missing analysis results, or view-framing problems before a longer run begins.
建议为连接的结果设置清晰且稳定的昵称,因为这些名称会继续用于优化数据表和图表坐标轴。打开编辑器前,可右键单击SSIEA并选择Generate Sample Model(生成示例模型),先更新一次完整模型,从而在正式运行前发现无效参数、缺失的分析结果或视图范围问题。
7.2 Organize variables and evaluation results 组织变量与评价结果
The Variables & Objectives tab summarizes what the connected model sends to and returns from the optimizer. The left side lists the generated variables, their source component, and their crossover groups. The right side separates the connected evaluation results into Optimization objectives and Tracked values. The counts in the section headers and the status bar update automatically, providing a quick connection check before the optimization is configured.
Variables & Objectives(变量与目标)选项卡汇总连接模型向优化器提供的变量,以及模型返回的评价结果。左侧列出生成变量、变量所属组件及其交叉分组;右侧则将已连接的评价结果分为Optimization objectives(优化目标)和Tracked values(记录值)。各区域标题和底部状态栏中的数量会自动更新,可在配置优化前快速检查连接是否完整。
7.2.1 Crossover grouping 交叉分组
Automatic grouping uses the structure reported by the connected generative components to keep related variables together during crossover. Choose Custom and open Edit Crossover Groups only when the model requires a different grouping logic. If the variables of a saved custom configuration no longer match the connected model, SSIEA requires the groups to be reviewed before optimization can start.
Automatic(自动)分组会根据已连接生成组件提供的结构信息,在交叉操作中保持相关变量的组合关系。仅当模型需要不同的分组逻辑时,才选择Custom(自定义)并打开Edit Crossover Groups(编辑交叉分组)。如果已保存的自定义分组与当前连接模型中的变量不再匹配,SSIEA会要求先检查分组,之后才能开始优化。
7.2.2 Optimization objectives and tracked values 优化目标与记录值
Assign between one and three results as optimization objectives by dragging them into the objective list or selecting Set As Objective. Use the drag handles to reorder the objectives, choose Minimize or Maximize in the Direction column, and use Remove to return an objective to the tracked-value list. Once three objectives have been assigned, the editor reports that the maximum has been reached and prevents additional assignments.
可将一至三个结果拖入目标列表,或使用Set As Objective(设为目标)将其设为优化目标。可通过拖动手柄调整目标顺序,在“Direction(方向)”列中选择Minimize(最小化)或Maximize(最大化),并使用Remove(移除)将目标退回记录值列表。当已分配三个目标时,编辑器会提示已达到上限,并阻止继续添加目标。
Results that are useful for comparison but should not influence evolutionary selection remain as tracked values. Their names and values are still stored and can be displayed in the results table, scatter plot, and parallel plot.
仅用于比较而不应参与进化选择的结果应保留为记录值;其名称和数值仍会被保存,并可用于结果数据表、散点图和平行坐标图。
7.3 Configure the SSIEA search 配置SSIEA搜索
7.3.1 Predefined setup 预设方案
The Predefined setup provides a practical starting point without requiring every algorithm parameter to be set independently. Search effort offers Quick test, Standard, and Thorough evaluation budgets. Search behavior offers Explorative, Balanced, and Convergent strategies. Selecting a combination updates the population and evolution controls below; the screenshot shows Standard effort with Explorative behavior as one example, not a universal recommendation. Changing an associated parameter directly changes the corresponding preset to Custom.
Predefined setup(预设方案)为算法设置提供实用起点,无需逐项定义所有参数。Search effort(搜索强度)提供Quick test(快速测试)、Standard(标准)和Thorough(深入)三种评价规模;Search behavior(搜索行为)提供Explorative(探索型)、Balanced(平衡型)和Convergent(收敛型)三种策略。选择不同组合后,下方的种群与进化控制会随之更新;截图中的Standard + Explorative(标准+探索型)仅作为示例,并非适用于所有项目的推荐设置。直接修改相关参数后,对应的预设会切换为Custom(自定义)。
7.3.2 Population and initialization 种群与初始化
Number of subpopulations and Subpopulation size define the total population. Enable Optimized LHS for initial population generation to distribute the initial designs more evenly across the parameter space. When more than one subpopulation is used, K-means clustering for initial population grouping assigns equal numbers of nearby designs to each subpopulation so that the groups begin in more distinct regions. K-means grouping is not used with a single subpopulation or in competing model mode.
Number of subpopulations(子种群数量)与Subpopulation size(子种群大小)共同决定总种群规模。启用Optimized LHS for initial population generation(使用优化拉丁超立方生成初始种群),可使初始设计在参数空间中的分布更均匀。当使用多个子种群时,K-means clustering for initial population grouping(使用K均值聚类划分初始种群)会将相互接近的设计等量分配至各子种群,使不同子种群从更为分离的区域开始搜索。仅有一个子种群或启用竞争模型模式时,不使用K均值分组。
7.3.3 Evolution schedule 进化计划
The evolution schedule controls how new designs are produced and how the search changes over time. The main controls are summarized below.
进化计划控制新设计的生成方式,以及搜索过程如何随运行进度变化。主要控制项如下。
| Control 控制项 | Purpose 作用 |
|---|---|
| Mutation rate - start / end 变异率(起始/结束) | Defines how frequently variables mutate at the beginning and end of the run. 定义运行开始与结束阶段变量发生变异的频率。 |
| Mutation step-size schedule 变异步长计划 | Uses linear decay, exponential decay, or a constant step size to control how mutation becomes more or less local over time. 通过线性衰减、指数衰减或固定步长,控制变异范围如何随运行过程变化。 |
| Crossover method / swap rate 交叉方法/交换率 | Chooses entity-aware, uniform, or progressive crossover and controls the proportion of grouped variables exchanged between parents. 选择实体关联型交叉、均匀交叉或渐进式交叉,并控制父代之间交换成组变量的比例。 |
| Migration rate 迁移率 | Controls information exchange among subpopulations. Excessive migration can reduce separation between their searches. 控制子种群之间的信息交换;迁移过多可能降低各子种群搜索区域之间的差异。 |
| Candidates per mating / New designs per subpopulation 每次繁殖的候选设计/每个子种群的新设计数 | Controls the selection pool and how many designs are replaced during each generation. 控制选择候选范围,以及每代在各子种群中替换的设计数量。 |
| Number of generations 代数 | Sets the run length. The resulting evaluation count is calculated automatically in the run summary. 设置运行长度;由此产生的评价次数会在运行摘要中自动计算。 |
7.3.4 Competing model mode 竞争模型模式
Enable Competing Model Mode when SSIEA is comparing two different parametric models rather than subpopulations within one shared design space. Because the two models may define incompatible parameter spaces, K-means grouping is disabled in this mode.
当SSIEA用于比较两个不同的参数化模型,而非在同一设计空间中设置多个子种群时,可启用Competing Model Mode(竞争模型模式)。由于两个模型可能具有不兼容的参数空间,此模式下会禁用K均值分组。
7.4 Configure view-image capture 配置视图图像捕获
Under Execution, choose No view images, Active view only, or All open views, and select the required image size. Captured images are stored with the optimization project and support design previews in the main table and interactive plot annotations. Capturing more views increases storage use and evaluation time.
在Execution(执行)区域中,可选择No view images(不保存视图图像)、Active view only(仅当前视图)或All open views(所有已打开视图),并设置图像尺寸。捕获的图像会随优化项目保存,可用于主数据表和交互式图表标注中的设计预览。捕获更多视图会增加存储占用和评价时间。
Before starting, display a valid sample design and click Frame Generated Design. This fits the current generated geometry within all open Rhino model views, helping subsequent captures use a consistent composition.
开始前应先显示一个有效的示例设计,并单击Frame Generated Design(调整生成设计视图)。该操作会在所有已打开的Rhino模型视图中调整当前生成几何体的显示范围,使后续捕获的图像具有较一致的画面构图。
7.5 Review and start the optimization 检查并启动优化
The Run summary updates automatically from the current settings. Review the total population, generations, estimated evaluations, candidates per mating, new designs per subpopulation, and total new designs. The evaluation count is useful for planning run time, but actual elapsed time also depends on the connected geometry generation and analysis components.
Run summary(运行摘要)会根据当前设置自动更新。请检查总种群、代数、预计评价次数、每次繁殖的候选设计数、每个子种群的新设计数及新设计总数。评价次数可用于预估运行规模,但实际耗时还取决于已连接的几何生成组件以及模拟及分析组件。
Click Start Optimization to begin a new run. EvoMass saves the optimization data, component settings, and any captured view images with the project so that the results can be reviewed and, when compatible, resumed later. Use Load Project only with a project whose connected generators, evaluation results, order, and saved component setup match the current Grasshopper definition.
单击Start Optimization(开始优化)启动新运行。EvoMass会随项目保存优化数据、组件设置及已捕获的视图图像,以便之后检查结果,并在设置兼容时继续运行。使用Load Project(载入项目)时,当前Grasshopper定义中的生成器、评价结果、连接顺序及已保存组件设置必须与项目相匹配。
