Reference for ScheduleMicrogridResources

Url: https://seasdemo.innova.com.tr/HEMSOPTServices/MicrogridOptimizationService.svc/ScheduleMicrogridResources

HTTP Method: POST

Content-type: application/json

HTTP Request Authorization Header Field: username:password

The following is an example request Json body, as described here.

{
	"Owner":"String content",
	"PlanInput":{
		"AirConditioners":[{
			"Active":true,
			"EnergyEfficiencyRatioCooling":1.26743233E+15,
			"EnergyEfficiencyRatioHeating":1.26743233E+15,
			"MaximumCoolingPower":1.26743233E+15,
			"MaximumHeatingPower":1.26743233E+15,
			"Name":"String content"
		}],
		"AlternativeResultCount":2147483647,
		"Building":{
			"BuildingVolume":1.26743233E+15,
			"CirculationOfFreshAir":1.26743233E+15,
			"HorizontalSurface":1.26743233E+15,
			"InertiaClass":0,
			"InitialTemperature":1.26743233E+15,
			"SurfaceExposedToSun":1.26743233E+15,
			"TransmittanceOfFloor":1.26743233E+15,
			"TransmittanceOfRoof":1.26743233E+15,
			"TransmittanceOfWalls":1.26743233E+15,
			"TransmittanceOfWindows":1.26743233E+15,
			"WallSurface":1.26743233E+15,
			"WindowsSurface":1.26743233E+15
		},
		"ComfortLevelforTemperature":{
			"PeriodComfortLevelTemperatures":[{
				"Key":2147483647,
				"Value":{
					"MaximumTemperature":1.26743233E+15,
					"MinimumTemperature":1.26743233E+15
				}
			}]
		},
		"ContinousAppliances":[{
			"Active":true,
			"ConsumptionRates":[{
				"Key":2147483647,
				"Value":2147483647
			}],
			"Name":"String content"
		}],
		"ControllableAppliances":[{
			"Active":true,
			"ConsumptionRate":1.26743233E+15,
			"ControllableWorks":[{
				"EarlyStartPeriod":2147483647,
				"LateStopPeriod":2147483647,
				"WorkDuration":2147483647
			}],
			"Name":"String content"
		}],
		"ElectricVehicles":[{
			"Active":true,
			"ChargeCost":1.26743233E+15,
			"ChargeEfficiency":1.26743233E+15,
			"ChargeRate":2147483647,
			"ConsumptionRate":1.26743233E+15,
			"DischargeCost":1.26743233E+15,
			"DischargeEfficiency":1.26743233E+15,
			"DischargeRate":2147483647,
			"ElectricVehicleUsages":[{
				"OutPeriodEnd":2147483647,
				"OutPeriodStart":2147483647,
				"WorkDuration":2147483647
			}],
			"InitialStorageLevel":2147483647,
			"MaximumStorageLevel":2147483647,
			"Name":"String content"
		}],
		"ExternalTemperature":{
			"ExternalTemperatures":[{
				"Key":2147483647,
				"Value":1.26743233E+15
			}]
		},
		"GridConstraint":{
			"PeriodGridConstraints":[{
				"Key":2147483647,
				"Value":{
					"MaximumPurchaseAmount":2147483647,
					"MaximumSaleAmount":2147483647
				}
			}]
		},
                "PlanDate":"201603231050",
		"PurchasePrice":{
			"PurchasePrices":[{
				"Key":2147483647,
				"Value":{
					"Deviation":1.26743233E+15,
					"Distribution":0,
					"MeanValue":2147483647
				}
			}]
		},
		"SalePrice":{
			"SalePrices":[{
				"Key":2147483647,
				"Value":{
					"Deviation":1.26743233E+15,
					"Distribution":0,
					"MeanValue":2147483647
				}
			}]
		},
		"SolarGenerators":[{
			"Active":true,
			"DepreciationCost":1.26743233E+15,
			"Efficiency":1.26743233E+15,
			"Generations":[{
				"Key":2147483647,
				"Value":{
					"Deviation":1.26743233E+15,
					"Distribution":0,
					"MeanValue":2147483647
				}
			}],
			"Name":"String content"
		}],
		"SolarRadiation":{
			"SolarRadiations":[{
				"Key":2147483647,
				"Value":1.26743233E+15
			}]
		},
		"StorageDevices":[{
			"Active":true,
			"ChargeCost":1.26743233E+15,
			"ChargeEfficiency":1.26743233E+15,
			"ChargeRate":2147483647,
			"DischargeCost":1.26743233E+15,
			"DischargeEfficiency":1.26743233E+15,
			"DischargeRate":2147483647,
			"InitialStorageLevel":2147483647,
			"MaximumStorageLevel":2147483647,
			"Name":"String content"
		}],
		"UncontrollableAppliances":[{
			"Active":true,
			"ConsumptionRate":1.26743233E+15,
			"Name":"String content",
			"UncontrollableWorks":[{
				"Deviation":1.26743233E+15,
				"Distribution":0,
				"EarlyStartPeriod":2147483647,
				"LateStopPeriod":2147483647,
				"MeanValue":2147483647,
				"MeanWorkDuration":2147483647
			}]
		}],
                "WindGenerators":[{
			"Active":true,
			"DepreciationCost":1.26743233E+15,
			"Efficiency":1.26743233E+15,
			"Generations":[{
				"Key":2147483647,
				"Value":{
					"Deviation":1.26743233E+15,
					"Distribution":0,
					"MeanValue":2147483647
				}
			}],
			"Name":"String content"
		}],
		"nDays":2147483647,
		"nPeriodsPerDay":2147483647,
		"nScenarios":2147483647,
                "CogenerationPlants":[{
			"Active":true,
			"Efficiency":1.26743233E+15,
			"HeatToPowerRatio":1.26743233E+15,
			"MaximumPower":1.26743233E+15,
			"MinimumPower":1.26743233E+15,
			"Name":"String content",
			"OperationCost":1.26743233E+15,
			"RampDownRate":1.26743233E+15,
			"RampUpRate":1.26743233E+15,
			"ShutdownCost":1.26743233E+15,
			"StartupCost":1.26743233E+15
		}],
		"DemandResponses":[{
			"Active":true,
			"Name":"String content",
			"PeriodDemandResponseOfferList":[{
				"Period":2147483647,
				"ReserveQuantities":[{
					"OfferedPrice":1.26743233E+15,
					"ReserveQuantity":1.26743233E+15
				}]
			}]
		}],
		"Generators":[{
			"Active":true,
			"Efficiency":1.26743233E+15,
			"MaximumPower":1.26743233E+15,
			"MinimumPower":1.26743233E+15,
			"Name":"String content",
			"OperationCost":1.26743233E+15,
			"RampDownRate":1.26743233E+15,
			"RampUpRate":1.26743233E+15,
			"ShutdownCost":1.26743233E+15,
			"StartupCost":1.26743233E+15
		}],
		"HeatDemands":[{
			"Active":true,
			"Name":"String content",
			"PeriodHeatDemands":[{
				"Key":2147483647,
				"Value":{
					"Deviation":1.26743233E+15,
					"Distribution":0,
					"MeanValue":2147483647
				}
			}]
		}],
		"Loads":[{
			"Active":true,
			"Name":"String content",
			"PeriodLoad":[{
				"Key":2147483647,
				"Value":{
					"Deviation":1.26743233E+15,
					"Distribution":0,
					"MeanValue":2147483647
				}
			}]
		}]
	},
	"PlanName":"String content"
}

Then, the following response example means that the requested data is valid and saved for scheduling operation in the server. And it can be queried for status,result or input with the unique identifier that can be seen 'PlanID' field.

200 OK
{
    "Message":"",
    "PlanID":"7d983150-b8bf-473d-a83e-18bca3fc4702"
}


If the requested data is invalid for scheduling operation the following response will be returned by the server:
The validation error details can be seen in 'Message' field.

400 Bad Request
{
    "Message":"Validation error details",
    "PlanID":""
}

HTTP responses may be returned by the server:

401 Unauthorized: User is unauthenticated to call the optimization service.

500 Internal Server Error: An error occured.