How can i pair two variables to get the same value after passing though Genetic Algorithm function

1 view (last 30 days)
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.

Answers (1)

Anshuman
Anshuman on 20 Apr 2023
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!!

Products

Community Treasure Hunt

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

Start Hunting!