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