FarmRepresentation-class {farmR}R Documentation

Class "FarmRepresentation"

Description

Abstract Class providing generic methods to access properties of Farm objects

Objects from the Class

A virtual Class: No objects may be created from it.

Methods

cropArea
signature(farm = "FarmRepresentation", cropName = "character"): The area in hectares of the named crop. Should only be called on solved farm objects
cropNames
signature(object = "FarmRepresentation"): A string vector with the names of all crops defined for this farm
eo
signature(farm = "FarmRepresentation"): Enterprise output of the farm
guts
signature(object = "FarmRepresentation"): Dump the internal representation of the farm to the screen. This is not pretty
isSolved
signature(farm = "FarmRepresentation"): Returns 1 if the farm has been solved, 0 if not
model
signature(farm = "FarmRepresentation"): Get a reference to the internal java reference representing this farm
objectiveNames
signature(object = "FarmRepresentation"): A string vector with the names of objectives that will be optimised in a call to solvelp
objectiveScaleFactors
signature(farm = "FarmRepresentation"): A numeric vector with the relative weights (normalized) of objectives
objectiveValues
signature(farm = "FarmRepresentation"): Get the values of the objectives. Should only be called for solved farms
profit
signature(farm = "FarmRepresentation"): Get the value of the profit objective
setInputCost
signature(farm = "FarmRepresentation", inputName = "character", inputCost = "numeric"): Set the value of a particular input (potential values are "Input","Machinery","Fuel","Labour","AreaSubsidy")
show
signature(object = "FarmRepresentation"): Print a summary of the Farm to the screen
solvelp
signature(farm = "FarmRepresentation"): Solve the Model

Author(s)

Ira Cooke

See Also

See also Farm CompositeFarm and for concrete subclasses

Examples

showClass("FarmRepresentation")

[Package farmR version 1.0 Index]