ALMaSS Partridge ODdox
1.1
The partridge model description following ODdox protocol
|
A class for storing all parameters and results of crop optimisation. More...
#include <farm.h>
Public Member Functions | |
CropOptimised (TTypesOfCrops a_cropType, double a_initialArea) | |
Constructor. More... | |
CropOptimised (TTypesOfVegetation a_cropType, double a_initialArea) | |
CropOptimised () | |
Public Attributes | |
double | m_initialArea |
Initial area of a crop on a farm [ha]. More... | |
TTypesOfCrops | m_cropType |
Type/name of a crop (original farm optimization model crop types). More... | |
TTypesOfVegetation | m_cropType_almass |
Type/name of a crop (ALMaSS crops). More... | |
double | m_rotationMax |
Maximum area in percent of farm's arable area for a given crop (depends on a farm size, farm type and soil type). More... | |
double | m_rotationMin |
Minimum area in percent of farm's arable area for a given crop (depends on a farm size, farm type and soil type). More... | |
double | m_n |
Total amount of fertilizer applied per ha of a crop [kg N/ha]. More... | |
double | m_nt |
Amount of purchased (and applied) fertilizer per ha of a crop [kg N/ha]. More... | |
double | m_optimalN |
Optimal amount of fertilizer per ha of a crop supposing ferilizer price equals zero [kg N/ha]. Used in OptimisingFarm::ActualProfit. More... | |
double | m_benefit |
A value of selling price for non-fodder crops or a value of fodder units obtained from a hkg of a fodder crop [DKK/hkg]. More... | |
double | m_resp |
Response - yield of a crop per ha [hkg/ha]. More... | |
double | m_BIHerb |
Value of BI for herbicides [BI/ha]. More... | |
double | m_BIFi |
Value of BI for fung- and insecticides [BI/ha]. More... | |
double | m_BI |
Summary value of BI for herbicides and fung- and insecticides [BI/ha]. More... | |
double | m_grooming |
Value of mechanical weed control for a crop - grooming [DKK/ha]. More... | |
double | m_hoeing |
Value of mechanical weed control for a crop - hoeing [DKK/ha]. More... | |
double | m_weeding |
Value of mechanical weed control for a crop - manual weeding [DKK/ha]. More... | |
double | m_lossHerb |
Value of the yield loss due to the limited use of herbicides [%]. More... | |
double | m_lossFi |
Value of the yield loss due to the limited use of fung- and insecticides [%]. More... | |
double | m_totalLoss |
Summary value of the yield loss due to the limited use of herbicides and fung- and insecticides [%]. More... | |
double | m_costs_ha |
Costs of growing 1 ha of a crop. Include costs of labour and machine (constant), pesticides (herbicides and fung- and insecticides), mechanical weed control, fertilizer [DKK/ha]. More... | |
double | m_income_ha |
Value of income per ha of a crop. Includes value of sales and subsidy [DKK/ha]. More... | |
double | m_GM |
Value of gross margin for a crop (m_income_ha - m_costs_ha) [DKK/ha]. More... | |
double | m_savings |
Value of savings resulting from growing a fodder crop and not purchasing amount of fodder corresponding to the amount of fodder obtained from 1 ha of a given fodder crop [DKK/ha]. More... | |
double | m_GM_Savings |
Holds the value of m_GM in case of non-fodder crops and a value of m_savings in case of fodder crops [DKK/ha]. More... | |
double | m_areaPercent |
Area of a crop in percent of a farm's total area [%]. More... | |
double | m_areaVariable |
Area of a crop that can be changed when checking for restrictions (=m_areaPercent - m_rotationMin) [%]. More... | |
double | m_area_ha |
Area of a crop in ha at a farm [ha]. More... | |
A class for storing all parameters and results of crop optimisation.
CropOptimised::CropOptimised | ( | TTypesOfCrops | a_cropType, |
double | a_initialArea | ||
) |
Constructor.
The constructor.
Definition at line 5106 of file farm.cpp.
References m_cropType, m_cropType_almass, m_initialArea, and tov_Undefined.
CropOptimised::CropOptimised | ( | TTypesOfVegetation | a_cropType, |
double | a_initialArea | ||
) |
Definition at line 5112 of file farm.cpp.
References m_cropType, m_cropType_almass, m_initialArea, and toc_Foobar.
double CropOptimised::m_area_ha |
Area of a crop in ha at a farm [ha].
Definition at line 1699 of file farm.h.
Referenced by FarmManager::CropDistribution(), and FarmManager::PrintOutput().
double CropOptimised::m_areaPercent |
Area of a crop in percent of a farm's total area [%].
Definition at line 1695 of file farm.h.
Referenced by OptimisingFarm::Check_SG_and_CGG(), OptimisingPigFarm::check_WRape_WBarley(), OptimisingCattleFarm::checkCattleRotation(), OptimisingCattleFarm::checkCattleRotation_almass(), AnimalFarm::checkWinterCrops(), NonAnimalFarm::checkWinterCrops(), AnimalFarm::checkWinterRotation1(), NonAnimalFarm::checkWinterRotation1(), AnimalFarm::determineAreas(), OptimisingFarm::Make_rotations(), and FarmManager::PrintOutput().
double CropOptimised::m_areaVariable |
Area of a crop that can be changed when checking for restrictions (=m_areaPercent - m_rotationMin) [%].
Definition at line 1697 of file farm.h.
Referenced by OptimisingFarm::Check_SG_and_CGG(), and AnimalFarm::determineAreas().
double CropOptimised::m_benefit |
A value of selling price for non-fodder crops or a value of fodder units obtained from a hkg of a fodder crop [DKK/hkg].
Definition at line 1663 of file farm.h.
Referenced by OptimisingFarm::optimizeCrops().
double CropOptimised::m_BI |
Summary value of BI for herbicides and fung- and insecticides [BI/ha].
Definition at line 1671 of file farm.h.
Referenced by OptimisingFarm::findBIs(), OptimisingFarm::findMWeedControl(), OptimisingFarm::fixBI(), and FarmManager::PrintOutput().
double CropOptimised::m_BIFi |
Value of BI for fung- and insecticides [BI/ha].
Definition at line 1669 of file farm.h.
Referenced by OptimisingFarm::findBIs(), OptimisingFarm::findGrossMargin(), OptimisingFarm::findMWeedControl(), OptimisingFarm::findYieldLoss(), OptimisingFarm::fixBI(), FarmManager::PrintOutput(), and OptimisingFarm::Spraying_fungins().
double CropOptimised::m_BIHerb |
Value of BI for herbicides [BI/ha].
Definition at line 1667 of file farm.h.
Referenced by OptimisingFarm::findBIs(), OptimisingFarm::findGrossMargin(), OptimisingFarm::findMWeedControl(), OptimisingFarm::findYieldLoss(), OptimisingFarm::fixBI(), FarmManager::PrintOutput(), and OptimisingFarm::Spraying_herbicides().
double CropOptimised::m_costs_ha |
Costs of growing 1 ha of a crop. Include costs of labour and machine (constant), pesticides (herbicides and fung- and insecticides), mechanical weed control, fertilizer [DKK/ha].
Definition at line 1685 of file farm.h.
Referenced by OptimisingFarm::ActualProfit(), OptimisingFarm::findGrossMargin(), and FarmManager::PrintOutput().
TTypesOfCrops CropOptimised::m_cropType |
Type/name of a crop (original farm optimization model crop types).
Definition at line 1644 of file farm.h.
Referenced by CropOptimised(), OptimisingFarm::findBIs(), OptimisingFarm::findFertilizer(), OptimisingFarm::findGrossMargin(), OptimisingFarm::findMWeedControl(), OptimisingFarm::findResponse(), and OptimisingFarm::findYieldLoss().
TTypesOfVegetation CropOptimised::m_cropType_almass |
Type/name of a crop (ALMaSS crops).
Definition at line 1646 of file farm.h.
Referenced by OptimisingFarm::ActualProfit(), CropOptimised(), OptimisingFarm::findBIs(), OptimisingFarm::findFertilizer(), OptimisingFarm::findGrossMargin(), OptimisingFarm::findMWeedControl(), OptimisingFarm::findResponse(), and OptimisingFarm::findYieldLoss().
double CropOptimised::m_GM |
Value of gross margin for a crop (m_income_ha - m_costs_ha) [DKK/ha].
Definition at line 1689 of file farm.h.
Referenced by AnimalFarm::checkWinterRotation1(), NonAnimalFarm::checkWinterRotation1(), AnimalFarm::determineAreas(), OptimisingFarm::findGrossMargin(), and FarmManager::PrintOutput().
double CropOptimised::m_GM_Savings |
Holds the value of m_GM in case of non-fodder crops and a value of m_savings in case of fodder crops [DKK/ha].
Definition at line 1693 of file farm.h.
Referenced by OptimisingCattleFarm::checkCattleRotation(), and OptimisingFarm::findGrossMargin().
double CropOptimised::m_grooming |
Value of mechanical weed control for a crop - grooming [DKK/ha].
Definition at line 1673 of file farm.h.
Referenced by OptimisingFarm::ActualProfit(), OptimisingFarm::findGrossMargin(), OptimisingFarm::findMWeedControl(), and FarmManager::PrintOutput().
double CropOptimised::m_hoeing |
Value of mechanical weed control for a crop - hoeing [DKK/ha].
Definition at line 1675 of file farm.h.
Referenced by OptimisingFarm::ActualProfit(), OptimisingFarm::findGrossMargin(), OptimisingFarm::findMWeedControl(), and FarmManager::PrintOutput().
double CropOptimised::m_income_ha |
Value of income per ha of a crop. Includes value of sales and subsidy [DKK/ha].
Definition at line 1687 of file farm.h.
Referenced by OptimisingFarm::findGrossMargin(), and FarmManager::PrintOutput().
double CropOptimised::m_initialArea |
Initial area of a crop on a farm [ha].
Definition at line 1642 of file farm.h.
Referenced by CropOptimised().
double CropOptimised::m_lossFi |
Value of the yield loss due to the limited use of fung- and insecticides [%].
Definition at line 1681 of file farm.h.
Referenced by OptimisingFarm::findYieldLoss().
double CropOptimised::m_lossHerb |
Value of the yield loss due to the limited use of herbicides [%].
Definition at line 1679 of file farm.h.
Referenced by OptimisingFarm::findYieldLoss().
double CropOptimised::m_n |
Total amount of fertilizer applied per ha of a crop [kg N/ha].
Definition at line 1656 of file farm.h.
Referenced by OptimisingFarm::ActualProfit(), OptimisingFarm::findFertilizer(), OptimisingFarm::findResponse(), and FarmManager::PrintOutput().
double CropOptimised::m_nt |
Amount of purchased (and applied) fertilizer per ha of a crop [kg N/ha].
Definition at line 1658 of file farm.h.
Referenced by OptimisingFarm::ActualProfit(), OptimisingFarm::findFertilizer(), OptimisingFarm::findGrossMargin(), and FarmManager::PrintOutput().
double CropOptimised::m_optimalN |
Optimal amount of fertilizer per ha of a crop supposing ferilizer price equals zero [kg N/ha]. Used in OptimisingFarm::ActualProfit.
Definition at line 1660 of file farm.h.
Referenced by OptimisingFarm::ActualProfit(), and OptimisingFarm::findFertilizer().
double CropOptimised::m_resp |
Response - yield of a crop per ha [hkg/ha].
Definition at line 1665 of file farm.h.
Referenced by OptimisingFarm::ActualProfit(), OptimisingPigFarm::check_WRape_WBarley(), OptimisingCattleFarm::checkCattleRotation(), OptimisingCattleFarm::checkCattleRotation_almass(), OptimisingFarm::findBIs(), OptimisingFarm::findGrossMargin(), OptimisingFarm::findResponse(), and FarmManager::PrintOutput().
double CropOptimised::m_rotationMax |
Maximum area in percent of farm's arable area for a given crop (depends on a farm size, farm type and soil type).
Definition at line 1650 of file farm.h.
Referenced by OptimisingFarm::ActualProfit(), OptimisingCattleFarm::checkCattleRotation(), AnimalFarm::determineAreas(), OptimisingFarm::Initialize(), and OptimisingCattleFarm::preventCashCrops().
double CropOptimised::m_rotationMin |
Minimum area in percent of farm's arable area for a given crop (depends on a farm size, farm type and soil type).
Definition at line 1652 of file farm.h.
Referenced by OptimisingFarm::Check_SG_and_CGG(), AnimalFarm::checkWinterRotation1(), NonAnimalFarm::checkWinterRotation1(), AnimalFarm::determineAreas(), and OptimisingFarm::Initialize().
double CropOptimised::m_savings |
Value of savings resulting from growing a fodder crop and not purchasing amount of fodder corresponding to the amount of fodder obtained from 1 ha of a given fodder crop [DKK/ha].
Definition at line 1691 of file farm.h.
Referenced by OptimisingFarm::findGrossMargin(), and FarmManager::PrintOutput().
double CropOptimised::m_totalLoss |
Summary value of the yield loss due to the limited use of herbicides and fung- and insecticides [%].
Definition at line 1683 of file farm.h.
Referenced by OptimisingFarm::ActualProfit(), OptimisingPigFarm::check_WRape_WBarley(), OptimisingCattleFarm::checkCattleRotation(), OptimisingCattleFarm::checkCattleRotation_almass(), OptimisingFarm::findGrossMargin(), OptimisingFarm::findYieldLoss(), and FarmManager::PrintOutput().
double CropOptimised::m_weeding |
Value of mechanical weed control for a crop - manual weeding [DKK/ha].
!!!! in bedriftsmodel data it says it is dkk per time...see more on this 10.07.13
Definition at line 1677 of file farm.h.
Referenced by OptimisingFarm::ActualProfit(), OptimisingFarm::findGrossMargin(), OptimisingFarm::findMWeedControl(), and FarmManager::PrintOutput().