ALMaSS Rabbit ODdox
1.00
The rabbit model description following ODdox protocol
|
Class for storing data for optimisation. More...
#include <farm.h>
Classes | |
class | FarmData |
Class storing farm information: farm's number used in ALMaSS system, farm's soil type, farm's size (business or private) and farm's real ID number. More... | |
Public Member Functions | |
DataForOptimisation () | |
The constructor. More... | |
void | Set_livestockTypes (TTypesOfAnimals livestock_type) |
void | Set_cropTypes (TTypesOfCrops crop_type) |
void | Set_cropTypes_str (string crop_type) |
TTypesOfAnimals | Get_livestockTypes (int i) |
string | Get_cropTypes_str (int i) |
TTypesOfCrops | Get_cropTypes (int i) |
void | Set_livestockNumber (int a_number) |
void | Set_cropArea (double a_area) |
int | Get_livestockNumber (int index) |
int | Get_livestockNumbersSize () |
double | Get_cropArea (int index) |
int | Get_cropAreasSize () |
TTypesOfOptFarms | Get_farmType (int a_almass_no) |
Used by FarmManager::CreateFarms. Finds a matching almass number and returns farm's type. More... | |
void | Set_winterMax (int a_value, int i) |
int | Get_winterMax (int i) |
void | Set_livestockParameter (double a_value, int i) |
double | Get_livestockParameter (int i) |
void | Set_cropParameter (double a_value, int i) |
double | Get_cropParameter (int i) |
void | Set_alfa (double a_value, int i) |
double | Get_alfa (int i) |
void | Set_beta1 (double a_value, int i) |
double | Get_beta1 (int i) |
void | Set_beta2 (double a_value, int i) |
double | Get_beta2 (int i) |
void | Set_Nnorm (double a_value, int i) |
double | Get_Nnorm (int i) |
void | Set_fixed (string a_value, int i) |
bool | Get_fixed (int i) |
void | Set_fodder (string a_value, int i) |
bool | Get_fodder (int i) |
void | Set_FUKey (double a_value, int i) |
double | Get_FUKey (int i) |
void | Set_sellingPrice (double a_value, int i) |
double | Get_sellingPrice (int i) |
void | Set_sellingPrice_lastyr (double a_value, int i) |
double | Get_sellingPrice_lastyr (int i) |
void | Set_rotationMax (double a_value, int i) |
double | Get_rotationMax (int i) |
void | Set_rotationMin (double a_value, int i) |
double | Get_rotationMin (int i) |
void | Set_biomass_factor (double a_value, int i) |
double | Get_biomass_factor (int i) |
void | Set_cropTypes_almass (TTypesOfVegetation crop_type) |
TTypesOfVegetation | Get_cropTypes_almass (int i) |
int | Get_cropTypes_almass_size () |
void | Set_cropTypes_almass_str (string crop_type) |
string | Get_cropTypes_almass_str (int i) |
void | Set_noCrops (int no) |
int | Get_noCrops () |
void | Set_emaize_price (double a_value) |
double | Get_emaize_price (int i) |
Public Attributes | |
vector< FarmData * > | m_farm_data |
Protected Member Functions | |
void | InitializeVector (vector< double > &vector) |
Initializes vector with -1 values. More... | |
Protected Attributes | |
int | m_noCrops |
Number of crops used in the simulation. More... | |
vector< string > | m_str_cropTypes |
Crop types saved in string format (Bedriftsmodel i.e. original crop optimization model crop mode). More... | |
vector< TTypesOfCrops > | m_cropTypes |
Crop types saved as enumarator types (Bedriftsmodel i.e. original crop optimization model crop mode). More... | |
vector< string > | m_str_cropTypes_almass |
Crop types saved in string format (ALMaSS crop mode). More... | |
vector< TTypesOfVegetation > | m_cropTypes_almass |
Crop types saved as enumarator types (ALMaSS crop mode). More... | |
vector< TTypesOfAnimals > | m_livestockTypes |
Livestock types saved as enumarator types. More... | |
vector< double > | m_cropAreas |
Vector containing values of initial (i.e. in year the data is taken for) crop areas at farms included in the simulation. More... | |
vector< int > | m_livestockNumbers |
Vector containing numbers of all livestock types at farms included in the simulation. More... | |
vector< int > | m_winterMax |
Maximal area taken by winter crops at a farm. [%]. More... | |
vector< double > | m_livestockParameters |
Vector storing parameters of all livestock types. More... | |
vector< double > | m_cropParameters |
Vector storing parameters of all crop types. More... | |
vector< double > | m_alfa |
Crop parameter for response (growth) function (resp = alfa + beta1*N + beta2*N^2; defines relationship between yield and fertilizer). Soil type specific. More... | |
vector< double > | m_beta1 |
Crop parameter for response (growth) function (resp = alfa + beta1*N + beta2*N^2; defines relationship between yield and fertilizer). Soil type specific. More... | |
vector< double > | m_beta2 |
Crop parameter for response (growth) function (resp = alfa + beta1*N + beta2*N^2; defines relationship between yield and fertilizer). Soil type specific. More... | |
vector< double > | m_Nnorm |
Maximum amount of fertilizer (N) that can be applied for a given crop [kg N/ha]. Soil specific. More... | |
vector< double > | m_biomass_factors |
Factor used to determine actual response (yield per ha) based on crop biomass at a harvest. Factor is crop specific and is equal to a ratio of the response for optimal fertilizer amount in Bedriftsmodel (original farm optimization model) to the biomass at a harvest for the corresponding ALMaSS crop grown with optimal fertilizer input. More... | |
vector< bool > | m_fixed |
Crop Boolean parameter - fixed/variable crop. Farm type specific. More... | |
vector< bool > | m_fodder |
Crop Boolean parameter - fodder/non-fodder crop. Farm type specific. More... | |
vector< double > | m_FUKey |
Crop parameter: Fodder unit key, i.e. a number of fodder units obtained from a given crop [FU/hkg]. Farm type specific. More... | |
vector< double > | m_sellingPrice |
Selling price of a crop [DKK/hkg]. Farm type specific and soil type specific. More... | |
vector< double > | m_sellingPrice_lastyr |
Selling price of a crop in a previous year [DKK/hkg]. Farm type specific and soil type specific. More... | |
vector< double > | m_rotationMax |
Maximum acreage of a crop at a farm [%]. Farm type, soil type and farm size specific. More... | |
vector< double > | m_rotationMin |
Minimum acreage of a crop at a farm [%]. Farm type, soil type and farm size specific. More... | |
vector< double > | m_energy_maize_price |
Vector with energy maize prices for each year of simulation. More... | |
DataForOptimisation::DataForOptimisation | ( | ) |
The constructor.
Definition at line 4573 of file farm.cpp.
References cfg_OptimiseBedriftsmodelCrops, toa_Foobar, toc_Foobar, tofs_Foobar, tolp_Foobar, toof_Foobar, top_Foobar, tos_Foobar, tov_Undefined, and CfgBool::value().
|
inline |
Definition at line 541 of file farm.h.
Referenced by OptimisingFarm::findResponse().
|
inline |
Definition at line 543 of file farm.h.
Referenced by OptimisingFarm::ActualProfit(), OptimisingFarm::findFertilizer(), and OptimisingFarm::findResponse().
|
inline |
Definition at line 545 of file farm.h.
Referenced by OptimisingFarm::ActualProfit(), OptimisingFarm::findFertilizer(), and OptimisingFarm::findResponse().
|
inline |
Definition at line 576 of file farm.h.
Referenced by OptimisingFarm::ActualProfit().
|
inline |
Definition at line 523 of file farm.h.
Referenced by OptimisingFarm::Initialize().
|
inline |
Definition at line 524 of file farm.h.
Referenced by OptimisingFarm::Initialize().
|
inline |
Definition at line 538 of file farm.h.
Referenced by OptimisingFarm::crop_parameter().
|
inline |
Definition at line 516 of file farm.h.
Referenced by OptimisingFarm::Initialize().
|
inline |
Definition at line 579 of file farm.h.
Referenced by OptimisingFarm::ActualProfit(), and OptimisingFarm::Initialize().
|
inline |
Definition at line 580 of file farm.h.
Referenced by OptimisingFarm::ActualProfit().
|
inline |
Definition at line 582 of file farm.h.
|
inline |
Definition at line 515 of file farm.h.
|
inline |
Definition at line 588 of file farm.h.
TTypesOfOptFarms DataForOptimisation::Get_farmType | ( | int | a_almass_no | ) |
Used by FarmManager::CreateFarms. Finds a matching almass number and returns farm's type.
Definition at line 4609 of file farm.cpp.
References g_msg, MapErrorMsg::Warn(), and WARN_BUG.
|
inline |
Definition at line 554 of file farm.h.
Referenced by AnimalFarm::createFodderCrops(), and OptimisingFarm::createVariableCrops().
|
inline |
Definition at line 559 of file farm.h.
Referenced by OptimisingFarm::ActualProfit(), OptimisingCattleFarm::checkCattleRotation(), AnimalFarm::checkWinterRotation1(), AnimalFarm::createFodderCrops(), AnimalFarm::decreaseCrops(), OptimisingFarm::determineAreas(), OptimisingFarm::findGrossMargin(), AnimalFarm::increaseCrops(), OptimisingFarm::optimizeCrops(), and OptimisingCattleFarm::setCattleCropsAtMin().
|
inline |
Definition at line 561 of file farm.h.
Referenced by OptimisingPigFarm::check_WRape_WBarley(), OptimisingCattleFarm::checkCattleRotation(), OptimisingCattleFarm::checkCattleRotation_almass(), AnimalFarm::checkWinterRotation1(), AnimalFarm::correctFodderDemand(), AnimalFarm::decreaseCrops(), AnimalFarm::determineFodderAreas(), AnimalFarm::determineMinFodder(), AnimalFarm::increaseCrops(), OptimisingFarm::optimizeCrops(), and OptimisingCattleFarm::setCattleCropsAtMin().
|
inline |
Definition at line 521 of file farm.h.
Referenced by OptimisingFarm::Initialize().
|
inline |
Definition at line 522 of file farm.h.
Referenced by OptimisingFarm::Initialize().
|
inline |
Definition at line 534 of file farm.h.
Referenced by OptimisingFarm::findFodderDemand(), and OptimisingFarm::findTotalNanim().
|
inline |
Definition at line 514 of file farm.h.
Referenced by OptimisingFarm::Initialize().
|
inline |
Definition at line 547 of file farm.h.
Referenced by OptimisingFarm::findFertilizer().
|
inline |
Definition at line 585 of file farm.h.
Referenced by OptimisingFarm::ActualProfit(), and OptimisingFarm::Initialize().
|
inline |
Definition at line 569 of file farm.h.
Referenced by OptimisingFarm::Initialize().
|
inline |
Definition at line 571 of file farm.h.
Referenced by OptimisingFarm::Initialize().
|
inline |
Definition at line 564 of file farm.h.
Referenced by OptimisingFarm::ActualProfit(), and OptimisingFarm::optimizeCrops().
|
inline |
Definition at line 566 of file farm.h.
Referenced by OptimisingFarm::ActualProfit().
|
inline |
Definition at line 530 of file farm.h.
Referenced by OptimisingPigFarm::check_WRape_WBarley(), AnimalFarm::checkWinterCrops(), and NonAnimalFarm::checkWinterCrops().
|
protected |
|
inline |
Definition at line 540 of file farm.h.
|
inline |
Definition at line 542 of file farm.h.
|
inline |
Definition at line 544 of file farm.h.
|
inline |
Definition at line 575 of file farm.h.
|
inline |
Definition at line 520 of file farm.h.
|
inline |
Definition at line 537 of file farm.h.
|
inline |
Definition at line 512 of file farm.h.
|
inline |
Definition at line 578 of file farm.h.
|
inline |
Definition at line 581 of file farm.h.
|
inline |
Definition at line 513 of file farm.h.
|
inline |
Definition at line 587 of file farm.h.
|
inline |
Definition at line 550 of file farm.h.
|
inline |
Definition at line 555 of file farm.h.
|
inline |
Definition at line 560 of file farm.h.
|
inline |
Definition at line 519 of file farm.h.
|
inline |
Definition at line 533 of file farm.h.
|
inline |
Definition at line 511 of file farm.h.
|
inline |
Definition at line 546 of file farm.h.
|
inline |
Definition at line 584 of file farm.h.
|
inline |
Definition at line 568 of file farm.h.
|
inline |
Definition at line 570 of file farm.h.
|
inline |
Definition at line 563 of file farm.h.
|
inline |
Definition at line 565 of file farm.h.
|
inline |
Definition at line 529 of file farm.h.
|
protected |
|
protected |
|
protected |
|
protected |
Factor used to determine actual response (yield per ha) based on crop biomass at a harvest. Factor is crop specific and is equal to a ratio of the response for optimal fertilizer amount in Bedriftsmodel (original farm optimization model) to the biomass at a harvest for the corresponding ALMaSS crop grown with optimal fertilizer input.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
vector<FarmData*> DataForOptimisation::m_farm_data |
Definition at line 601 of file farm.h.
Referenced by OptimisingFarm::Initialize().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |