Genetic Algorithm Terminal Constraints Based on Output

조회 수: 2 (최근 30일)
Kyle
Kyle 2021년 3월 6일
댓글: Kyle 2021년 3월 15일
I am trying to use GA to minimize a single variable that will satisfy two terminal contraints.
Consider the function where alpha is a constant.
x is the single variable I am trying to minimze such that and .
I'm not sure how to define my constants for the GA function considering the constraints rely on the output of GA.

채택된 답변

Shiva Kalyan Diwakaruni
Shiva Kalyan Diwakaruni 2021년 3월 9일
Hi,
You can define three functions , one function lets say 'fitness' function which contains the equation whose function handle need to be given to ga function and two other functions for phi(t) and h(t) which you will be calling from 'fitness' function
and you can pass the fitness function as a handle to ga function .
you can follow the below link for more information
hope it helps,
thanks.
  댓글 수: 1
Kyle
Kyle 2021년 3월 15일
Thanks for the response.
I'm still a little confused on how the termainl constraints are handled.
Thanks!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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