ALMaSS Rabbit ODdox  1.00
The rabbit model description following ODdox protocol
Public Member Functions | Public Attributes | List of all members
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 1491 of file farm.h.

Constructor & Destructor Documentation

CropOptimised::CropOptimised ( TTypesOfCrops  a_cropType,
double  a_initialArea 
)

Constructor.

The constructor.

Definition at line 4629 of file farm.cpp.

References tov_Undefined.

4629  {
4630  m_cropType=a_cropType;
4631  m_cropType_almass = tov_Undefined; //just in case
4632  m_initialArea=a_initialArea;
4633 }
TTypesOfVegetation m_cropType_almass
Type/name of a crop (ALMaSS crops).
Definition: farm.h:1503
double m_initialArea
Initial area of a crop on a farm [ha].
Definition: farm.h:1499
TTypesOfCrops m_cropType
Type/name of a crop (original farm optimization model crop types).
Definition: farm.h:1501
CropOptimised::CropOptimised ( TTypesOfVegetation  a_cropType,
double  a_initialArea 
)

Definition at line 4635 of file farm.cpp.

References toc_Foobar.

4635  {
4636  m_cropType_almass = a_cropType;
4637  m_cropType = toc_Foobar; //just in case initialize it
4638  m_initialArea=a_initialArea;
4639 }
TTypesOfVegetation m_cropType_almass
Type/name of a crop (ALMaSS crops).
Definition: farm.h:1503
double m_initialArea
Initial area of a crop on a farm [ha].
Definition: farm.h:1499
TTypesOfCrops m_cropType
Type/name of a crop (original farm optimization model crop types).
Definition: farm.h:1501
CropOptimised::CropOptimised ( )

Definition at line 4641 of file farm.cpp.

4641  {
4642 
4643 }

Member Data Documentation

double CropOptimised::m_area_ha

Area of a crop in ha at a farm [ha].

Definition at line 1556 of file farm.h.

Referenced by FarmManager::CropDistribution(), and FarmManager::PrintOutput().

double CropOptimised::m_areaPercent
double CropOptimised::m_areaVariable

Area of a crop that can be changed when checking for restrictions (=m_areaPercent - m_rotationMin) [%].

Definition at line 1554 of file farm.h.

Referenced by OptimisingFarm::Check_SG_and_CGG().

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 1520 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 1528 of file farm.h.

Referenced by OptimisingFarm::findBIs(), OptimisingFarm::findMWeedControl(), OptimisingFarm::fixBI(), and FarmManager::PrintOutput().

double CropOptimised::m_BIFi
double CropOptimised::m_BIHerb
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 1542 of file farm.h.

Referenced by OptimisingFarm::ActualProfit(), OptimisingFarm::findGrossMargin(), and FarmManager::PrintOutput().

TTypesOfCrops CropOptimised::m_cropType
TTypesOfVegetation CropOptimised::m_cropType_almass
double CropOptimised::m_GM
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 1550 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 1530 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 1532 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 1544 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 1499 of file farm.h.

double CropOptimised::m_lossFi

Value of the yield loss due to the limited use of fung- and insecticides [%].

Definition at line 1538 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 1536 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 1513 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 1515 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 1517 of file farm.h.

Referenced by OptimisingFarm::ActualProfit(), and OptimisingFarm::findFertilizer().

double CropOptimised::m_resp
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 1507 of file farm.h.

Referenced by OptimisingFarm::ActualProfit(), OptimisingCattleFarm::checkCattleRotation(), 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 1509 of file farm.h.

Referenced by OptimisingFarm::Check_SG_and_CGG(), AnimalFarm::checkWinterRotation1(), NonAnimalFarm::checkWinterRotation1(), 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 1548 of file farm.h.

Referenced by OptimisingFarm::findGrossMargin(), and FarmManager::PrintOutput().

double CropOptimised::m_totalLoss
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 1534 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: