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/api/model/{nameorid}/solve

A REST API endpoint that accepts an analytic model (optimization, simulation, data science or decision table) in JSON and places it in the queue to be solved.

  • URL:

    https://rason.net/api/model/{nameorid}/solve

  • Method: GET
  • URL Params

    Required: None

    Optional: Any data component may be passed as a query parameter if a binding property exists for that parameter. For example, see the RASON example code snippet below.

          
            data: {
              profits: {
              value: [[75, 50, 35]],
              binding: 'get'
            }
          
        

    To change a query parameter outside of the RASON model environment, use:

    $.Post("https://rason.net/api/optimize?profits=100,150,75",...

    RASON Server will map "profits=?" with "profits = 100, 150, 75". A query can return any number of rows that satisfy the filtering condition, from 0 to infinity.

    To perform a query using multiple parameters (say custID, maritalStatus and age) outside of the RASON model environment, use the query parameter:

    $.get(https://rason.net/api/decision? custID=c2&maritalStatus=s&age=40 .....

    Or in general,

    $.get(https://rason.net/api/decision?par1=val1&par2=val2.....

    In a data science model, any datasource component may be passed as a query parameter if a binding property exists for that datasource. For example, see the RASON example code snippet below.

          
            "datasources": {
              "srcCustomers": {
                "type": "csv",  
                "connection": "customers_dt.txt",
                "selection": "custID = $parCustID1 or custID = $parCustID2",
                "parameters": {
                  "parCustID1": {
                    "binding": "get",
                    "value": "c1"
                  },
                  "parCustID2": {
                    "binding": "get",
                    "value": "c3"
                  }
                }
              }
            },
          
        

    To query custID =$parCustID1 or custID=$parCustID2 outside of the RASON model environment, use:

    $.get(https://rason.net/api/datamine?parCustID1=c1&parCustID2=c2…

    Or in general,

    $.get(https://rason.net/api/datamine?par1=val1&par2=val2.....

    RASON Server will map "custID=$parCustID1" with "parCustID1=c1" and "custID = $parCustID2" with "parCustID2=c3". A query can return any number of rows that satisfy the filtering condition, from 0 to infinity.

  • Headers:

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

    Optional: None

  • Data Params: None
  • Success Response:

    Code: 202 (Accepted)

            
          {
            "modelId": "2590+DTDateTimeExample+2020-01-13-20-42-57-538314",
            "modelName": "DTDateTimeExample",
            "modelDescr": "Date and Time Decision Table Examples",
            "modelFiles": null,
            "runtimeToken": "",
            "modelType": 2,
            "modelTypeName": "Instance",
            "isChampion": false,
            "parentModelId": "2590+DTDateTimeExample+2020-01-13-20-42-04-
            307176",
            "queryString": ""
          }
            
          
Back to GET rason.net/api/model/{id}/simulate