Introduction to RASON
About RASON Models and the RASON Server
Rason Subscriptions
Rason Web IDE
Creating and Running a Decision Flow
Defining Your Optimization Model
Defining Your Simulation Model
Performing Sensitivity Analysis
Defining Your Stochastic Optimization Model
Defining Your Data Science Model
Defining Custom Types
Defining Custom Functions
Defining Your Decision Table
Defining Contexts
Using the REST API
REST API Quick Call Endpoints
REST API Endpoints
Decision Flow REST API Endpoints
OData Endpoints
OData Service for Decision Flows
Creating Your Own Application
Using Arrays, For, Loops and Tables
Organization Accounts

Array Formulas

This section discusses array formulas as implemented in the RASON modeling language. In RASON, if an array formula is defined in the constraints section of the model, multiple constraints will be generated. If an array formula evaluates to a scalar value, then it behaves as a standard non-array formula. In sections where the formula property exists (i.e. formulas, constraints, uncertainFunctions, etc), an index operator may be used. The index operator can be applied to arrays (limited to 2-D) or to tables (limited to 8-D). These are called indexed arrays and indexed tables, respectively. (For more information, see the Index Sets section in the RASON Reference Guide.) However, the use of the index property does not necessarily qualify the formula as an array. For example, the following constraint definition is not an array since the result of the formula is a scalar, or single value.

c1 : { formula: "sumproduct(parts['chas',], x)", upper: 450 }

Thus, an indexed formula may not always qualify as an indexed array formula, but an indexed array formula will always be an indexed formula.

Three types of array formulas are supported in the RASON Modeling language

Continue reading to learn about each type of array formulas supported in the RASON modeling language and how each type can be used within tables and arrays in a RASON model.

Back to Using Arrays, For, Loops and Tables