Настройка параметров метода «Экспоненциальное сглаживание»

Ниже приведен пример использования операции SetMs для изменения параметров уравнения. В запросах (SOAP, JSON) передаются: экземпляр открытого контейнера моделирования, параметры выполнения операции, настройки уравнения для метода «Экспоненциальное сглаживание» и шаблон получения измененных данных. В результате выполнения операция возвращает модель, содержащую измененное уравнение.

Функции C# SetMsExpSmoothing_grid и SetMsExpSmoothing_opt изменяют метод расчёта уравнения. Входные параметры:

В результате выполнения функция возвращает модель, содержащую уравнение.

Метод автоподбора параметров: поиск по сетке

SOAP-запрос:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SetMs xmlns="http://www.prognoz.ru/PP.SOM.Som">
<tMs xmlns="">
  <id>GDJKDKNCADNBFOAEGIAGHFCPECMLNKAEELPBDMJJHANMFGHH!M!S!CHDHKBONCADNBFOAEGHFNLPPFLAGHDKEEMLCEJLNILCOPLEEN</id>
  </tMs>
<tArg xmlns="">
<pattern>
  <obInst>true</obInst>
<item>
  <key>89669</key>
<problem>
<metamodel>
  <calculationChain>Change</calculationChain>
  </metamodel>
  </problem>
  </item>
  </pattern>
<meta>
<item>
  <k>89669</k>
  <type>Problem</type>
<problemMd>
<metamodel>
<calculationChain>
<its>
<Item>
  <k>4</k>
  <type>Model</type>
<model>
<transform>
<formulas>
<its>
<it>
  <k>0</k>
  <kind>ExponentialSmoothing</kind>
<method>
<exponentialSmoothing>
  <trendComponent>Linear</trendComponent>
  <confidenceLevel>0.96</confidenceLevel>
  <missingData />
<params>
  <alpha>0.12</alpha>
  </params>
  <seasonalComponent />
<autoSearch>
  <mode>Grid</mode>
  <criterion>MeanAbsError</criterion>
<quickestDescent>
<initialApproximation>
  <gamma>0.12</gamma>
  </initialApproximation>
<finalApproximation>
  <gamma>0.92</gamma>
  </finalApproximation>
  <gridStep>0.12</gridStep>
  </quickestDescent>
  <alphaSearch>false</alphaSearch>
  <gammaSearch>true</gammaSearch>
  <deltaSearch>false</deltaSearch>
  <phiSearch>false</phiSearch>
  </autoSearch>
  </exponentialSmoothing>
  </method>
  </it>
  </its>
  </formulas>
  </transform>
  </model>
  </Item>
  </its>
  </calculationChain>
  </metamodel>
  </problemMd>
  </item>
  </meta>
<metaGet>
  <obInst>true</obInst>
  <scenarios>Get</scenarios>
  <period>true</period>
<item>
  <key>89669</key>
<problem>
<metamodel>
  <calculationChain>Get</calculationChain>
<calcChainPattern>
<modelPattern>
<transform>
  <formulaCount>true</formulaCount>
<formulas>
  <method />
  </formulas>
<equationsFormula>
  <method />
  </equationsFormula>
  <kind>true</kind>
  </transform>
  </modelPattern>
  </calcChainPattern>
<visualControllerPattern>
  <variableRubricatorKey>true</variableRubricatorKey>
  <useSourceName>false</useSourceName>
  <freeVariables>true</freeVariables>
  <levelFormat>Short</levelFormat>
  </visualControllerPattern>
  </metamodel>
  <scenarios>Get</scenarios>
  <details>true</details>
  <useSavedCoefficients>true</useSavedCoefficients>
  </problem>
  </item>
  </metaGet>
  </tArg>
  </SetMs>
  </s:Body>
  </s:Envelope>

SOAP-ответ:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<SetMsResult xmlns="http://www.prognoz.ru/PP.SOM.Som" xmlns:q1="http://www.prognoz.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<id xmlns="">
  <id>GDJKDKNCADNBFOAEGIAGHFCPECMLNKAEELPBDMJJHANMFGHH!M!S!CHDHKBONCADNBFOAEGHFNLPPFLAGHDKEEMLCEJLNILCOPLEEN</id>
  </id>
<meta xmlns="">
<obInst>
<obDesc isShortcut="0" isLink="0" fullUrl="http://v-shp-development.dev.fs.fsight.world/" ver="4" hf="0">
  <i>MODELSPACE</i>
  <n>Контейнер моделирования</n>
  <k>1581</k>
  <c>5121</c>
  <p>1580</p>
  <h>0</h>
  <hasPrv>0</hasPrv>
  <ic>0</ic>
  <isPermanent>1</isPermanent>
  <isTemp>0</isTemp>
  </obDesc>
  </obInst>
  <dirty>0</dirty>
<period>
  <start>1970-01-01</start>
  <end>2020-12-31</end>
  </period>
<scenarios>
<nodes>
<it isFolder="0">
  <k>1628</k>
  <id>OBJ1628</id>
  <n>Базовый</n>
  <vis>1</vis>
<scenDesc isShortcut="0" isLink="0" fullUrl="http://v-shp-development.dev.fs.fsight.world/" ver="0" hf="0">
  <i>OBJ1628</i>
  <n>Базовый</n>
  <k>1628</k>
  <c>5124</c>
  <p>1627</p>
  <h>0</h>
  <hasPrv>0</hasPrv>
  <ic>0</ic>
  </scenDesc>
  <internalKey>1629</internalKey>
  </it>
<it isFolder="0">
  <k>5371</k>
  <id>OBJ5371</id>
  <n>Базовый (копия1)</n>
  <vis>1</vis>
<scenDesc isShortcut="0" isLink="0" fullUrl="http://v-shp-development.dev.fs.fsight.world/" ver="0" hf="0">
  <i>OBJ5371</i>
  <n>Базовый (копия1)</n>
  <k>5371</k>
  <c>5124</c>
  <p>1627</p>
  <h>0</h>
  <hasPrv>0</hasPrv>
  <ic>0</ic>
  </scenDesc>
  <internalKey>5372</internalKey>
  </it>
  </nodes>
  </scenarios>
<item>
  <k>89669</k>
  <id>MODEL_NEW</id>
  <n>MODEL_NEW</n>
  <vis>1</vis>
  <type>Problem</type>
<problemMd>
<metamodel>
  <k>89670</k>
<calculationChain>
<its>
<Item>
  <k>1</k>
  <n>MyInputVavable</n>
  <vis>1</vis>
  <type>Variable</type>
  <excluded>0</excluded>
  <graphMeta>{"Geometry":{"x":20,"y":10,"width":150,"height":50},"ChartOptions":{"chart":{"defaultSeriesType":"line","mixed":true,"backgroundColor":"rgba(0, 0, 0, 0.000000)"},"plotOptions":{"series":{"dataLabels":{"formatter":"%Autovalue","dataFormat":"#,##0.00"}}},"tooltip":{"formatter":"Значение: %Autovalue\nДата: %PointName","enabled":true,"backgroundType":"none","style":{"fontFamily":"Arial","fontSize":"12px","color":"#000000"}},"yAxis":[{"labels":{"enabled":true,"dataFormat":"#,##0.00"},"title":{"text":""}}],"xAxis":{"tickInterval":2,"labels":{},"title":{}},"series":[{"entryKey":1,"scenarioKey":4294967295,"serieType":"fact","showInLegend":true,"type":"line","color":"rgba(129, 129, 129, 1)","borderColor":"rgba(129, 129, 129, 1)","borderWidth":0,"lineColor":"rgba(129, 129, 129, 1)","zIndex":1,"legendIndex":0,"visible":true,"background":{"color":"rgba(129, 129, 129, 1)","type":"color"},"marker":{"enabled":false,"symbol":"circle","fillColor":"#FFFFFF","lineWidth":1.5,"lineColor":null},"dataLabels":{"formatter":"%Autovalue"},"trendLine":{}}]}}</graphMeta>
<chainVariable>
<slice>
  <k>0</k>
  <id>MyInputVavable|A</id>
  <n>MyInputVavable|A</n>
  <vis>1</vis>
  <variableKey>1</variableKey>
  <stubKey>89671</stubKey>
<selections>
<its>
<Item>
<id>
  <id>89683</id>
  </id>
  <variant>1</variant>
  </Item>
  </its>
  </selections>
  <aggregator>None</aggregator>
<parametrizedDimensions>
<its>
<Item>
  <dimension>0</dimension>
  <parameter>0</parameter>
  </Item>
  </its>
  </parametrizedDimensions>
<unitInfo>
  <unit>4294967295</unit>
  <measure>4294967295</measure>
  <baseUnit>4294967295</baseUnit>
  <unitsDimensionKey>0</unitsDimensionKey>
  </unitInfo>
  <level>Year</level>
  </slice>
  <fullName>MyInputVavable|A</fullName>
  <originalName>MyInputVavable</originalName>
  <originalShortName>MyInputVavable</originalShortName>
  <useCustomName>0</useCustomName>
  </chainVariable>
  </Item>
<Item>
  <k>2</k>
  <n>MyOutputVavable</n>
  <vis>1</vis>
  <type>Variable</type>
  <excluded>0</excluded>
  <graphMeta>{"Geometry":{"x":30,"y":140,"width":150,"height":50}}</graphMeta>
<chainVariable>
<slice>
  <k>0</k>
  <id>MyOutputVavable|A</id>
  <n>MyOutputVavable|A</n>
  <vis>1</vis>
  <variableKey>2</variableKey>
  <stubKey>89671</stubKey>
<selections>
<its>
<Item>
<id>
  <id>89683</id>
  </id>
  <variant>2</variant>
  </Item>
  </its>
  </selections>
  <aggregator>None</aggregator>
<parametrizedDimensions>
<its>
<Item>
  <dimension>0</dimension>
  <parameter>0</parameter>
  </Item>
  </its>
  </parametrizedDimensions>
<unitInfo>
  <unit>4294967295</unit>
  <measure>4294967295</measure>
  <baseUnit>4294967295</baseUnit>
  <unitsDimensionKey>0</unitsDimensionKey>
  </unitInfo>
  <level>Year</level>
  </slice>
  <fullName>MyOutputVavable|A</fullName>
  <originalName>MyOutputVavable</originalName>
  <originalShortName>MyOutputVavable</originalShortName>
  <useCustomName>0</useCustomName>
  </chainVariable>
  </Item>
<Item>
  <k>4</k>
  <id>OBJ4</id>
  <n>MyOutputVavable|A[t] = An*t^n + ... + A2*t^2 + A1*t + A0, (От родителя)-(От родителя)</n>
  <vis>1</vis>
  <type>Model</type>
  <excluded>0</excluded>
  <graphMeta />
<model>
<transform>
  <formulaCount>1</formulaCount>
<formulas>
<its>
<it>
  <k>0</k>
  <kind>ExponentialSmoothing</kind>
<method>
<exponentialSmoothing>
  <trendComponent>Linear</trendComponent>
  <confidenceLevel>0.96</confidenceLevel>
<missingData>
  <specifiedVector />
  <method>Casewise</method>
  <methodParameter>5</methodParameter>
  <specifiedValue>0</specifiedValue>
<specifiedTerm>
  <k>4294967295</k>
  </specifiedTerm>
  </missingData>
<params>
  <alpha>0.12</alpha>
  <gamma>0.1</gamma>
  <delta>0.1</delta>
  <phi>0.1</phi>
  </params>
<seasonalComponent>
  <mode>None</mode>
  <cycle>4</cycle>
  </seasonalComponent>
<autoSearch>
  <mode>Grid</mode>
  <criterion>MeanAbsError</criterion>
<quickestDescent>
<initialApproximation>
  <alpha>0</alpha>
  <gamma>0.12</gamma>
  <delta>0</delta>
  <phi>0.1</phi>
  </initialApproximation>
<finalApproximation>
  <alpha>1</alpha>
  <gamma>0.92</gamma>
  <delta>1</delta>
  <phi>0.9</phi>
  </finalApproximation>
  <gridStep>0.12</gridStep>
  </quickestDescent>
<bestTrial>
<initialApproximation>
  <alpha>0.1</alpha>
  <gamma>0.1</gamma>
  <delta>0.1</delta>
  <phi>0.1</phi>
  </initialApproximation>
  <order>10</order>
  <methodConstant>0.1</methodConstant>
  <maxIteration>15</maxIteration>
  </bestTrial>
  <alphaSearch>0</alphaSearch>
  <gammaSearch>1</gammaSearch>
  <deltaSearch>0</deltaSearch>
  <phiSearch>0</phiSearch>
  </autoSearch>
<explained>
<slice>
  <k>0</k>
  <id>MyOutputVavable|A</id>
  <n>MyOutputVavable|A</n>
  <vis>1</vis>
  <variableKey>1</variableKey>
  <stubKey>89671</stubKey>
<selections>
<its>
<Item>
<id>
  <id>89683</id>
  </id>
  <variant>2</variant>
  </Item>
  </its>
  </selections>
  <aggregator>None</aggregator>
<parametrizedDimensions>
<its>
<Item>
  <dimension>0</dimension>
  <parameter>0</parameter>
  </Item>
  </its>
  </parametrizedDimensions>
<unitInfo>
  <unit>4294967295</unit>
  <measure>4294967295</measure>
  <baseUnit>4294967295</baseUnit>
  <unitsDimensionKey>0</unitsDimensionKey>
  </unitInfo>
  <level>Year</level>
  </slice>
  <lag />
  <key>0</key>
  <termToText>{MyOutputVavable|A[t]}</termToText>
  <termToInnerText>@_1:0[]</termToInnerText>
<termInfo>
  <k>4294967295</k>
  <lag>0</lag>
<inversion>
  <type>None</type>
  <lag>PrecidingValue</lag>
  <previousLag>-1</previousLag>
  <seasonality>None</seasonality>
  <dependence>Linear</dependence>
  <K>3</K>
  </inversion>
<slice>
  <k>0</k>
  <id>MyOutputVavable|A</id>
  <n>MyOutputVavable|A</n>
  <vis>1</vis>
  <variableKey>1</variableKey>
  <stubKey>89671</stubKey>
<selections>
<its>
<Item>
<id>
  <id>89683</id>
  </id>
  <variant>2</variant>
  </Item>
  </its>
  </selections>
  <aggregator>None</aggregator>
<parametrizedDimensions>
<its>
<Item>
  <dimension>0</dimension>
  <parameter>0</parameter>
  </Item>
  </its>
  </parametrizedDimensions>
<unitInfo>
  <unit>4294967295</unit>
  <measure>4294967295</measure>
  <baseUnit>4294967295</baseUnit>
  <unitsDimensionKey>0</unitsDimensionKey>
  </unitInfo>
  <level>Year</level>
  </slice>
  <date>1899-12-30</date>
  </termInfo>
<unitInfo>
  <unit>4294967295</unit>
  <measure>4294967295</measure>
  <baseUnit>4294967295</baseUnit>
  <unitsDimensionKey>0</unitsDimensionKey>
  </unitInfo>
  <included>0</included>
  </explained>
  <asForecasting>0</asForecasting>
  </exponentialSmoothing>
<inversionInfo>
  <type>None</type>
  <lag>PrecidingValue</lag>
  <previousLag>-1</previousLag>
  <seasonality>None</seasonality>
  <dependence>Linear</dependence>
  <K>3</K>
  </inversionInfo>
  <doUseR>0</doUseR>
  <supportsR>1</supportsR>
  </method>
  <calendarLevel>Year</calendarLevel>
  <outputSliceKey>0</outputSliceKey>
  </it>
  </its>
  </formulas>
  <kind>Simple</kind>
  </transform>
  <warnings />
  <readOnly>0</readOnly>
  </model>
  </Item>
  </its>
  </calculationChain>
<visualController>
  <variableRubricatorKey>89671</variableRubricatorKey>
<freeVariables>
  <its />
  </freeVariables>
  <userRPath />
  <isRExist>0</isRExist>
  </visualController>
<suppressEmptyFilter>
  <suppressEmpty>0</suppressEmpty>
  <suppressEmptyArea>SerieBounds</suppressEmptyArea>
  </suppressEmptyFilter>
  <readOnly>0</readOnly>
  <variableTestUseR>0</variableTestUseR>
  <calculateIdentOnFact>0</calculateIdentOnFact>
  </metamodel>
<scenarios>
  <its />
  </scenarios>
<details>
<period>
  <identificationStartDate>1990-01-01</identificationStartDate>
  <identificationEndDate>2018-04-24</identificationEndDate>
  <forecastStartDate>2018-04-25</forecastStartDate>
  <forecastEndDate>2020-01-01</forecastEndDate>
  <identificationStartDateParamID />
  <identificationEndDateParamID />
  <forecastStartDateParamID />
  <forecastEndDateParamID />
  <autoPeriod>0</autoPeriod>
  <identificationStartOffset>0</identificationStartOffset>
  <identificationEndOffset>0</identificationEndOffset>
  <forecastEndOffset>0</forecastEndOffset>
  <isIdentStartCorrect>1</isIdentStartCorrect>
  <isIdentEndCorrect>1</isIdentEndCorrect>
  <isForecastEndCorrect>1</isForecastEndCorrect>
  </period>
  <currentPoint>2018-04-25</currentPoint>
  </details>
  <useSavedCoefficients>0</useSavedCoefficients>
  <useScenarios>0</useScenarios>
  <readOnly>0</readOnly>
  </problemMd>
  </item>
  </meta>
  </SetMsResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON-запрос:

{
 "SetMs" : 
  {
   "tMs" : 
    {
     "id" : "GDJKDKNCADNBFOAEGIAGHFCPECMLNKAEELPBDMJJHANMFGHH!M!S!CHDHKBONCADNBFOAEGHFNLPPFLAGHDKEEMLCEJLNILCOPLEEN"
    },
   "tArg" : 
    {
     "pattern" : 
      {
       "obInst" : "true",
       "item" : 
        {
         "key" : "89669",
         "problem" : 
          {
           "metamodel" : 
            {
             "calculationChain" : "Change"
            }
          }
        }
      },
     "meta" : 
      {
       "item" : 
        {
         "k" : "89669",
         "type" : "Problem",
         "problemMd" : 
          {
           "metamodel" : 
            {
             "calculationChain" : 
              {
               "its" : 
                {
                 "Item" : 
                  {
                   "k" : "4",
                   "type" : "Model",
                   "model" : 
                    {
                     "transform" : 
                      {
                       "formulas" : 
                        {
                         "its" : 
                          {
                           "it" : 
                            [
                              {
                               "k" : "0",
                               "kind" : "ExponentialSmoothing",
                               "method" : 
                                {
                                 "exponentialSmoothing" : 
                                  {
                                   "trendComponent" : "Linear",
                                   "confidenceLevel" : "0.96",
                                   "missingData" : "",
                                   "params" : 
                                    {
                                     "alpha" : "0.12"
                                    },
                                   "seasonalComponent" : "",
                                   "autoSearch" : 
                                    {
                                     "mode" : "Grid",
                                     "criterion" : "MeanAbsError",
                                     "quickestDescent" : 
                                      {
                                       "initialApproximation" : 
                                        {
                                         "gamma" : "0.12"
                                        },
                                       "finalApproximation" : 
                                        {
                                         "gamma" : "0.92"
                                        },
                                       "gridStep" : "0.12"
                                      },
                                     "alphaSearch" : "false",
                                     "gammaSearch" : "true",
                                     "deltaSearch" : "false",
                                     "phiSearch" : "false"
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
     "metaGet" : 
      {
       "obInst" : "true",
       "scenarios" : "Get",
       "period" : "true",
       "item" : 
        {
         "key" : "89669",
         "problem" : 
          {
           "metamodel" : 
            {
             "calculationChain" : "Get",
             "calcChainPattern" : 
              {
               "modelPattern" : 
                {
                 "transform" : 
                  {
                   "formulaCount" : "true",
                   "formulas" : 
                    {
                     "method" : ""
                    },
                   "equationsFormula" : 
                    {
                     "method" : ""
                    },
                   "kind" : "true"
                  }
                }
              },
             "visualControllerPattern" : 
              {
               "variableRubricatorKey" : "true",
               "useSourceName" : "false",
               "freeVariables" : "true",
               "levelFormat" : "Short"
              }
            },
           "scenarios" : "Get",
           "details" : "true",
           "useSavedCoefficients" : "true"
          }
        }
      }
    }
  }
}

JSON-ответ:

{
 "SetMsResult" : 
  {
   "id" : 
    {
     "id" : "GDJKDKNCADNBFOAEGIAGHFCPECMLNKAEELPBDMJJHANMFGHH!M!S!CHDHKBONCADNBFOAEGHFNLPPFLAGHDKEEMLCEJLNILCOPLEEN"
    },
   "meta" : 
    {
     "obInst" : 
      {
       "obDesc" : 
        {
         "@fullUrl" : "http:\/\/v-shp-development.dev.fs.fsight.world\/",
         "@isShortcut" : "0",
         "@isLink" : "0",
         "@ver" : "4",
         "@hf" : "0",
         "i" : "MODELSPACE",
         "n" : "Контейнер моделирования",
         "k" : "1581",
         "c" : "5121",
         "p" : "1580",
         "h" : "0",
         "hasPrv" : "0",
         "ic" : "0",
         "isPermanent" : "1",
         "isTemp" : "0"
        }
      },
     "dirty" : "0",
     "period" : 
      {
       "start" : "1970-01-01",
       "end" : "2020-12-31"
      },
     "scenarios" : 
      {
       "nodes" : 
        {
         "it" : 
          [
            {
             "@isFolder" : "0",
             "k" : "1628",
             "id" : "OBJ1628",
             "n" : "Базовый",
             "vis" : "1",
             "scenDesc" : 
              {
               "@fullUrl" : "http:\/\/v-shp-development.dev.fs.fsight.world\/",
               "@isShortcut" : "0",
               "@isLink" : "0",
               "@ver" : "0",
               "@hf" : "0",
               "i" : "OBJ1628",
               "n" : "Базовый",
               "k" : "1628",
               "c" : "5124",
               "p" : "1627",
               "h" : "0",
               "hasPrv" : "0",
               "ic" : "0"
              },
             "internalKey" : "1629"
            },
            {
             "@isFolder" : "0",
             "k" : "5371",
             "id" : "OBJ5371",
             "n" : "Базовый (копия1)",
             "vis" : "1",
             "scenDesc" : 
              {
               "@fullUrl" : "http:\/\/v-shp-development.dev.fs.fsight.world\/",
               "@isShortcut" : "0",
               "@isLink" : "0",
               "@ver" : "0",
               "@hf" : "0",
               "i" : "OBJ5371",
               "n" : "Базовый (копия1)",
               "k" : "5371",
               "c" : "5124",
               "p" : "1627",
               "h" : "0",
               "hasPrv" : "0",
               "ic" : "0"
              },
             "internalKey" : "5372"
            }
          ]
        }
      },
     "item" : 
      {
       "k" : "89669",
       "id" : "MODEL_NEW",
       "n" : "MODEL_NEW",
       "vis" : "1",
       "type" : "Problem",
       "problemMd" : 
        {
         "metamodel" : 
          {
           "k" : "89670",
           "calculationChain" : 
            {
             "its" : 
              {
               "Item" : 
                [
                  {
                   "k" : "1",
                   "n" : "MyInputVavable",
                   "vis" : "1",
                   "type" : "Variable",
                   "excluded" : "0",
                   "graphMeta" : "{"Geometry":{"x":20,"y":10,"width":150,"height":50},"ChartOptions":{"chart":{"defaultSeriesType":"line","mixed":true,"backgroundColor":"rgba(0, 0, 0, 0.000000)"},"plotOptions":{"series":{"dataLabels":{"formatter":"%Autovalue","dataFormat":"#,##0.00"}}},"tooltip":{"formatter":"Значение: %Autovalue\nДата: %PointName","enabled":true,"backgroundType":"none","style":{"fontFamily":"Arial","fontSize":"12px","color":"#000000"}},"yAxis":[{"labels":{"enabled":true,"dataFormat":"#,##0.00"},"title":{"text":""}}],"xAxis":{"tickInterval":2,"labels":{},"title":{}},"series":[{"entryKey":1,"scenarioKey":4294967295,"serieType":"fact","showInLegend":true,"type":"line","color":"rgba(129, 129, 129, 1)","borderColor":"rgba(129, 129, 129, 1)","borderWidth":0,"lineColor":"rgba(129, 129, 129, 1)","zIndex":1,"legendIndex":0,"visible":true,"background":{"color":"rgba(129, 129, 129, 1)","type":"color"},"marker":{"enabled":false,"symbol":"circle","fillColor":"#FFFFFF","lineWidth":1.5,"lineColor":null},"dataLabels":{"formatter":"%Autovalue"},"trendLine":{}}]}}",
                   "chainVariable" : 
                    {
                     "slice" : 
                      {
                       "k" : "0",
                       "id" : "MyInputVavable|A",
                       "n" : "MyInputVavable|A",
                       "vis" : "1",
                       "variableKey" : "1",
                       "stubKey" : "89671",
                       "selections" : 
                        {
                         "its" : 
                          {
                           "Item" : 
                            {
                             "id" : 
                              {
                               "id" : "89683"
                              },
                             "variant" : "1"
                            }
                          }
                        },
                       "aggregator" : "None",
                       "parametrizedDimensions" : 
                        {
                         "its" : 
                          {
                           "Item" : 
                            {
                             "dimension" : "0",
                             "parameter" : "0"
                            }
                          }
                        },
                       "unitInfo" : 
                        {
                         "unit" : "4294967295",
                         "measure" : "4294967295",
                         "baseUnit" : "4294967295",
                         "unitsDimensionKey" : "0"
                        },
                       "level" : "Year"
                      },
                     "fullName" : "MyInputVavable|A",
                     "originalName" : "MyInputVavable",
                     "originalShortName" : "MyInputVavable",
                     "useCustomName" : "0"
                    }
                  },
                  {
                   "k" : "2",
                   "n" : "MyOutputVavable",
                   "vis" : "1",
                   "type" : "Variable",
                   "excluded" : "0",
                   "graphMeta" : "{"Geometry":{"x":30,"y":140,"width":150,"height":50}}",
                   "chainVariable" : 
                    {
                     "slice" : 
                      {
                       "k" : "0",
                       "id" : "MyOutputVavable|A",
                       "n" : "MyOutputVavable|A",
                       "vis" : "1",
                       "variableKey" : "2",
                       "stubKey" : "89671",
                       "selections" : 
                        {
                         "its" : 
                          {
                           "Item" : 
                            {
                             "id" : 
                              {
                               "id" : "89683"
                              },
                             "variant" : "2"
                            }
                          }
                        },
                       "aggregator" : "None",
                       "parametrizedDimensions" : 
                        {
                         "its" : 
                          {
                           "Item" : 
                            {
                             "dimension" : "0",
                             "parameter" : "0"
                            }
                          }
                        },
                       "unitInfo" : 
                        {
                         "unit" : "4294967295",
                         "measure" : "4294967295",
                         "baseUnit" : "4294967295",
                         "unitsDimensionKey" : "0"
                        },
                       "level" : "Year"
                      },
                     "fullName" : "MyOutputVavable|A",
                     "originalName" : "MyOutputVavable",
                     "originalShortName" : "MyOutputVavable",
                     "useCustomName" : "0"
                    }
                  },
                  {
                   "k" : "4",
                   "id" : "OBJ4",
                   "n" : "MyOutputVavable|A[t] = An*t^n + ... + A2*t^2 + A1*t + A0, (От родителя)-(От родителя)",
                   "vis" : "1",
                   "type" : "Model",
                   "excluded" : "0",
                   "graphMeta" : "",
                   "model" : 
                    {
                     "transform" : 
                      {
                       "formulaCount" : "1",
                       "formulas" : 
                        {
                         "its" : 
                          {
                           "it" : 
                            [
                              {
                               "k" : "0",
                               "kind" : "ExponentialSmoothing",
                               "method" : 
                                {
                                 "exponentialSmoothing" : 
                                  {
                                   "trendComponent" : "Linear",
                                   "confidenceLevel" : "0.96",
                                   "missingData" : 
                                    {
                                     "specifiedVector" : "",
                                     "method" : "Casewise",
                                     "methodParameter" : "5",
                                     "specifiedValue" : "0",
                                     "specifiedTerm" : 
                                      {
                                       "k" : "4294967295"
                                      }
                                    },
                                   "params" : 
                                    {
                                     "alpha" : "0.12",
                                     "gamma" : "0.1",
                                     "delta" : "0.1",
                                     "phi" : "0.1"
                                    },
                                   "seasonalComponent" : 
                                    {
                                     "mode" : "None",
                                     "cycle" : "4"
                                    },
                                   "autoSearch" : 
                                    {
                                     "mode" : "Grid",
                                     "criterion" : "MeanAbsError",
                                     "quickestDescent" : 
                                      {
                                       "initialApproximation" : 
                                        {
                                         "alpha" : "0",
                                         "gamma" : "0.12",
                                         "delta" : "0",
                                         "phi" : "0.1"
                                        },
                                       "finalApproximation" : 
                                        {
                                         "alpha" : "1",
                                         "gamma" : "0.92",
                                         "delta" : "1",
                                         "phi" : "0.9"
                                        },
                                       "gridStep" : "0.12"
                                      },
                                     "bestTrial" : 
                                      {
                                       "initialApproximation" : 
                                        {
                                         "alpha" : "0.1",
                                         "gamma" : "0.1",
                                         "delta" : "0.1",
                                         "phi" : "0.1"
                                        },
                                       "order" : "10",
                                       "methodConstant" : "0.1",
                                       "maxIteration" : "15"
                                      },
                                     "alphaSearch" : "0",
                                     "gammaSearch" : "1",
                                     "deltaSearch" : "0",
                                     "phiSearch" : "0"
                                    },
                                   "explained" : 
                                    {
                                     "slice" : 
                                      {
                                       "k" : "0",
                                       "id" : "MyOutputVavable|A",
                                       "n" : "MyOutputVavable|A",
                                       "vis" : "1",
                                       "variableKey" : "1",
                                       "stubKey" : "89671",
                                       "selections" : 
                                        {
                                         "its" : 
                                          {
                                           "Item" : 
                                            {
                                             "id" : 
                                              {
                                               "id" : "89683"
                                              },
                                             "variant" : "2"
                                            }
                                          }
                                        },
                                       "aggregator" : "None",
                                       "parametrizedDimensions" : 
                                        {
                                         "its" : 
                                          {
                                           "Item" : 
                                            {
                                             "dimension" : "0",
                                             "parameter" : "0"
                                            }
                                          }
                                        },
                                       "unitInfo" : 
                                        {
                                         "unit" : "4294967295",
                                         "measure" : "4294967295",
                                         "baseUnit" : "4294967295",
                                         "unitsDimensionKey" : "0"
                                        },
                                       "level" : "Year"
                                      },
                                     "lag" : "",
                                     "key" : "0",
                                     "termToText" : "{MyOutputVavable|A[t]}",
                                     "termToInnerText" : "@_1:0[]",
                                     "termInfo" : 
                                      {
                                       "k" : "4294967295",
                                       "lag" : "0",
                                       "inversion" : 
                                        {
                                         "type" : "None",
                                         "lag" : "PrecidingValue",
                                         "previousLag" : "-1",
                                         "seasonality" : "None",
                                         "dependence" : "Linear",
                                         "K" : "3"
                                        },
                                       "slice" : 
                                        {
                                         "k" : "0",
                                         "id" : "MyOutputVavable|A",
                                         "n" : "MyOutputVavable|A",
                                         "vis" : "1",
                                         "variableKey" : "1",
                                         "stubKey" : "89671",
                                         "selections" : 
                                          {
                                           "its" : 
                                            {
                                             "Item" : 
                                              {
                                               "id" : 
                                                {
                                                 "id" : "89683"
                                                },
                                               "variant" : "2"
                                              }
                                            }
                                          },
                                         "aggregator" : "None",
                                         "parametrizedDimensions" : 
                                          {
                                           "its" : 
                                            {
                                             "Item" : 
                                              {
                                               "dimension" : "0",
                                               "parameter" : "0"
                                              }
                                            }
                                          },
                                         "unitInfo" : 
                                          {
                                           "unit" : "4294967295",
                                           "measure" : "4294967295",
                                           "baseUnit" : "4294967295",
                                           "unitsDimensionKey" : "0"
                                          },
                                         "level" : "Year"
                                        },
                                       "date" : "1899-12-30"
                                      },
                                     "unitInfo" : 
                                      {
                                       "unit" : "4294967295",
                                       "measure" : "4294967295",
                                       "baseUnit" : "4294967295",
                                       "unitsDimensionKey" : "0"
                                      },
                                     "included" : "0"
                                    },
                                   "asForecasting" : "0"
                                  },
                                 "inversionInfo" : 
                                  {
                                   "type" : "None",
                                   "lag" : "PrecidingValue",
                                   "previousLag" : "-1",
                                   "seasonality" : "None",
                                   "dependence" : "Linear",
                                   "K" : "3"
                                  },
                                 "doUseR" : "0",
                                 "supportsR" : "1"
                                },
                               "calendarLevel" : "Year",
                               "outputSliceKey" : "0"
                              }
                            ]
                          }
                        },
                       "kind" : "Simple"
                      },
                     "warnings" : "",
                     "readOnly" : "0"
                    }
                  }
                ]
              }
            },
           "visualController" : 
            {
             "variableRubricatorKey" : "89671",
             "freeVariables" : 
              {
               "its" : ""
              },
             "userRPath" : "",
             "isRExist" : "0"
            },
           "suppressEmptyFilter" : 
            {
             "suppressEmpty" : "0",
             "suppressEmptyArea" : "SerieBounds"
            },
           "readOnly" : "0",
           "variableTestUseR" : "0",
           "calculateIdentOnFact" : "0"
          },
         "scenarios" : 
          {
           "its" : ""
          },
         "details" : 
          {
           "period" : 
            {
             "identificationStartDate" : "1990-01-01",
             "identificationEndDate" : "2018-04-24",
             "forecastStartDate" : "2018-04-25",
             "forecastEndDate" : "2020-01-01",
             "identificationStartDateParamID" : "",
             "identificationEndDateParamID" : "",
             "forecastStartDateParamID" : "",
             "forecastEndDateParamID" : "",
             "autoPeriod" : "0",
             "identificationStartOffset" : "0",
             "identificationEndOffset" : "0",
             "forecastEndOffset" : "0",
             "isIdentStartCorrect" : "1",
             "isIdentEndCorrect" : "1",
             "isForecastEndCorrect" : "1"
            },
           "currentPoint" : "2018-04-25"
          },
         "useSavedCoefficients" : "0",
         "useScenarios" : "0",
         "readOnly" : "0"
        }
      }
    }
  }
}
public static MsItem SetMsExpSmoothing_grid(MsId ms, ulong modelKey, ulong eqKey)
{
    var setMsOp = new SetMs();
    // Задаем параметры выполнения операции
    setMsOp.tMs = ms;
    setMsOp.tArg = new SetMsArg()
    {  // Задаем шаблон изменения данных
        pattern = new MsMdPattern()
        {
            item = new MsItemPattern()
            {  // Указываем ключ уравнения
                key = modelKey,
                problem = new MsProblemPattern()
                {
                    metamodel = new MsMetaModelPattern()
                    {
                        calculationChain = ListOperation.Change 
                    }
                }                
            }
        },
        // Задаем данные, которые необходимо изменить
        meta = new MsMd()
        {
            item = new MsItem()
            {  
                k = modelKey,
                type = MsItemType.Problem,
                problemMd = new MsProblem()
                {
                    metamodel = new MsMetaModel()
                    {
                        calculationChain = new MsCalculationChainEntries()
                        {
                            its = new MsCalculationChainEntry[] 
                            {
                                new MsCalculationChainEntry()
                                {
                                    k = eqKey,
                                    type = MsCalculationChainType.Model,
                                    model = new MsModel()
                                    {
                                        transform = new MsFormulaTransform()
                                        {
                                            formulas = new TsFormulas()
                                            {
                                                its = new TsFormula[]
                                                {
                                                    new TsFormula()
                                                    {
                                                        kind = TsFormulaKind.ExponentialSmoothing,
                                                        method = new TsMethod()
                                                        {   // Задаем параметры метода «Экспоненциальное сглаживание»                                     
                                                            exponentialSmoothing = new TsExponentialSmoothingMethod()
                                                            {  // Задаем значимость доверительных границ
                                                                confidenceLevel = 0.96,                                                                                           
                                                                // Задаём сезонный эффект
                                                                seasonalComponent = new StatSeasonal(){},
                                                                // Задаём параметры обработки пропусков
                                                                missingData = new StatMissingData(){}, 
                                                                // Задаём модель роста: аддитивная
                                                                trendComponent = StatTrendType.Linear,
                                                                // Задаём значения коэффициентов
                                                                @params = new ExponentialSmoothingParams()
                                                                {
                                                                    alpha = 0.12, delta = null,
                                                                    gamma = null, phi = null
                                                                }, // Задаём параметры автоподбора значений коэффициентов
                                                                autoSearch = new ExponentialSmoothingAutoSearch()
                                                                {   // Задаём подбираемые коэффициенты
                                                                    alphaSearch = false, deltaSearch = false,
                                                                    gammaSearch = true, phiSearch = false,
                                                                    // Задаём параметры метода «Поиск по сетке» 
                                                                    mode = StatSearchType.Grid,
                                                                    quickestDescent =new ExponentialSmoothingQuickestDescentParams()
                                                                    {   // Задаём значения начала интервала поиска
                                                                        initialApproximation = new ExponentialSmoothingParams()
                                                                        {
                                                                            alpha = null, delta = null,
                                                                            gamma = 0.12, phi = null
                                                                        }, // Задаём значения конца интервала поиска                                                  
                                                                        finalApproximation = new ExponentialSmoothingParams()
                                                                        {
                                                                            alpha = null, delta = null,
                                                                            gamma = 0.92, phi = null
                                                                        }, // Задаём шаг сетки
                                                                        gridStep = 0.12
                                                                    },
                                                                    criterion = StatCriterionType.MeanAbsError
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }, // Задаем шаблон извлечения измененных данных
        metaGet = new MsMdPattern()
        {
            scenarios = ListOperation.Get,
            period = true,
            item = new MsItemPattern()
            {
                key = modelKey,
                problem = new MsProblemPattern()
                {
                    details = true,
                    scenarios = ListOperation.Get,
                    useSavedCoefficients = true,
                    metamodel = new MsMetaModelPattern()
                    {
                        calculationChain = ListOperation.Get,
                        calcChainPattern = new MsCalculationChainPattern()
                        {
                            modelPattern = new MsModelPattern()
                            {
                                transform = new MsFormulaTransformPattern()
                                {
                                    kind = true,
                                    formulaCount = true,
                                    formulas = new TsFormulaPattern()
                                    {
                                        method = new TsMethodPattern() { }
                                    },
                                    equationsFormula = new TsFormulaPattern()
                                    {
                                        method = new TsMethodPattern() { }
                                    }
                                }
                            }
                        },
                        visualControllerPattern = new MsMetaModelVisualControllerPattern()
                        {
                            variableRubricatorKey = true,
                            levelFormat = MsLevelFormat.Short,
                            useSourceName = false,
                            freeVariables = true
                        }
                    }
                }
            }
        }
    };
    // Создаем прокси-объект для выполнения операции
    var somClient = new SomPortTypeClient();
    // Задаем параметры выполнения операции
    var result = somClient.SetMs(setMsOp);
    return result.meta.item;
}

Метод автоподбора параметров: метод наилучшей пробы

SOAP-запрос:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SetMs xmlns="http://www.prognoz.ru/PP.SOM.Som">
<tMs xmlns="">
  <id>FOHJOFJNADNBFOAEPDEIMKPCLJLPFLDEBILEJKOJMGKNANDD!M!S!CDJFPKJJNADNBFOAENAKODJNNPDGOIFMEKIFADEIKBFGIGHID</id>
  </tMs>
<tArg xmlns="">
<pattern>
  <obInst>true</obInst>
<item>
  <key>89669</key>
<problem>
<metamodel>
  <calculationChain>Change</calculationChain>
  </metamodel>
  </problem>
  </item>
  </pattern>
<meta>
<item>
  <k>89669</k>
  <type>Problem</type>
<problemMd>
<metamodel>
<calculationChain>
<its>
<Item>
  <k>4</k>
  <type>Model</type>
<model>
<transform>
<formulas>
<its>
<it>
  <k>0</k>
  <kind>ExponentialSmoothing</kind>
<method>
<exponentialSmoothing>
  <trendComponent>Linear</trendComponent>
<params>
  <alpha>0.12</alpha>
  </params>
<autoSearch>
  <mode>Optimal</mode>
  <criterion>MeanError</criterion>
<bestTrial>
<initialApproximation>
  <gamma>0.12</gamma>
  </initialApproximation>
  <order>9</order>
  <methodConstant>0.15</methodConstant>
  <maxIteration>20</maxIteration>
  </bestTrial>
  <alphaSearch>false</alphaSearch>
  <gammaSearch>true</gammaSearch>
  <deltaSearch>false</deltaSearch>
  <phiSearch>false</phiSearch>
  </autoSearch>
  </exponentialSmoothing>
  </method>
  </it>
  </its>
  </formulas>
  </transform>
  </model>
  </Item>
  </its>
  </calculationChain>
  </metamodel>
  </problemMd>
  </item>
  </meta>
<metaGet>
  <obInst>true</obInst>
  <scenarios>Get</scenarios>
  <period>true</period>
<item>
  <key>89669</key>
<problem>
<metamodel>
  <calculationChain>Get</calculationChain>
<calcChainPattern>
<modelPattern>
<transform>
  <formulaCount>true</formulaCount>
<formulas>
  <method />
  </formulas>
<equationsFormula>
  <method />
  </equationsFormula>
  <kind>true</kind>
  </transform>
  </modelPattern>
  </calcChainPattern>
<visualControllerPattern>
  <variableRubricatorKey>true</variableRubricatorKey>
  <useSourceName>false</useSourceName>
  <freeVariables>true</freeVariables>
  <levelFormat>Short</levelFormat>
  </visualControllerPattern>
  </metamodel>
  <scenarios>Get</scenarios>
  <details>true</details>
  <useSavedCoefficients>true</useSavedCoefficients>
  </problem>
  </item>
  </metaGet>
  </tArg>
  </SetMs>
  </s:Body>
  </s:Envelope>

SOAP-ответ:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<SetMsResult xmlns="http://www.prognoz.ru/PP.SOM.Som" xmlns:q1="http://www.prognoz.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<id xmlns="">
  <id>FOHJOFJNADNBFOAEPDEIMKPCLJLPFLDEBILEJKOJMGKNANDD!M!S!CDJFPKJJNADNBFOAENAKODJNNPDGOIFMEKIFADEIKBFGIGHID</id>
  </id>
<meta xmlns="">
<obInst>
<obDesc isShortcut="0" isLink="0" fullUrl="http://v-shp-development.dev.fs.fsight.world/" ver="4" hf="0">
  <i>MODELSPACE</i>
  <n>Контейнер моделирования</n>
  <k>1581</k>
  <c>5121</c>
  <p>1580</p>
  <h>0</h>
  <hasPrv>0</hasPrv>
  <ic>0</ic>
  <isPermanent>1</isPermanent>
  <isTemp>0</isTemp>
  </obDesc>
  </obInst>
  <dirty>0</dirty>
<period>
  <start>1970-01-01</start>
  <end>2020-12-31</end>
  </period>
<scenarios>
<nodes>
<it isFolder="0">
  <k>1628</k>
  <id>OBJ1628</id>
  <n>Базовый</n>
  <vis>1</vis>
<scenDesc isShortcut="0" isLink="0" fullUrl="http://v-shp-development.dev.fs.fsight.world/" ver="0" hf="0">
  <i>OBJ1628</i>
  <n>Базовый</n>
  <k>1628</k>
  <c>5124</c>
  <p>1627</p>
  <h>0</h>
  <hasPrv>0</hasPrv>
  <ic>0</ic>
  </scenDesc>
  <internalKey>1629</internalKey>
  </it>
<it isFolder="0">
  <k>5371</k>
  <id>OBJ5371</id>
  <n>Базовый (копия1)</n>
  <vis>1</vis>
<scenDesc isShortcut="0" isLink="0" fullUrl="http://v-shp-development.dev.fs.fsight.world/" ver="0" hf="0">
  <i>OBJ5371</i>
  <n>Базовый (копия1)</n>
  <k>5371</k>
  <c>5124</c>
  <p>1627</p>
  <h>0</h>
  <hasPrv>0</hasPrv>
  <ic>0</ic>
  </scenDesc>
  <internalKey>5372</internalKey>
  </it>
  </nodes>
  </scenarios>
<item>
  <k>89669</k>
  <id>MODEL_NEW</id>
  <n>MODEL_NEW</n>
  <vis>1</vis>
  <type>Problem</type>
<problemMd>
<metamodel>
  <k>89670</k>
<calculationChain>
<its>
<Item>
  <k>1</k>
  <n>MyInputVavable</n>
  <vis>1</vis>
  <type>Variable</type>
  <excluded>0</excluded>
  <graphMeta>{"Geometry":{"x":20,"y":10,"width":150,"height":50},"ChartOptions":{"chart":{"defaultSeriesType":"line","mixed":true,"backgroundColor":"rgba(0, 0, 0, 0.000000)"},"plotOptions":{"series":{"dataLabels":{"formatter":"%Autovalue","dataFormat":"#,##0.00"}}},"tooltip":{"formatter":"Значение: %Autovalue\nДата: %PointName","enabled":true,"backgroundType":"none","style":{"fontFamily":"Arial","fontSize":"12px","color":"#000000"}},"yAxis":[{"labels":{"enabled":true,"dataFormat":"#,##0.00"},"title":{"text":""}}],"xAxis":{"tickInterval":2,"labels":{},"title":{}},"series":[{"entryKey":1,"scenarioKey":4294967295,"serieType":"fact","showInLegend":true,"type":"line","color":"rgba(129, 129, 129, 1)","borderColor":"rgba(129, 129, 129, 1)","borderWidth":0,"lineColor":"rgba(129, 129, 129, 1)","zIndex":1,"legendIndex":0,"visible":true,"background":{"color":"rgba(129, 129, 129, 1)","type":"color"},"marker":{"enabled":false,"symbol":"circle","fillColor":"#FFFFFF","lineWidth":1.5,"lineColor":null},"dataLabels":{"formatter":"%Autovalue"},"trendLine":{}}]}}</graphMeta>
<chainVariable>
<slice>
  <k>0</k>
  <id>MyInputVavable|A</id>
  <n>MyInputVavable|A</n>
  <vis>1</vis>
  <variableKey>1</variableKey>
  <stubKey>89671</stubKey>
<selections>
<its>
<Item>
<id>
  <id>89683</id>
  </id>
  <variant>1</variant>
  </Item>
  </its>
  </selections>
  <aggregator>None</aggregator>
<parametrizedDimensions>
<its>
<Item>
  <dimension>0</dimension>
  <parameter>0</parameter>
  </Item>
  </its>
  </parametrizedDimensions>
<unitInfo>
  <unit>4294967295</unit>
  <measure>4294967295</measure>
  <baseUnit>4294967295</baseUnit>
  <unitsDimensionKey>0</unitsDimensionKey>
  </unitInfo>
  <level>Year</level>
  </slice>
  <fullName>MyInputVavable|A</fullName>
  <originalName>MyInputVavable</originalName>
  <originalShortName>MyInputVavable</originalShortName>
  <useCustomName>0</useCustomName>
  </chainVariable>
  </Item>
<Item>
  <k>2</k>
  <n>MyOutputVavable</n>
  <vis>1</vis>
  <type>Variable</type>
  <excluded>0</excluded>
  <graphMeta>{"Geometry":{"x":30,"y":140,"width":150,"height":50}}</graphMeta>
<chainVariable>
<slice>
  <k>0</k>
  <id>MyOutputVavable|A</id>
  <n>MyOutputVavable|A</n>
  <vis>1</vis>
  <variableKey>2</variableKey>
  <stubKey>89671</stubKey>
<selections>
<its>
<Item>
<id>
  <id>89683</id>
  </id>
  <variant>2</variant>
  </Item>
  </its>
  </selections>
  <aggregator>None</aggregator>
<parametrizedDimensions>
<its>
<Item>
  <dimension>0</dimension>
  <parameter>0</parameter>
  </Item>
  </its>
  </parametrizedDimensions>
<unitInfo>
  <unit>4294967295</unit>
  <measure>4294967295</measure>
  <baseUnit>4294967295</baseUnit>
  <unitsDimensionKey>0</unitsDimensionKey>
  </unitInfo>
  <level>Year</level>
  </slice>
  <fullName>MyOutputVavable|A</fullName>
  <originalName>MyOutputVavable</originalName>
  <originalShortName>MyOutputVavable</originalShortName>
  <useCustomName>0</useCustomName>
  </chainVariable>
  </Item>
<Item>
  <k>4</k>
  <id>OBJ4</id>
  <n>MyOutputVavable|A[t] = ExpSmooth(0.12, -, Авто, -), (От родителя)-(От родителя)</n>
  <vis>1</vis>
  <type>Model</type>
  <excluded>0</excluded>
  <graphMeta />
<model>
<transform>
  <formulaCount>1</formulaCount>
<formulas>
<its>
<it>
  <k>0</k>
  <kind>ExponentialSmoothing</kind>
<method>
<exponentialSmoothing>
  <trendComponent>Linear</trendComponent>
  <confidenceLevel>0.96</confidenceLevel>
<missingData>
  <specifiedVector />
  <method>Casewise</method>
  <methodParameter>5</methodParameter>
  <specifiedValue>0</specifiedValue>
<specifiedTerm>
  <k>4294967295</k>
  </specifiedTerm>
  </missingData>
<params>
  <alpha>0.12</alpha>
  <gamma>0.1</gamma>
  <delta>0.1</delta>
  <phi>0.1</phi>
  </params>
<seasonalComponent>
  <mode>None</mode>
  <cycle>4</cycle>
  </seasonalComponent>
<autoSearch>
  <mode>Optimal</mode>
  <criterion>MeanError</criterion>
<quickestDescent>
<initialApproximation>
  <alpha>0</alpha>
  <gamma>0.12</gamma>
  <delta>0</delta>
  <phi>0.1</phi>
  </initialApproximation>
<finalApproximation>
  <alpha>1</alpha>
  <gamma>0.92</gamma>
  <delta>1</delta>
  <phi>0.9</phi>
  </finalApproximation>
  <gridStep>0.12</gridStep>
  </quickestDescent>
<bestTrial>
<initialApproximation>
  <alpha>0.1</alpha>
  <gamma>0.12</gamma>
  <delta>0.1</delta>
  <phi>0.1</phi>
  </initialApproximation>
  <order>9</order>
  <methodConstant>0.15</methodConstant>
  <maxIteration>20</maxIteration>
  </bestTrial>
  <alphaSearch>0</alphaSearch>
  <gammaSearch>1</gammaSearch>
  <deltaSearch>0</deltaSearch>
  <phiSearch>0</phiSearch>
  </autoSearch>
<explained>
<slice>
  <k>0</k>
  <id>MyOutputVavable|A</id>
  <n>MyOutputVavable|A</n>
  <vis>1</vis>
  <variableKey>1</variableKey>
  <stubKey>89671</stubKey>
<selections>
<its>
<Item>
<id>
  <id>89683</id>
  </id>
  <variant>2</variant>
  </Item>
  </its>
  </selections>
  <aggregator>None</aggregator>
<parametrizedDimensions>
<its>
<Item>
  <dimension>0</dimension>
  <parameter>0</parameter>
  </Item>
  </its>
  </parametrizedDimensions>
<unitInfo>
  <unit>4294967295</unit>
  <measure>4294967295</measure>
  <baseUnit>4294967295</baseUnit>
  <unitsDimensionKey>0</unitsDimensionKey>
  </unitInfo>
  <level>Year</level>
  </slice>
  <lag />
  <key>0</key>
  <termToText>{MyOutputVavable|A[t]}</termToText>
  <termToInnerText>@_1:0[]</termToInnerText>
<termInfo>
  <k>4294967295</k>
  <lag>0</lag>
<inversion>
  <type>None</type>
  <lag>PrecidingValue</lag>
  <previousLag>-1</previousLag>
  <seasonality>None</seasonality>
  <dependence>Linear</dependence>
  <K>3</K>
  </inversion>
<slice>
  <k>0</k>
  <id>MyOutputVavable|A</id>
  <n>MyOutputVavable|A</n>
  <vis>1</vis>
  <variableKey>1</variableKey>
  <stubKey>89671</stubKey>
<selections>
<its>
<Item>
<id>
  <id>89683</id>
  </id>
  <variant>2</variant>
  </Item>
  </its>
  </selections>
  <aggregator>None</aggregator>
<parametrizedDimensions>
<its>
<Item>
  <dimension>0</dimension>
  <parameter>0</parameter>
  </Item>
  </its>
  </parametrizedDimensions>
<unitInfo>
  <unit>4294967295</unit>
  <measure>4294967295</measure>
  <baseUnit>4294967295</baseUnit>
  <unitsDimensionKey>0</unitsDimensionKey>
  </unitInfo>
  <level>Year</level>
  </slice>
  <date>1899-12-30</date>
  </termInfo>
<unitInfo>
  <unit>4294967295</unit>
  <measure>4294967295</measure>
  <baseUnit>4294967295</baseUnit>
  <unitsDimensionKey>0</unitsDimensionKey>
  </unitInfo>
  <included>0</included>
  </explained>
  <asForecasting>0</asForecasting>
  </exponentialSmoothing>
<inversionInfo>
  <type>None</type>
  <lag>PrecidingValue</lag>
  <previousLag>-1</previousLag>
  <seasonality>None</seasonality>
  <dependence>Linear</dependence>
  <K>3</K>
  </inversionInfo>
  <doUseR>0</doUseR>
  <supportsR>1</supportsR>
  </method>
  <calendarLevel>Year</calendarLevel>
  <outputSliceKey>0</outputSliceKey>
  </it>
  </its>
  </formulas>
  <kind>Simple</kind>
  </transform>
  <warnings />
  <readOnly>0</readOnly>
  </model>
  </Item>
  </its>
  </calculationChain>
<visualController>
  <variableRubricatorKey>89671</variableRubricatorKey>
<freeVariables>
  <its />
  </freeVariables>
  <userRPath />
  <isRExist>0</isRExist>
  </visualController>
<suppressEmptyFilter>
  <suppressEmpty>0</suppressEmpty>
  <suppressEmptyArea>SerieBounds</suppressEmptyArea>
  </suppressEmptyFilter>
  <readOnly>0</readOnly>
  <variableTestUseR>0</variableTestUseR>
  <calculateIdentOnFact>0</calculateIdentOnFact>
  </metamodel>
<scenarios>
  <its />
  </scenarios>
<details>
<period>
  <identificationStartDate>1990-01-01</identificationStartDate>
  <identificationEndDate>2018-04-24</identificationEndDate>
  <forecastStartDate>2018-04-25</forecastStartDate>
  <forecastEndDate>2020-01-01</forecastEndDate>
  <identificationStartDateParamID />
  <identificationEndDateParamID />
  <forecastStartDateParamID />
  <forecastEndDateParamID />
  <autoPeriod>0</autoPeriod>
  <identificationStartOffset>0</identificationStartOffset>
  <identificationEndOffset>0</identificationEndOffset>
  <forecastEndOffset>0</forecastEndOffset>
  <isIdentStartCorrect>1</isIdentStartCorrect>
  <isIdentEndCorrect>1</isIdentEndCorrect>
  <isForecastEndCorrect>1</isForecastEndCorrect>
  </period>
  <currentPoint>2018-04-25</currentPoint>
  </details>
  <useSavedCoefficients>0</useSavedCoefficients>
  <useScenarios>0</useScenarios>
  <readOnly>0</readOnly>
  </problemMd>
  </item>
  </meta>
  </SetMsResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON-запрос:

{
 "SetMs" : 
  {
   "tMs" : 
    {
     "id" : "FOHJOFJNADNBFOAEPDEIMKPCLJLPFLDEBILEJKOJMGKNANDD!M!S!CDJFPKJJNADNBFOAENAKODJNNPDGOIFMEKIFADEIKBFGIGHID"
    },
   "tArg" : 
    {
     "pattern" : 
      {
       "obInst" : "true",
       "item" : 
        {
         "key" : "89669",
         "problem" : 
          {
           "metamodel" : 
            {
             "calculationChain" : "Change"
            }
          }
        }
      },
     "meta" : 
      {
       "item" : 
        {
         "k" : "89669",
         "type" : "Problem",
         "problemMd" : 
          {
           "metamodel" : 
            {
             "calculationChain" : 
              {
               "its" : 
                {
                 "Item" : 
                  {
                   "k" : "4",
                   "type" : "Model",
                   "model" : 
                    {
                     "transform" : 
                      {
                       "formulas" : 
                        {
                         "its" : 
                          {
                           "it" : 
                            [
                              {
                               "k" : "0",
                               "kind" : "ExponentialSmoothing",
                               "method" : 
                                {
                                 "exponentialSmoothing" : 
                                  {
                                   "trendComponent" : "Linear",
                                   "params" : 
                                    {
                                     "alpha" : "0.12"
                                    },
                                   "autoSearch" : 
                                    {
                                     "mode" : "Optimal",
                                     "criterion" : "MeanError",
                                     "bestTrial" : 
                                      {
                                       "initialApproximation" : 
                                        {
                                         "gamma" : "0.12"
                                        },
                                       "order" : "9",
                                       "methodConstant" : "0.15",
                                       "maxIteration" : "20"
                                      },
                                     "alphaSearch" : "false",
                                     "gammaSearch" : "true",
                                     "deltaSearch" : "false",
                                     "phiSearch" : "false"
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
     "metaGet" : 
      {
       "obInst" : "true",
       "scenarios" : "Get",
       "period" : "true",
       "item" : 
        {
         "key" : "89669",
         "problem" : 
          {
           "metamodel" : 
            {
             "calculationChain" : "Get",
             "calcChainPattern" : 
              {
               "modelPattern" : 
                {
                 "transform" : 
                  {
                   "formulaCount" : "true",
                   "formulas" : 
                    {
                     "method" : ""
                    },
                   "equationsFormula" : 
                    {
                     "method" : ""
                    },
                   "kind" : "true"
                  }
                }
              },
             "visualControllerPattern" : 
              {
               "variableRubricatorKey" : "true",
               "useSourceName" : "false",
               "freeVariables" : "true",
               "levelFormat" : "Short"
              }
            },
           "scenarios" : "Get",
           "details" : "true",
           "useSavedCoefficients" : "true"
          }
        }
      }
    }
  }
}

JSON-ответ:

{
 "SetMsResult" : 
  {
   "id" : 
    {
     "id" : "FOHJOFJNADNBFOAEPDEIMKPCLJLPFLDEBILEJKOJMGKNANDD!M!S!CDJFPKJJNADNBFOAENAKODJNNPDGOIFMEKIFADEIKBFGIGHID"
    },
   "meta" : 
    {
     "obInst" : 
      {
       "obDesc" : 
        {
         "@fullUrl" : "http:\/\/v-shp-development.dev.fs.fsight.world\/",
         "@isShortcut" : "0",
         "@isLink" : "0",
         "@ver" : "4",
         "@hf" : "0",
         "i" : "MODELSPACE",
         "n" : "Контейнер моделирования",
         "k" : "1581",
         "c" : "5121",
         "p" : "1580",
         "h" : "0",
         "hasPrv" : "0",
         "ic" : "0",
         "isPermanent" : "1",
         "isTemp" : "0"
        }
      },
     "dirty" : "0",
     "period" : 
      {
       "start" : "1970-01-01",
       "end" : "2020-12-31"
      },
     "scenarios" : 
      {
       "nodes" : 
        {
         "it" : 
          [
            {
             "@isFolder" : "0",
             "k" : "1628",
             "id" : "OBJ1628",
             "n" : "Базовый",
             "vis" : "1",
             "scenDesc" : 
              {
               "@fullUrl" : "http:\/\/v-shp-development.dev.fs.fsight.world\/",
               "@isShortcut" : "0",
               "@isLink" : "0",
               "@ver" : "0",
               "@hf" : "0",
               "i" : "OBJ1628",
               "n" : "Базовый",
               "k" : "1628",
               "c" : "5124",
               "p" : "1627",
               "h" : "0",
               "hasPrv" : "0",
               "ic" : "0"
              },
             "internalKey" : "1629"
            },
            {
             "@isFolder" : "0",
             "k" : "5371",
             "id" : "OBJ5371",
             "n" : "Базовый (копия1)",
             "vis" : "1",
             "scenDesc" : 
              {
               "@fullUrl" : "http:\/\/v-shp-development.dev.fs.fsight.world\/",
               "@isShortcut" : "0",
               "@isLink" : "0",
               "@ver" : "0",
               "@hf" : "0",
               "i" : "OBJ5371",
               "n" : "Базовый (копия1)",
               "k" : "5371",
               "c" : "5124",
               "p" : "1627",
               "h" : "0",
               "hasPrv" : "0",
               "ic" : "0"
              },
             "internalKey" : "5372"
            }
          ]
        }
      },
     "item" : 
      {
       "k" : "89669",
       "id" : "MODEL_NEW",
       "n" : "MODEL_NEW",
       "vis" : "1",
       "type" : "Problem",
       "problemMd" : 
        {
         "metamodel" : 
          {
           "k" : "89670",
           "calculationChain" : 
            {
             "its" : 
              {
               "Item" : 
                [
                  {
                   "k" : "1",
                   "n" : "MyInputVavable",
                   "vis" : "1",
                   "type" : "Variable",
                   "excluded" : "0",
                   "graphMeta" : "{"Geometry":{"x":20,"y":10,"width":150,"height":50},"ChartOptions":{"chart":{"defaultSeriesType":"line","mixed":true,"backgroundColor":"rgba(0, 0, 0, 0.000000)"},"plotOptions":{"series":{"dataLabels":{"formatter":"%Autovalue","dataFormat":"#,##0.00"}}},"tooltip":{"formatter":"Значение: %Autovalue\nДата: %PointName","enabled":true,"backgroundType":"none","style":{"fontFamily":"Arial","fontSize":"12px","color":"#000000"}},"yAxis":[{"labels":{"enabled":true,"dataFormat":"#,##0.00"},"title":{"text":""}}],"xAxis":{"tickInterval":2,"labels":{},"title":{}},"series":[{"entryKey":1,"scenarioKey":4294967295,"serieType":"fact","showInLegend":true,"type":"line","color":"rgba(129, 129, 129, 1)","borderColor":"rgba(129, 129, 129, 1)","borderWidth":0,"lineColor":"rgba(129, 129, 129, 1)","zIndex":1,"legendIndex":0,"visible":true,"background":{"color":"rgba(129, 129, 129, 1)","type":"color"},"marker":{"enabled":false,"symbol":"circle","fillColor":"#FFFFFF","lineWidth":1.5,"lineColor":null},"dataLabels":{"formatter":"%Autovalue"},"trendLine":{}}]}}",
                   "chainVariable" : 
                    {
                     "slice" : 
                      {
                       "k" : "0",
                       "id" : "MyInputVavable|A",
                       "n" : "MyInputVavable|A",
                       "vis" : "1",
                       "variableKey" : "1",
                       "stubKey" : "89671",
                       "selections" : 
                        {
                         "its" : 
                          {
                           "Item" : 
                            {
                             "id" : 
                              {
                               "id" : "89683"
                              },
                             "variant" : "1"
                            }
                          }
                        },
                       "aggregator" : "None",
                       "parametrizedDimensions" : 
                        {
                         "its" : 
                          {
                           "Item" : 
                            {
                             "dimension" : "0",
                             "parameter" : "0"
                            }
                          }
                        },
                       "unitInfo" : 
                        {
                         "unit" : "4294967295",
                         "measure" : "4294967295",
                         "baseUnit" : "4294967295",
                         "unitsDimensionKey" : "0"
                        },
                       "level" : "Year"
                      },
                     "fullName" : "MyInputVavable|A",
                     "originalName" : "MyInputVavable",
                     "originalShortName" : "MyInputVavable",
                     "useCustomName" : "0"
                    }
                  },
                  {
                   "k" : "2",
                   "n" : "MyOutputVavable",
                   "vis" : "1",
                   "type" : "Variable",
                   "excluded" : "0",
                   "graphMeta" : "{"Geometry":{"x":30,"y":140,"width":150,"height":50}}",
                   "chainVariable" : 
                    {
                     "slice" : 
                      {
                       "k" : "0",
                       "id" : "MyOutputVavable|A",
                       "n" : "MyOutputVavable|A",
                       "vis" : "1",
                       "variableKey" : "2",
                       "stubKey" : "89671",
                       "selections" : 
                        {
                         "its" : 
                          {
                           "Item" : 
                            {
                             "id" : 
                              {
                               "id" : "89683"
                              },
                             "variant" : "2"
                            }
                          }
                        },
                       "aggregator" : "None",
                       "parametrizedDimensions" : 
                        {
                         "its" : 
                          {
                           "Item" : 
                            {
                             "dimension" : "0",
                             "parameter" : "0"
                            }
                          }
                        },
                       "unitInfo" : 
                        {
                         "unit" : "4294967295",
                         "measure" : "4294967295",
                         "baseUnit" : "4294967295",
                         "unitsDimensionKey" : "0"
                        },
                       "level" : "Year"
                      },
                     "fullName" : "MyOutputVavable|A",
                     "originalName" : "MyOutputVavable",
                     "originalShortName" : "MyOutputVavable",
                     "useCustomName" : "0"
                    }
                  },
                  {
                   "k" : "4",
                   "id" : "OBJ4",
                   "n" : "MyOutputVavable|A[t] = ExpSmooth(0.12, -, Авто, -), (От родителя)-(От родителя)",
                   "vis" : "1",
                   "type" : "Model",
                   "excluded" : "0",
                   "graphMeta" : "",
                   "model" : 
                    {
                     "transform" : 
                      {
                       "formulaCount" : "1",
                       "formulas" : 
                        {
                         "its" : 
                          {
                           "it" : 
                            [
                              {
                               "k" : "0",
                               "kind" : "ExponentialSmoothing",
                               "method" : 
                                {
                                 "exponentialSmoothing" : 
                                  {
                                   "trendComponent" : "Linear",
                                   "confidenceLevel" : "0.96",
                                   "missingData" : 
                                    {
                                     "specifiedVector" : "",
                                     "method" : "Casewise",
                                     "methodParameter" : "5",
                                     "specifiedValue" : "0",
                                     "specifiedTerm" : 
                                      {
                                       "k" : "4294967295"
                                      }
                                    },
                                   "params" : 
                                    {
                                     "alpha" : "0.12",
                                     "gamma" : "0.1",
                                     "delta" : "0.1",
                                     "phi" : "0.1"
                                    },
                                   "seasonalComponent" : 
                                    {
                                     "mode" : "None",
                                     "cycle" : "4"
                                    },
                                   "autoSearch" : 
                                    {
                                     "mode" : "Optimal",
                                     "criterion" : "MeanError",
                                     "quickestDescent" : 
                                      {
                                       "initialApproximation" : 
                                        {
                                         "alpha" : "0",
                                         "gamma" : "0.12",
                                         "delta" : "0",
                                         "phi" : "0.1"
                                        },
                                       "finalApproximation" : 
                                        {
                                         "alpha" : "1",
                                         "gamma" : "0.92",
                                         "delta" : "1",
                                         "phi" : "0.9"
                                        },
                                       "gridStep" : "0.12"
                                      },
                                     "bestTrial" : 
                                      {
                                       "initialApproximation" : 
                                        {
                                         "alpha" : "0.1",
                                         "gamma" : "0.12",
                                         "delta" : "0.1",
                                         "phi" : "0.1"
                                        },
                                       "order" : "9",
                                       "methodConstant" : "0.15",
                                       "maxIteration" : "20"
                                      },
                                     "alphaSearch" : "0",
                                     "gammaSearch" : "1",
                                     "deltaSearch" : "0",
                                     "phiSearch" : "0"
                                    },
                                   "explained" : 
                                    {
                                     "slice" : 
                                      {
                                       "k" : "0",
                                       "id" : "MyOutputVavable|A",
                                       "n" : "MyOutputVavable|A",
                                       "vis" : "1",
                                       "variableKey" : "1",
                                       "stubKey" : "89671",
                                       "selections" : 
                                        {
                                         "its" : 
                                          {
                                           "Item" : 
                                            {
                                             "id" : 
                                              {
                                               "id" : "89683"
                                              },
                                             "variant" : "2"
                                            }
                                          }
                                        },
                                       "aggregator" : "None",
                                       "parametrizedDimensions" : 
                                        {
                                         "its" : 
                                          {
                                           "Item" : 
                                            {
                                             "dimension" : "0",
                                             "parameter" : "0"
                                            }
                                          }
                                        },
                                       "unitInfo" : 
                                        {
                                         "unit" : "4294967295",
                                         "measure" : "4294967295",
                                         "baseUnit" : "4294967295",
                                         "unitsDimensionKey" : "0"
                                        },
                                       "level" : "Year"
                                      },
                                     "lag" : "",
                                     "key" : "0",
                                     "termToText" : "{MyOutputVavable|A[t]}",
                                     "termToInnerText" : "@_1:0[]",
                                     "termInfo" : 
                                      {
                                       "k" : "4294967295",
                                       "lag" : "0",
                                       "inversion" : 
                                        {
                                         "type" : "None",
                                         "lag" : "PrecidingValue",
                                         "previousLag" : "-1",
                                         "seasonality" : "None",
                                         "dependence" : "Linear",
                                         "K" : "3"
                                        },
                                       "slice" : 
                                        {
                                         "k" : "0",
                                         "id" : "MyOutputVavable|A",
                                         "n" : "MyOutputVavable|A",
                                         "vis" : "1",
                                         "variableKey" : "1",
                                         "stubKey" : "89671",
                                         "selections" : 
                                          {
                                           "its" : 
                                            {
                                             "Item" : 
                                              {
                                               "id" : 
                                                {
                                                 "id" : "89683"
                                                },
                                               "variant" : "2"
                                              }
                                            }
                                          },
                                         "aggregator" : "None",
                                         "parametrizedDimensions" : 
                                          {
                                           "its" : 
                                            {
                                             "Item" : 
                                              {
                                               "dimension" : "0",
                                               "parameter" : "0"
                                              }
                                            }
                                          },
                                         "unitInfo" : 
                                          {
                                           "unit" : "4294967295",
                                           "measure" : "4294967295",
                                           "baseUnit" : "4294967295",
                                           "unitsDimensionKey" : "0"
                                          },
                                         "level" : "Year"
                                        },
                                       "date" : "1899-12-30"
                                      },
                                     "unitInfo" : 
                                      {
                                       "unit" : "4294967295",
                                       "measure" : "4294967295",
                                       "baseUnit" : "4294967295",
                                       "unitsDimensionKey" : "0"
                                      },
                                     "included" : "0"
                                    },
                                   "asForecasting" : "0"
                                  },
                                 "inversionInfo" : 
                                  {
                                   "type" : "None",
                                   "lag" : "PrecidingValue",
                                   "previousLag" : "-1",
                                   "seasonality" : "None",
                                   "dependence" : "Linear",
                                   "K" : "3"
                                  },
                                 "doUseR" : "0",
                                 "supportsR" : "1"
                                },
                               "calendarLevel" : "Year",
                               "outputSliceKey" : "0"
                              }
                            ]
                          }
                        },
                       "kind" : "Simple"
                      },
                     "warnings" : "",
                     "readOnly" : "0"
                    }
                  }
                ]
              }
            },
           "visualController" : 
            {
             "variableRubricatorKey" : "89671",
             "freeVariables" : 
              {
               "its" : ""
              },
             "userRPath" : "",
             "isRExist" : "0"
            },
           "suppressEmptyFilter" : 
            {
             "suppressEmpty" : "0",
             "suppressEmptyArea" : "SerieBounds"
            },
           "readOnly" : "0",
           "variableTestUseR" : "0",
           "calculateIdentOnFact" : "0"
          },
         "scenarios" : 
          {
           "its" : ""
          },
         "details" : 
          {
           "period" : 
            {
             "identificationStartDate" : "1990-01-01",
             "identificationEndDate" : "2018-04-24",
             "forecastStartDate" : "2018-04-25",
             "forecastEndDate" : "2020-01-01",
             "identificationStartDateParamID" : "",
             "identificationEndDateParamID" : "",
             "forecastStartDateParamID" : "",
             "forecastEndDateParamID" : "",
             "autoPeriod" : "0",
             "identificationStartOffset" : "0",
             "identificationEndOffset" : "0",
             "forecastEndOffset" : "0",
             "isIdentStartCorrect" : "1",
             "isIdentEndCorrect" : "1",
             "isForecastEndCorrect" : "1"
            },
           "currentPoint" : "2018-04-25"
          },
         "useSavedCoefficients" : "0",
         "useScenarios" : "0",
         "readOnly" : "0"
        }
      }
    }
  }
}
public static MsItem SetMsExpSmoothing_opt(MsId ms, ulong modelKey, ulong eqKey)
{
    var setMsOp = new SetMs();
    // Задаем параметры выполнения операции
    setMsOp.tMs = ms;
    setMsOp.tArg = new SetMsArg()
    {  // Задаем шаблон изменения данных
        pattern = new MsMdPattern()
        {
            item = new MsItemPattern()
            {  // Указываем ключ модели
                key = modelKey,
                problem = new MsProblemPattern()
                {
                    metamodel = new MsMetaModelPattern()
                    {
                        calculationChain = ListOperation.Change
                    }
                }
            }
        },
        // Задаем данные, которые необходимо изменить
        meta = new MsMd()
        {
            item = new MsItem()
            {
                k = modelKey,
                type = MsItemType.Problem,
                problemMd = new MsProblem()
                {
                    metamodel = new MsMetaModel()
                    {
                        calculationChain = new MsCalculationChainEntries()
                        {
                            its = new MsCalculationChainEntry[]
                            {
                                new MsCalculationChainEntry()
                                {
                                    k = eqKey,
                                    type = MsCalculationChainType.Model,
                                    model = new MsModel()
                                    {                                        
                                        transform = new MsFormulaTransform()
                                        {
                                            formulas = new TsFormulas()
                                            {
                                                its = new TsFormula[]
                                                {
                                                    new TsFormula()
                                                    {
                                                        kind = TsFormulaKind.ExponentialSmoothing,
                                                        method = new TsMethod()
                                                        {   // Задаем параметры метода «Экспоненциальное сглаживание»                                     
                                                            exponentialSmoothing = new TsExponentialSmoothingMethod()
                                                            {                                             
                                                                // Задаём модель роста: аддитивная
                                                                trendComponent = StatTrendType.Linear,
                                                                // Задаём значения коэффициентов
                                                                @params = new ExponentialSmoothingParams()
                                                                {
                                                                    alpha = 0.12, delta = null,
                                                                    gamma = null, phi = null
                                                                }, // Задаём параметры автоподбора значений коэффициентов
                                                                autoSearch = new ExponentialSmoothingAutoSearch()
                                                                {   // Задаём подбираемые коэффициенты
                                                                    alphaSearch = false, deltaSearch = false,
                                                                    gammaSearch = true, phiSearch = false,
                                                                    // Задаём параметры метода наилучшей пробы 
                                                                    mode = StatSearchType.Optimal,
                                                                    bestTrial = new ExponentialSmoothingBestTrialParams()
                                                                    {
                                                                        // Задаём начальные значения
                                                                        initialApproximation = new ExponentialSmoothingParams()
                                                                        {
                                                                            alpha = null, delta = null,
                                                                            gamma = 0.12, phi = null
                                                                        },
                                                                        methodConstant = 0.15,
                                                                        order = 9,
                                                                        maxIteration = 20
                                                                    },
                                                                    criterion = StatCriterionType.MeanError
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
           
        }, // Задаем шаблон извлечения измененных данных
        metaGet = new MsMdPattern()
        {
            scenarios = ListOperation.Get,
            period = true,
            item = new MsItemPattern()
            {
                key = modelKey,
                problem = new MsProblemPattern()
                {
                    details = true,
                    scenarios = ListOperation.Get,
                    useSavedCoefficients = true,
                    metamodel = new MsMetaModelPattern()
                    {
                        calculationChain = ListOperation.Get,
                        calcChainPattern = new MsCalculationChainPattern()
                        {
                            modelPattern = new MsModelPattern()
                            {
                                transform = new MsFormulaTransformPattern()
                                {
                                    kind = true,
                                    formulaCount = true,
                                    formulas = new TsFormulaPattern()
                                    {
                                        method = new TsMethodPattern() { }
                                    },
                                    equationsFormula = new TsFormulaPattern()
                                    {
                                        method = new TsMethodPattern() { }
                                    }
                                }
                            }
                        },
                        visualControllerPattern = new MsMetaModelVisualControllerPattern()
                        {
                            variableRubricatorKey = true,
                            levelFormat = MsLevelFormat.Short,
                            useSourceName = false,
                            freeVariables = true
                        }
                    }
                }
            }
        }
    };
    // Создаем прокси-объект для выполнения операции
    var somClient = new SomPortTypeClient();
    // Задаем параметры выполнения операции
    var result = somClient.SetMs(setMsOp);
    return result.meta.item;
}

См. также:

SetMs: Операция | Экспоненциальное сглаживание