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

REST Endpoint: GET: https://rason.net/odata/solvelog

A REST API endpoint that returns the log of solve requests for the requesting user. Fields returned are listed below. Note that a single model is a decision flow with one stage.

  • ResourceID: Resource ID of the model instance. The ResourceID is not updated in the case of scheduled models.
  • SeqNumber: If the model is a scheduled model, this field allows multiple runs of the same model with the same ResourceID.
  • SolverUserID: Requesting User ID
  • Name: Name of submitter.
  • Email: Email of submitter
  • ModelName: Model name
  • ModelVersion: Resource ID of the parent origin/version model, if any.
  • SolveTimeStamp: Complete decision flow solve timestamp.
  • SolveTime: The complete decision flow solve time in seconds.
  • Origin: Submitted user IP address.
  • SubmittedBy: Submitted application type.
  • StatusCode*: Solver final result code for the decision flow.

    StatusMessage*: Solver final result code text message for the decision flow. *See the description for GET rason.net/api/model/{nameorid}/result or the Solver Result Messages chapter within the RASON Reference Guide for detailed information on each possible status code and message.

  • SolveType: Operation performed. See the list below for all solve types.
  • NumStages: Total number of stages in the decision flow.
  • NumAttemptedStages: The number of stages attempted, in the decision flow. This value will be equal to NumSucceededStages if solving the entire flow.
  • NumSucceededStages: The number of stages that succeeded in the decision flow.
  • ManagedModel: If True, this field indicates that the solved model is a managed model. A managed model is a model stored on the RASON.com server and solved with an asynchronous endpoints. (Solves triggered by Analytic Solver Cloud are not included.)
  • CommonSolveType: Endpoint used to solve the model: Unknown, Optimization (\optimize), Simulation (\simulate), Decision (\decision), Datamining (\datamine), Solve (\solve), IISFind (infeasibility report), Diagnosis (\diagnose) or Analysis.
  • CommonStatusCode: Status of the decision flow: Success, Stopped, Invalid or Error.
  • InstanceType: Displays the model instance type: Unknown, Optimization, Simulation, Calculation, Datamining, Flow.
  • ModelKind: Filters on the ModelKind field: ModelKind = Excel (posted Excel model), RASON (RASON models) or LP/MPS models.
  • Stages: Log returned for all stages in the decision flow. (A single model is a decision flow with one stage.)
    • SeqNumber: If running a scheduled model
    • Name: Standalone model or stage name.
    • StageID: Used to locate the stage model. If the decision flow is “in-line, this value will be the same as the enclosing flow. If a reusable model, this value will be the ResourceID of the reusable model.
    • Type: The model type: optimization, simulation, decision, or data science.
    • Kind: Filters on the ModelKind field: ModelKind = Excel (posted Excel model), RASON (RASON model) or LPMPS.
    • Attempted: True if a solve was attempted for this stage; false otherwise.
    • Succeeded: True if the solve of this stage was completed; false otherwise.
    • Skipped: True if this stage was skipped in the decision flow solve. A skipped stage could be due to a failure or reusing previously available results based on Recency.
    • StatusCode: Final status of solve. See the description for GET rason.net/api/model/{nameorid}/result for a list of possible result codes.
    • StatusMessage: Final status of solve. See the Solver Result Messages chapter within the RASON Reference Guide for information on each result.
    • SolveTime: The time (in seconds) to solve this stage.
    • SolveTimestamp: The timestamp of the solve for this stage.
    • Optimization: null, if the stage does not contain an optimization model

      [

      • ResourceID: Resource ID of the model instance
      • SeqNumber: If a scheduled model, this is the sequence number of the model instance.
      • NumVariables: The number of variables in the optimization stage model.
      • NumIntegerVariables: The number of integer variables in the optimization stage model.
      • NumFunctions: Number of constraints plus the objective in the optimization stage model.
      • Type: Optimization type: LP (linear problem), QP (quadratic problem), QCP (quadratically constrained problem), CVX (convex), NLP (nonlinear problem) or NSP (nonsmooth problem).

      ]

    • Simulation: null, if the stage does not contain a simulation model

      [

      • ResourceID: Resource ID of the model instance.
      • SeqNumber: If a scheduled model, this is the sequence number of the model instance.
      • NumUncertainVariables: Total number of uncertain variables in the simulation model.
      • NumUncertain Functions: Total number of uncertain functions in the simulation model.

      ]

    • Calculation: null, if the stage does not contain a calculation, or decision, model

      [

      • ResourceID: Resource ID of the model instance.
      • SeqNumber: If a scheduled model, this is the sequence number of the model instance.
      • NumObservations: Number of observations in the decision model.

      ]

    • DataMining: null, if the stage does not contain a data science or forecasting model

      [

      • ResourceID: Resource ID of the model instance.
      • SeqNumber: If a scheduled model, this is the sequence number of the model instance.
      • NumTrainingRows: Number of rows in the training data.
      • Number of columns in the training data.
      • Type of data science algorithm: classification, regression, transformation, featureSelection, timeSeries, clustering, textMining, bigdata, affinityAnalysis.
      • Algorithm: Data science algorithm.

      ]

SolveType Codes

  • Unknown = 0
  • Optimize = 1
  • Simulate = 2
  • IISFind = 3
  • Diagnose = 4
  • DataMine = 5
  • Calculate = 6
  • Decision = 7
  • Solve = 8
  • QuickOptimize = 101
  • QuickSimulate = 102
  • QuickIISFind = 103
  • QuickDiagnose = 104
  • QuickDataMine = 105
  • QuickCalculate = 106
  • QuickDecision = 107
  • QuickSolve = 108
  • ParameterAnalysis = 200
  • SenParameterAnalysis = 201
  • SimParameterAnalysis = 202
  • DataMineApp=203
  • SolveForRecourseVariables = 1000
  • SolverWithoutIntegers = 1010
  • URL: https://rason.net/odata/solvelog
  • Method: GET
  • URL Params

    Required: None

    Optional: It's possible to use a query param for any of the returned fields described above, for example:

    GET https://rason.net/odata/solvelog?$select=SolveTimeStamp

  • Headers:

    Required: Authorization - Example: Authorization: bearer {your RASON token}

    Optional: None

  • Data Params: None
  • Success Response

    Example Response:

    Code: 200 (OK)

          
            "@odata.context": "https://rason.net/odata/$metadata#SolveLog(Stages(Optimization(),Simulation(),Calculation(),DataMining()))",
            "value": [
              {
                "ResourceID": "2590+2019-11-12-19-24-06-696423",
                "SeqNumber": 0,
                "SolverUserID": 2590,
                "Name": null,
                "Email": null,
                "ModelName": null,
                "ModelVersion": null,
                "SolveTimeStamp": "2019-11-12T19:24:07.353Z",
                "SolveTime": 656,
                "Origin": "98.181.251.23",
                "SubmittedBy": "Unknown",
                "StatusCode": -1,
                "StatusMessage": "Interpret_Err",
                "SolveType": "QuickDecision",
                "NumStages": 0,
                "NumAttemptedStages": 0,
                "NumSucceededStages": 0,
                "ManagedModel": false,
                "CommonSolveType": "Decision",
                "CommonStatusCode": "Error",
                "InstanceType": "Unknown",
                "ModelKind": "Unknown",
                "Stages": []
              },…
    
          
        
Back to GET rason.net/odata/results