Map certain specific values from excel file in a Genetic Algorithm

조회 수: 2 (최근 30일)
Ace_ventura
Ace_ventura 2015년 4월 21일
댓글: Don Alexander 2015년 5월 29일
function x = mapvariables(x)
data=xlsread('newsections.xlsx'); %reading data from excel file.This excel file has 65 rows...
and 15 columns with each column depicting a certain property such as Area, radius etc
x1_2=data(:,7)'; %area is in the 7th column
X1_2=x1_2/10000; % values in m^2
x(1) = X1_2(x(1)); % takes value from specified area values
self_wt=data(:,9);
rmin=data(:,15);
MOIz=data(:,11);
I wish to run GA for the above part. My design variable is x(1). My problem is when I run GA and it takes a certain area, I also want to know corresponding self_wt,rmin etc. That is, I want to find the location of row from which area has been selected, so that I can get the values of rmin,self-wt etc for the corresponding row.
  댓글 수: 2
Don Alexander
Don Alexander 2015년 5월 29일
Dear Ace_ventura, can u please explain how to take values from an excel sheet & pass it on to objective func & constraint func, the running the GA code......please help....

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

답변 (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