## ![](https://img.kancloud.cn/49/b8/49b8f51275346e6cd0333e0449505595_126x104.png)
**介绍:**
遗传/退火算法运算器
* 输入端:
Genome:基因参数
Fitness:目标适应值
**知识点:**
1. 这个运算器在Rhino8中又重新出现了,在Rhino7的版本中曾被删除。简单来说,这是一个求最优解的运算器,提供了遗传和退火两种算法,举个很简单的例子比如我们想算一下太阳在哪个位置建筑的阴影面积最小:
(1)双击电池进入编辑页面,Options内选择最小值(这里也可以选择最大值,任何最优解问题都能转化为最小或最大值的求解)。
![](https://img.kancloud.cn/25/e8/25e886bcb6bf5b7a5fc51ae88aebdd2f_620x722.png)
(2)在Solvers标签内左上角为选择算法,左边为遗传算法,右边为退火算法。
![](https://img.kancloud.cn/90/7e/907ea325bfd7f718968fab106b64ae82_610x718.png)
(3)我们这里以遗传算法为例进行计算。
![](https://img.kancloud.cn/66/9f/669f3a81d9689423b92e5fb9d44c703a_1778x720.gif)
(4)最终结果为当参数为0.414时,阴影面积最小,为34.702096。
![](https://img.kancloud.cn/73/73/73734094644f2cb8a30b7042c2b233ed_1171x540.png)
2. 注意两个输入端都需要倒连,即从输入端处点击连接到其他电池。当变量拉棒很多时,为了便捷,右键电池可以选择与所有拉棒或所选拉棒一键连接。
![](https://img.kancloud.cn/31/c2/31c2815ba47abbe0ea883862085e3757_259x160.png)
3. 关于算法的科普大家可以看看下面两个视频:
[六分钟时间,带你走近遗传算法](https://www.bilibili.com/video/BV19U4y1G7dU?from=search&seid=5357150754003077510&spm_id_from=333.337.0.0)
[金属冷却处理中隐藏的智慧<模拟退火优化算法>](https://www.bilibili.com/video/BV1j64y1Y7FB?from=search&seid=3569532010892707035&spm_id_from=333.337.0.0)
- 简介
- 序言
- 版权证书
- 词典版本对比
- GH原生电池详解(常用311个)
- Params类
- Geometry组
- Point
- Curve
- Brep
- Mesh
- Surface
- Geometry
- Primitive组
- Integer
- Number
- Text
- Data
- File Path
- Input组
- Number Slider
- Panel
- Boolean Toggle
- Button
- Color Swatch
- Gradient
- Graph Mapper
- Image Sample
- Import SHP
- Util组
- Param Viewer
- Scribble
- Data Recorder
- Cluster Input
- Cluster Output
- Galapagos
- Gene Pool
- Maths类
- Domain组
- Construct Domain
- Deconstruct Domain
- Bounds
- Consecutive Domains
- Find Domain
- Includes
- Remap Numbers
- Divide Domain²
- Operators组
- Addition
- Division
- Multiplication
- Negative
- Power
- Subtraction
- Absolute
- Integer Division
- Modulus
- Mass Addition
- Mass Multiplication
- Equality
- Larger Than
- Similarity
- Smaller Than
- Polynomials组
- Cube
- Square
- One Over X
- Script组
- Evaluate
- Expression
- Trig组
- Cosine
- Sine
- Tangent
- Degrees
- Radians
- Util组
- Golden Ratio
- Pi
- Maximum
- Minimum
- Round
- Average
- Smooth Numbers
- Sets类
- List组
- Insert Items
- List Item
- List Length
- Partition List
- Shift List
- Sort List
- Split List
- Sub List
- Dispatch
- Null Item
- Pick'n'Choose
- Weave
- Sequence组
- Cull Index
- Cull Pattern
- Random Reduce
- Duplicate Data
- Fibonacci
- Range
- Repeat Data
- Series
- Jitter
- Random
- Sets组
- Create Set
- Member Index
- Replace Members
- Delete Consecutive
- Find similar number
- Text组
- Concatenate
- Text Split
- Replace Text
- Sort Text
- Tree组
- Clean Tree
- Flatten Tree
- Graft Tree
- Tree Statistics
- Entwine
- Explode Tree
- Flip Metrix
- Merge
- Path Mapper
- Shift Paths
- Stream Filter
- Stream Gate
- Tree Branch
- Replace Paths
- Vector类
- Grid组
- Rectangular
- Square
- Populate 2D
- Populate 3D
- Populate Geometry
- Plane组
- Deconstruct Plane
- XY Plane
- XZ Plane
- YZ Plane
- Construct Plane
- Line + Line
- Line + Pt
- Plane Normal
- Plane Origin
- Align Plane
- Align Planes
- Point组
- Construct Point
- Deconstruct
- Distance
- Closest Point
- Closest Points
- Cull Duplicates
- Project Point
- Pull Point
- Vector组
- Deconstruct Vector
- Vector XYZ
- Unit X
- Unit Y
- Unit Z
- Amplitude
- Angle
- Vector 2Pt
- Vector Length
- Curve类
- Analysis组
- Deconstruct Arc
- End Points
- Polygon Center
- Curve Closest Point
- Discontinuity
- Curve Frame
- Evaluate Curve
- Horizontal Frame
- Perp Frame
- Point On Curve
- Length
- Point In Curve
- Point in Curves
- Division组
- Contour(ex)
- Curve Contour
- Dash Pattern
- Divide Curve
- Divide Distance
- Divide Length
- Shatter
- Curve Frames
- Horizontal Frames
- Perp Frames
- Primitive组
- Line
- Line SDL
- Circle
- Ellipse
- Polygon
- Rectangle
- Spline组
- Interpolate
- Nurbs Curve
- PolyLine
- Iso Curve
- Sub Curve
- Tween Curve
- Util组
- Explode
- Extend Curve
- Flip Curve
- Join Curves
- Fillet
- Offset Curve
- Project
- Smooth Polyline
- Surface类
- Analysis组
- Brep Edges
- Deconstruct Brep
- Dimensions
- Area
- Volume
- Brep Closest Point
- Surface Closest Point
- Point In Brep
- Point In Breps
- Evaluate Surface
- Freeform组
- Surface From Points
- Boundary Surfaces
- Edge Surface
- Loft
- Loft Options
- Extrude
- Patch
- Pipe
- Sweep1
- Sweep2
- Primitive组
- Plane Surface
- Bounding Box
- Center Box
- Cylinder
- Sphere
- Util组
- Divide Surface
- Surface Frames
- Copy Trim
- Isotrim
- Brep Join
- Cap Holes
- Merge Faces
- Offset Surface
- Mesh类
- Analysis组
- Deconstruct Face
- Deconstruct Mesh
- Face Normals
- Mesh Edges
- Mesh Explode
- Face Boundaries
- Mesh Inclusion
- Mesh Area
- Mesh Closest Point
- Mesh Eval
- Mesh Volume
- Primitive组
- Construct Mesh
- Mesh Colours
- Mesh Quad
- Mesh Spray
- Mesh Triangle
- Mesh Box
- Mesh Pipe
- Mesh Plane
- Mesh Sphere
- Mesh Sweep
- Triangulation组
- Delaunay Mesh
- Substrate
- Voronoi
- Voronoi Cell
- MetaBall
- Quad Remesh
- Quad Remesh Settings
- TriRemesh
- Util组
- Mesh Brep
- Mesh FromPoints
- Settings(Custom)
- Settings(Quality)
- Settings(Speed)
- Simple Mesh
- Disjoint Mesh
- Mesh Join
- Mesh Shadow
- Smooth Mesh
- Mesh WeldVertices
- Intersect类
- Mathematical组
- Brep / Line
- Curve / Line
- Mesh / Ray
- Surface / Line
- Contour
- IsoVist
- IsoVist Ray
- Physical组
- Curve / Curve
- Curve / Self
- Multiple Curves
- Brep / Brep
- Brep / Curve
- Surface / Curve
- Surface Split
- Mesh / Curve
- Mesh / Mesh
- Shape组
- Solid Union
- Region Union
- Mesh Union
- Transform类
- Affine组
- Scale
- Scale NU
- Project
- Project Along
- Array组
- Box Array
- Curve Array
- Rectangular Array
- Euclidean组
- Mirror
- Move
- Orient
- Rotate
- Rotate 3D
- Rotate Axis
- Morph组
- Box Morph
- Surface Box
- Flow
- Sporph
- Util组
- Group
- Ungroup
- Display类
- Dimensions组
- Gradient Hatch
- Pattern Hatch
- Text Tag 3D
- Line Dimension
- Angular Dimension
- Graphs组
- Legend
- Preview组
- Create Material
- Custom Preview
- Dot Display
- Vector组
- Point List
- Vector Display
- Vector Display Ex
- 下载声明
- 联系作者