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.

回答(1 个)

Anshuman
Anshuman 2023-4-20
Hi jackson
Here's a general process that you can follow:
  • 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.
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!!

类别

Help CenterFile Exchange 中查找有关 Genetic Algorithm 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by