|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--Firm
|
+--GenFirm
GenFirm.java
*
Murat Yildizoglu - Universite Montesquieu Bordeaux IV FRANCE
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 based R&D investment
Firm,
genetic| Fields inherited from class Firm |
type |
| Constructor Summary | |
GenFirm(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 learnrate0)
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 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 average fittness difference between last two populations of rules (chromosomes). |
double |
getProfit()
Total profit of the firm profit_rate*K |
void |
learn(int date)
Abstract methods for compatibility with XCSFirm. |
void |
setenv(java.lang.String S)
|
void |
setrd(int t)
Compute RD following a GA rule where the fittness is provided by the average profit rate of the learning period |
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 GenFirm(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 learnrate0)
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 rate| Method Detail |
public 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 Firmpublic void learn(int date)
Firmlearn in class FirmFirmXCSFirm
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||