- Firstly identify the two nodes whose y displacement you want to optimize, let's say they are A and B.
- In truss structure, there are unique identifiers like node numbers or labels which you have to find for A and B.
- Now pair the nodes using their node numbers or labels. You can create pairs in a tuple or list.
- Use the paired nodes in your optimization algorithm. Depending on the optimization method you are using, you may need to provide the paired nodes as input or include them in your objective function.
How can i pair two variables to get the same value after passing though Genetic Algorithm function
1 次查看(过去 30 天)
显示 更早的评论
I am trying to optimise the y displacement of two nodes in a truss structure with same value but i am not sure how can pair up the nodes.
0 个评论
回答(1 个)
Anshuman
2023-4-20
Hi jackson
Here's a general process that you can follow:
Overall, the process of pairing will depend on the truss structure and also the kind of optimization problem you are working with but these are the general steps to get started.
Hope it helps!!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Genetic Algorithm 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!