ALMaSS Rabbit ODdox  1.1
The rabbit model description following ODdox protocol
CropOptimised Class Reference

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...
 

Detailed Description

A class for storing all parameters and results of crop optimisation.

Definition at line 1634 of file farm.h.

Constructor & Destructor Documentation

◆ CropOptimised() [1/3]

CropOptimised::CropOptimised ( TTypesOfCrops  a_cropType,
double  a_initialArea 
)

Constructor.

The constructor.

Definition at line 5106 of file farm.cpp.

5106  {
5107  m_cropType=a_cropType;
5108  m_cropType_almass = tov_Undefined; //just in case
5109  m_initialArea=a_initialArea;
5110 }

References m_cropType, m_cropType_almass, m_initialArea, and tov_Undefined.

◆ CropOptimised() [2/3]

CropOptimised::CropOptimised ( TTypesOfVegetation  a_cropType,
double  a_initialArea 
)

Definition at line 5112 of file farm.cpp.

5112  {
5113  m_cropType_almass = a_cropType;
5114  m_cropType = toc_Foobar; //just in case initialize it
5115  m_initialArea=a_initialArea;
5116 }

References m_cropType, m_cropType_almass, m_initialArea, and toc_Foobar.

◆ CropOptimised() [3/3]

CropOptimised::CropOptimised ( )

Definition at line 5118 of file farm.cpp.

5118  {
5119 
5120 }

Member Data Documentation

◆ m_area_ha

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().

◆ m_areaPercent

◆ m_areaVariable

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().

◆ m_benefit

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().

◆ m_BI

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().

◆ m_BIFi

◆ m_BIHerb

◆ m_costs_ha

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().

◆ m_cropType

TTypesOfCrops CropOptimised::m_cropType

◆ m_cropType_almass

◆ m_GM

double CropOptimised::m_GM

◆ m_GM_Savings

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().

◆ m_grooming

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().

◆ m_hoeing

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().

◆ m_income_ha

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().

◆ m_initialArea

double CropOptimised::m_initialArea

Initial area of a crop on a farm [ha].

Definition at line 1642 of file farm.h.

Referenced by CropOptimised().

◆ m_lossFi

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().

◆ m_lossHerb

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().

◆ m_n

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().

◆ m_nt

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().

◆ m_optimalN

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().

◆ m_resp

◆ m_rotationMax

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().

◆ m_rotationMin

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().

◆ m_savings

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().

◆ m_totalLoss

double CropOptimised::m_totalLoss

◆ m_weeding

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().


The documentation for this class was generated from the following files:
tov_Undefined
Definition: tov_declaration.h:114
CropOptimised::m_cropType_almass
TTypesOfVegetation m_cropType_almass
Type/name of a crop (ALMaSS crops).
Definition: farm.h:1646
CropOptimised::m_cropType
TTypesOfCrops m_cropType
Type/name of a crop (original farm optimization model crop types).
Definition: farm.h:1644
toc_Foobar
Definition: farm.h:367
CropOptimised::m_initialArea
double m_initialArea
Initial area of a crop on a farm [ha].
Definition: farm.h:1642