- 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 view (last 30 days)
Show older comments
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 Comments
Answers (1)
Anshuman
on 20 Apr 2023
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 Comments
See Also
Categories
Find more on Genetic Algorithm in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!