필터 지우기
필터 지우기

Please tell me that In GWO coding where we can found the Objective function and what is that objective function????I want to use the GWO for that i have to change the objective function so please tell me that....

조회 수: 2 (최근 30일)
This is the matlab coding of GWO.
  댓글 수: 1
Muhammad Ansari
Muhammad Ansari 2018년 12월 20일
I hope you fine i'm working in GWO IEEE 14,33 and 69 bus system can you tell me how do you implement in GWO
Thanking you,

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

채택된 답변

Walter Roberson
Walter Roberson 2018년 8월 23일
The objective function is not in that code. You have to pass the objective function as the last parameter.
  댓글 수: 2
Walter Roberson
Walter Roberson 2018년 8월 23일
For example,
NumAgents = 7;
maxiters = 2000;
lb = [0 -inf 2];
ub = [1 0 5];
dim = 3;
fobj = @my_function_that_expects_a_vector_of_3_values;
GWO(Numagents, maxiters, lb, ub, dim, fobj)

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

추가 답변 (1개)

Sarmed Wahab
Sarmed Wahab 2022년 9월 22일
I am answering only the 2nd part of the question that what is objective function as I also struggled with it.
It is a function that we want to optimize,based on the requirements this optimization can be either minimization or maximization. Simple example of objective function can be some specific equation for which you want to find the roots that results in the lowest value possible.
Another example can be reducing MSE, MAE using these metaheuristic algorithms.
A practical example can be that if you want to make a table having minimum wieght within constraints or limits for width and height of 2ft and 7ft. The algorithm will try to minimize the objective function to give you a table with minimum weight within dimensions defined by us as constraints or boundaries.
The last example was described by SyedMirjalali

카테고리

Help CenterFile Exchange에서 Problem-Based Optimization Setup에 대해 자세히 알아보기

태그

제품


릴리스

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by