| Variables | ||
| static const | Base tags for parallel messaging. | |
| static const | ||
| static const | tolerance level 0: \(10^{-8}\). | |
| static const | tolerance level 1: \(5\times 10^{-6}\). | |
| static const | tolerance level 2: \(10^{-4}\). | |
| static const | tolerance level 3: \(10^{-2}\). | |
| static const | IID normal parameter vector. | |
| static const | labels for MyMoments | |
| static const | \(\sqrt{\epsilon_m}\) \(10^{-8}\). | |
| static const | Euclidean tolerance, \(10^{-12}\). | |
| static const | 0 as a vector . | |
| static const | used in transitions. | |
| Functions | ||
| ActualValue: Returns X->myAV() if it exists or CV(X). | ||
| The Multinomial logit smoothing function (over columns). | ||
| Return the Current Value of a Quantity: access X.v, X, X() or X(arg). | ||
| Row-Difference of a matrix. | ||
| Return rows() and columns() as a row vector. | ||
| Return Nx1 vector of values corresponding to the 1/(N+1) percentiles of the normal distribution. | ||
| Return index of a single draw from the multinomial distribution. | ||
| Compute the Epanechnikov kernel matrix for a data matrix. | ||
| The standard logistic cumulative distribution. | ||
| Compute the Gausian kernel matrix for a data matrix. | ||
| Print Column Moments. | ||
| The Multinomial logit smoothing function (over rows). | ||
| Check that two objects have same rows and columns. | ||
| Return the completed simplex of a vector or double. | ||
| Check that an object is of a required class, or one of a required class. | ||
| Convert an array of strings into a space-separated string. | ||
| Parse a string for variable names; return array of strings. | ||
| Enumerations | ||
| Tags for Types of vector-valued objective Aggregation. | ||
| Tags for Types of Constraints. | ||
| Code for solutions to Optimization and Non-Linear System solving. | ||
| Pseudonyms for -3, -2, …. | ||
| Possible next treatment phases. | ||
| Levels of output to produce while executing. | ||
| Tags for parameter vectors of normal distribution. | ||
| Modes of Execution when executing in parallel. | ||
| Codes for Type. | ||
| Public methods | ||
| static | Finalize the CGI component of the output; Ox output appears below. | |
| static | Find and return the CGI key value | |
| static | Initialize the processing of CGI post data. | |
| static | Parse and return the values of a HTML form. | |
| static | Parse the query | |
| Public fields | ||
| inequalities. | ||
| equalities. | ||
| Merit value. | ||
| Public methods | ||
| Public fields | ||
| corresponding model vals. | ||
| Number of different values | ||
| vector of prob. | ||
| subvector objected belongs to. | ||
| const | range(0,N-1) | |
| Public methods | ||
| Create a discrete quantity . | ||
| virtual | ||
| virtual | Initialize the actual values. | |
| virtual | ||
| virtual | The default Discrete Variable update does nothing. | |
| Public fields | ||
| 1xM row vector of unique indices into nodes. | ||
| const | Quantity object or points. | |
| NxM matrix of weights. | ||
| N-array of matrices, either 2x1 or 2x2. first row are node indices, second is weight on the node. |
||
| Public methods | ||
| Map vector of values into current nodes. | ||
| Map a continuous outcome onto a set of discrete nodes. | ||
| Public methods | ||
| Public fields | ||
| Jacobian. | ||
| const | array of equation labels | |
| current multiplier | ||
| const | number of equations | |
| static const | lables for equation elements. | |
| current value | ||
| Public methods | ||
| Create a system of equations. | ||
| virtual | ||
| virtual | ||
| virtual | ||
| Public fields | ||
| const | J-array of Choleski of M[j]Sigma M[j]'. | |
| const | half-replication (anti-thetics). | |
| static | initial seed. | |
| const | dimensions on integration, number of feasible options. | |
| 1xR upper bounds. | ||
| const | J-array of delta matrices. | |
| JxR matrix of N(0,1) simulated values. | ||
| Pj. | ||
| incremental simulated prob. | ||
| const | number of replications. | |
| vector of standard deviations . | ||
| const | J-1. | |
| 1xR uniform values. | ||
| Evj. | ||
| static | output level | |
| Public methods | ||
| Set constants for GHK. | ||
| Update array of choice-specific Choleskie's | ||
| static | ||
| Use GHK to simulate choice probabilities and Emaxes for a matrix of index values. | ||
| Use GHK to simulate state-contingent choice probability when U() includes additive N(0,Σ) errors. | ||
GQH::Initialize(8);
println("E[x*x] = ", GQH::wght * sqr(GQH::nodes) ); // / M_SQRT2PI
| Public fields | ||
| static | the nodes or mantissa values xm | |
| static | currrent order M | |
| static | corresponding weights ωm | |
| Public methods | ||
| static | Return the polynomial coefficients of Hn polynomial . | |
| static | Set the nodes and weights for Gauss-Hermite Quadrature. | |
GQL::Initialize(8);
println("E[x*x] = ", GQL::wght * sqr(GQL::nodes) );
| Public fields | ||
| static | the nodes or mantissa values xm | |
| static | corresponding weights ωm | |
| Public methods | ||
| static | Gauss-Laguerre nodes and weights. | |
| Public methods | ||
| Public fields | ||
| step length. | ||
| v value . | ||
| obj value. | ||
| Public methods | ||
| virtual | ||
| virtual | ||
| Public fields | ||
| const | ||
| mixture elements. | ||
| const | ||
| weight matrix | ||
| free weights. | ||
| Public methods | ||
| virtual | aggregate blackbox objectives into a scalar value. | |
| Public fields | ||
| 0 or pointer to param block. | ||
| Flag to ignore constraints. | ||
| Treat as Determined, for now. | ||
| Current free value f. | ||
| const | Initial passed value. | |
| static const | tolerance for too near flat part of transformation. | |
| Scaling value s. | ||
| Value at start of iteration. | ||
| Public methods | ||
| virtual | Default decoding: no scaling, no constraining. | |
| virtual | Default encoding: no scaling, no constraining. | |
| virtual | ||
| Create a new parameter. | ||
| virtual | ||
| Reset the parameter to its hard-coded values. | ||
| Reset the starting value of a parameter. | ||
| virtual | Set the value of DoNotVary. | |
| virtual | Toggle the value of DoNotVary. | |
cur.
Algorithms use a point to store temporary values.
| Public fields | ||
| form of aggregation of vfunc() into func(). | ||
| Free vector. | ||
| Gradient | ||
| Hessian | ||
| Jacobian | ||
| \(\sqrt(diag(H-1f))\). | ||
| Structural vector. | ||
| Public methods | ||
| virtual | aggregate blackbox objectives into a scalar value. | |
| virtual | ||
| Public fields | ||
| const | Label | |
| Log file dedicated to this qty. | ||
| position in vector | ||
| Data tracking object. | ||
| Current actual value | ||
| Volume of output. | ||
| Public methods | ||
| Control variable-specifc output. | ||
| Public fields | ||
| const | ||
| const | ||
| Public methods | ||
| virtual | aggregate separable objectives into a scalar value. | |
| Public methods | ||
| Public fields | ||
| static | HTML log is open. | |
| static | directory to put log files in. | |
| static | TRUE if running in parallel and in server mode. | |
| static | time stamp for log files. | |
| static const | Current niqlow version. | |
| Public methods | ||
| static | Check versions and set timestamp, log directory. | |
| Enumerations | ||||||||||||||||||||
| AggregatorTypes | Tags for Types of vector-valued objective Aggregation.
All objectives in FiveO take the form
$$f = \Omega_{i=1}^N v_i.$$
where \(v\) is the vector returned by the Objective::vfunc() method that the user typically
provides for their objective and \(\Omega\) is an aggregator If the objective is a System then this is the system of
equations. The user's objective is called by Objective::vobj() and the
the vector is stored. Then Objective::fobj aggregates the vector into a real number
using one of the aggregators below.
|
LINEAR, LOGLINEAR, MULTIPLICATIVE, MINUSSUMOFSQUARES, SUMOFSQUARES, Aggregators | ||||||||||||||||||
| ConstraintTypes | Tags for Types of Constraints. Used by Constrained objectives. | EQUALITY, INEQUALITY, ConstraintTypes | ||||||||||||||||||
| ConvergenceResults | Code for solutions to Optimization and Non-Linear System solving. | NONE, MAXITERATIONS, FAIL, WEAK, SECONDRESET, STRONG, ConvergenceResults | ||||||||||||||||||
| Names_for_Integers | Pseudonyms for -3, -2, …. | Zero, One, Two, Three, TrackAll, NotInData, UseCurrent, UseCheckPoint, AggGroup, UseDefault, UseLabel, UnInitialized, Impossible, DoAll, NoMatch, AllFixed, AllRand, UseSubSample, ResetValue, IterationFailed, UseGradient, ErgodicDist, CondProbOne, abbrevsz, xax, yax, zax, Naxes, _lo, _hi, GraphLimits | ||||||||||||||||||
| NextTreatmentStates | Possible next treatment phases. | stayinf, gotonextf, exittreatment, NextTreatmentStates | ||||||||||||||||||
| NoiseLevels | Levels of output to produce while executing. | SILENT, QUIET, LOUD, NOISY, NoiseLevels | ||||||||||||||||||
| NormalParams | Tags for parameter vectors of normal distribution. | Nmu, Nsigma, Nrho, NormalParams | ||||||||||||||||||
| ParallelExecutionModes | Modes of Execution when executing in parallel. See BaseTag
|
MultiParamVectors, OneVector, ParallelModes | ||||||||||||||||||
| StateTypes | Codes for Type. These codes (and their order) determine what calculations to do
at the endogenous state \(\theta\).
|
ORDINARY, INSUBSAMPLE, NOTSAMPLED, IGNOREEXOG, LASTT, LASTNOTSAMPLED, TERMINAL, TERMNOTSAMPLED, StateTypeCutoffs | ||||||||||||||||||
| X | anything |
| ... | argument passed to CV() |
X Returns Notes Discrete X->myAV() (any class with the member function defined) Other Object CV(X)
| x | m×n matrix. |
| rho | double [default=1.0] smoothing factor |
| X | a double, integer, static function of the form X() or X(arg), or any object with a member named v. an array of CV compatible elements will return the horizontal concatenation value of the results as matrix. |
| ... | a single argument can be passed along with X(). Further arguments are ignored
X Returns Notes
ActionVariable X->myCV() X's column of values in \(\alpha\)
Other Object X.v If v is a member
array row of CV(X) recursively call CV() or CV(...) for all elements
function X() or X(...) simply call function sending optional arguments as array
all else X CV() of arithmetic objects is the value itself
|
| V | Nx1 x N matrix vector, N > 1. |
| A | matrix |
| N | number of points to return |
| pars | 2x1 vector or array of NormalParams
Nmu mean μ Default=0.0 Nsigma standard deviation σ Default=1.0 |
| P | vector of probabilities, p0, p0, … 1-∑pk |
| X | RxNd matrix of points |
| h | bandwidth |
| x | double or vector. |
| X | RxNd matrix of points |
| h | bandwidth. -1 [default] use Silverman > 0.0 value. |
| M | matrix: matrix to compute (column) moments for |
| rlabels | (optional), array of labels for variables |
| oxf | int, print to screen (default), file, printed to file |
| x | m×n matrix. |
| rho | double [default=1.0] smoothing factor |
| A | matrix |
| B | matrix |
| v | double or column vector. |
| obj | object |
| cname | Class nameArray of class names |
| Fatal | TRUE [default]= end on the error FALSE , only issue warning. SILENT no message, just return outcome |
| msg | Message to print if not SILENT and class fails to match (default message is "Class fails to match") |
| sa | a string or an array of strings |
vararray({"A","B","Joe"}) → "A B Joe "
vararray("A B Joe ") → "A B Joe "
| s | string |
varlist("A B Joe") → {"A","B","Joe"}
varlist("Joe") → "Joe"
| key | string, CGI post keyword |
| title | string, HTML title |
| L | string a label or name for the variable. |
| N | positive integer, number of values. N=1 is a constant. |
| Volume | default=SILENT. NoiseLevels |
| MaxV | non-zero double, default = 1.0 N×1 vector, actual |
| Report | FALSE [default], do not print out current to actual mapping TRUE, print mapping If a double is sent the actual vector to 0,…, MaxV. |
a = new ActionVariable("att",3); // None, half-time, full-time
a -> SetActual(); // AV(a) = 0 .5 1.0
OR:
a -> SetActual(40); // AV(a) = 0 20 40 (hours)
taxbrack = new StateVariable("s",5); //lower bound on tax rate brackets
taxbrack -> SetActual( <0; 20000; 55000; 80000; 165000> );
| x | column vector of values |
| trans | TRUE, calculate f and p like output of Transit() |
v = new Discretized(<0;1;2;3>); v->Approx(<-1.3;1.2;2>,TRUE);After execution, these value will be set:
v.pts = { < 0 //-1.3 is to left of first node
1.0 >, // all weight on the node
< 1 2 // 1.2 is between 2nd and 3rd nodes
0.8 0.2 >, // 20% of the gap between nodes
< 2 // 2 is exactly equal to 3rd node
1.0 > }
v.f = < 0 1 2 3 > // 4 nodes have positive weight
v.p = < 1.0 0.0 0.0 0.0
0.0 0.8 0.2 1.0
0.0 0.0 0.0 1.0 >
| LorN | array of strings (labels) string, a list of labels processed by varlist positive integer, number of equations |
| R | integer, number of replications |
| J | integer, choice dimensions |
| Sigma | J×J variance matrix |
| V | J×1 vector of choice values |
| j | integer, option to simulate probability for |
| V | J×1 vector of choice values Cholesky matrices are updated by (internal) calls to NnotIID::SetC simulated probability and Ev for option j are left in vj and pj |
| n | the order of the polynomial |
| order | integer, M |
GHQ::Initialize(8);
println("E[x*x] = ", GQH::wght * sqr(GQH::nodes) ); // / M_SQRT2PI
∫_0+∞ f(x)exp(-x) ≅ ∑m ωm f(xm)
| order | integer, 2-6, 8, 10, 20, 32 |
| inV=0, | if no argument, V data member holds individual values matrix of separable values to be aggregated within columns |
| outv=0, | if no argument, objective stored in this.v address to return objective The matrix passed as inV should be N×M.
|
v = start; scale = 1.0; f = v;
| L | parameter label |
| ival | initial value Typically a user would create an object of class derived from this base class. This function is called by those derived classes to set common elements of paramters. |
v = start = scale = CV(ival);
f = 1.0;
Encode();
Typically this is called by a method of the Objective to re-initialize
some or all of the parameters that belong to it.
| newv | value to reset at |
| IsCode | TRUE [default] newv is a free value FALSE newv is structural |
| setting | TRUE or FALSE |
| inV=0, | if no argument, V data member holds individual values matrix of separable values to be aggregated within columns |
| outv=0, | if no argument, objective stored in this.v address to return objective The matrix passed as inV should be N×M.
|
| Volume | new NoiseLevels Each quantity variable has a volume setting which is initialized to SILENT. If the new Volume is greater than the current value then a log file is opened if one is not already open. If the new Volume is SILENT and a log file is already open then the log file is closed. |
| inV=0, | if no argument, V data member holds separable values matrix of separable values to be aggregated within columns |
| outv=0, | if no argument, objective stored in this.v address to return objective The matrix passed as inV should be (K×NvfuncTerms)×M. |
| logdir | str (default="."). A directory path or file prefix to attach to all log files. All log files will receive the same time stamp, which is set here. |