matrixActivities Struct Reference

Struct containing MIP-level data about the activities. It is initialized from the activity moulds, but it is thinked to works whitin the MIP matrix. More...

#include <Opt.h>

Collaboration diagram for matrixActivities:

Collaboration graph
[legend]
List of all members.

Public Member Functions

bool isSpatial ()

Public Attributes

string name
 false->normal activity, true->spatial activity name of the mould activity or object
string fullName
 name of the mould activity or object plus the plot ID
bool isInvest
 0->continuous/activity, 1->integer/investment
double objValue
 objective value
vector< double > values
 matrix values
double q
 MIP result quantities.
double cachedQ
 cached valued of output quantities
const PixelplotHost
 plot where the activity is hosted (if it is a spatial activity)
RegActivitiesactMould
 pointer to the original activity mould
ModelObjectobjMould
 pointer to the original object mould

Detailed Description

Struct containing MIP-level data about the activities. It is initialized from the activity moulds, but it is thinked to works whitin the MIP matrix.

matrixActivities are initialized from the activity moulds, but are then each one "filtered" by each agents thatcan change them according to some personal data. E.g. for spatial activities, the distance costs from the hosting plot and the farmstead are subtracted from the gross margin.

Author:
Antonello Lobianco

Definition at line 91 of file Opt.h.


Member Function Documentation

bool isSpatial (  )  [inline]

Definition at line 92 of file Opt.h.


Member Data Documentation

string name

false->normal activity, true->spatial activity name of the mould activity or object

Definition at line 92 of file Opt.h.

Referenced by Opt::addPixel(), and Opt::updateActivities().

string fullName

name of the mould activity or object plus the plot ID

Definition at line 94 of file Opt.h.

Referenced by Opt::addPixel(), and Opt::updateActivities().

bool isInvest

0->continuous/activity, 1->integer/investment

Definition at line 96 of file Opt.h.

Referenced by Opt::addPixel(), and Opt::updateActivities().

double objValue

objective value

Definition at line 97 of file Opt.h.

Referenced by Opt::addPixel(), Agent_farmer::filterActivity(), and Opt::updateActivities().

vector<double> values

matrix values

Definition at line 98 of file Opt.h.

Referenced by Opt::addPixel(), and Opt::updateActivities().

double q

MIP result quantities.

Definition at line 99 of file Opt.h.

Referenced by Opt::addPixel(), and Opt::updateActivities().

double cachedQ

cached valued of output quantities

Definition at line 100 of file Opt.h.

const Pixel* plotHost

plot where the activity is hosted (if it is a spatial activity)

Definition at line 102 of file Opt.h.

Referenced by Opt::addPixel(), Agent_farmer::filterActivity(), and Opt::updateActivities().

RegActivities* actMould

pointer to the original activity mould

Definition at line 103 of file Opt.h.

Referenced by Opt::addPixel(), and Opt::updateActivities().

ModelObject* objMould

pointer to the original object mould

Definition at line 104 of file Opt.h.

Referenced by Opt::addPixel(), and Opt::updateActivities().


The documentation for this struct was generated from the following file: