|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--Firm
|
+--NNGenFirm
NNGenFirm.java
Copyright (c) Murat Yildizoglu, 2000-2001
Permission to use, copy, modify, and distribute this
software and its documentation for NON-COMMERCIAL purposes
and without fee is hereby granted provided that this
copyright notice appears in all copies.
*************************************************************
An evolutionnary firm inspired by Nelson and Winter (1982)
but enriched by genetic algorithm and artificial neural
network based R&D investment
Firm,
genetic,
ANN| Fields inherited from class Firm |
type |
| Constructor Summary | |
NNGenFirm(double K0,
double prod0,
double cost0,
double d0,
double sigma_in0,
double delta0,
double rd0,
int g0,
int c0,
double xover0,
double mutate0,
int nxover0,
boolean elitism0,
double r0,
double rd_min0,
int numInputs0,
int numHiddens0,
int numOutputs0,
int numEpochs0,
int numPeriods0)
Initializes and computes the firm's caracteristics given the caracteristics of the industry to which it belongs. |
|
| Method Summary | |
void |
clean()
Frees the Genetic algorithm and the ANN for garbage collection |
int |
getChrDecode(int cc)
Decodes the actual chromosome in order to obtain the corresponding RD ratio. |
double |
getChrFitness(int cd)
Provies the fitness of a particular chromosome |
double |
getDFittness()
Returns the variation of the profit rate |
double |
getProfit()
Total profit of the firm profit_rate*K |
void |
learn(int date)
Train the Neural Network with new inputs and observed outputs. |
void |
setenv(java.lang.String S)
|
void |
setrd(int t)
Compute RD following a GA rule where the fittness is provided by the expected profit rate given by the ANN. |
java.lang.String |
showFirm()
Formats the output for one GenFirm. |
| Methods inherited from class Firm |
computeprofit, getdprim, getdprin, getinvestRD, getKapital, getprod, getProfitRate, getrd, imitate, innovate, investK, investRD, isactive, saveprofit, supply |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NNGenFirm(double K0,
double prod0,
double cost0,
double d0,
double sigma_in0,
double delta0,
double rd0,
int g0,
int c0,
double xover0,
double mutate0,
int nxover0,
boolean elitism0,
double r0,
double rd_min0,
int numInputs0,
int numHiddens0,
int numOutputs0,
int numEpochs0,
int numPeriods0)
K0 - Initial capital of the firmprod0 - Initial productivity of the firmcost0 - Unit using cost of capitald0 - Calibration parameter for the innovation processsigma_in0 - Standard deviation of innovative drawsdelta0 - Depreciation rate of capitalrd0 - NAg0 - Number of genesc0 - Number of chromosomesxover0 - Crossover ratemutate0 - Mutations ratenxover0 - Number of crossover pointselitism0 - Elitist GA (true) or not (false)r0 - Interest rate in the economyrd_min0 - Minimal RD invetment ratenumInputs0 - number of the inputs nodesnumHiddens0 - number of the hidden nodesnumOutputs0 - number of the outputs nodesnumEpochs0 - Number of training periods (ANN) in each time periodnumPeriods0 - Number of periods of the simulation| Method Detail |
public void learn(int date)
learn in class Firmdate - The index of the last active element of observations used during trainingNNecopublic void setrd(int t)
setrd in class Firmt - : the time periodpublic double getProfit()
getProfit in class Firmpublic int getChrDecode(int cc)
getChrDecode in class Firmcc - The chromosome to decodepublic double getDFittness()
getDFittness in class FirmFirmGenFirmpublic double getChrFitness(int cd)
getChrFitness in class Firmcd - The chromosome for which the fitness is askedpublic void clean()
clean in class Firmpublic java.lang.String showFirm()
showFirm in class Firmpublic void setenv(java.lang.String S)
setenv in class Firm
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||