필터 지우기
필터 지우기

How can I use Genetic Algoritm to predict future cost? I am stuck and would like some guidance to the next step

조회 수: 1 (최근 30일)
% Import & initialize gold project data
% from file:
% Training_gold.xlsx
T = readtable ("Testing gold (23-7-2019).xlsx");
% Specify data range used as input
DataRange = "B5:J14";
% Specify column names and types
VariableNames = ["gold", "shcap", "shunit", "truckcap", "truckunit", "eqltime", "midevtime", "miprod", "capex"];
SelectedVariableNames = ["gold", "shcap", "shunit", "truckcap", "truckunit", "eqltime", "midevtime", "miprod", "capex"];
VariableTypes = ["double", "double", "double", "double", "double", "double", "double", "double", "double"];
% Create the variables
goldprice = ('gold');
shovelcap = ('shcap');
shovelunit = ('shunit');
truckcap = ('truckcap');
truckunit = ('truckunit');
eqltime = ('eqltime');
midevtime = ('minedevtime');
miprod = ('miprod');
capex = ('capex');
%Save the variables into one *.mat file
save Training_gold_1 goldprice shovelcap shovelunit truckcap truckunit eqltime midevtime miprod capex
%Clear them out of the workspace
clear goldprice shovelcap shovelunit truckcap truckunit eqltime midevtime miprod capex
%Load the cost variables
load ("Training_gold_1.mat");

채택된 답변

Star Strider
Star Strider 2019년 7월 23일
The ga (Genetic Algorithm) function is an optimisation function. It will provide the best parameter estimates for the mathematical model (apparently for gold prices) you want it to optimise based on historic data. You can then use your model with those estimated parameters to predict the future cost.
If you have an example using ga to predict anything in any other context other than a fitted model, please share it.
  댓글 수: 2
Shamir Sheikkariem
Shamir Sheikkariem 2019년 7월 23일
I am using historical data (gold prices, shovel capacity, truck capacity etc) to predict the future cost (capital expenditure) of mining equipment (shovels and trucks).
Star Strider
Star Strider 2019년 7월 23일
If you have a mathematical espression that is a function of data and parameters that relates those data to the gold price, the ga function will provide the best estimate of the parameters for that expression.
If you have the data and the model function, I can likely help you estimate the parameters with the ga function.

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

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