POST | /solver-model/standalone |
---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports powerDev.Optimization.ServiceModel
Namespace Global
Namespace powerDev.Optimization.ServiceModel
Public Partial Class SolverModelStandaloneRequest
Public Overridable Property BatteryCapacity As Decimal
Public Overridable Property NameplateCapacity As Decimal
Public Overridable Property ChargingEfficiency As Decimal
Public Overridable Property DischargingEfficiency As Decimal
Public Overridable Property MinProfitPerMw As Decimal
Public Overridable Property MaxDailCycle As Decimal
Public Overridable Property RestingLossRate As Decimal
Public Overridable Property OperationLossRate As Decimal
Public Overridable Property Prices As IEnumerable(Of Decimal)
End Class
End Namespace
End Namespace
VB.NET SolverModelStandaloneRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /solver-model/standalone HTTP/1.1
Host: dev-optimization.power.dev
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
batteryCapacity: 0,
nameplateCapacity: 0,
chargingEfficiency: 0,
dischargingEfficiency: 0,
minProfitPerMw: 0,
maxDailCycle: 0,
restingLossRate: 0,
operationLossRate: 0
}