mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-05-06 11:32:59 +00:00
test
This commit is contained in:
parent
6537913b11
commit
a645946a18
@ -57,15 +57,22 @@ namespace Test
|
||||
{
|
||||
|
||||
|
||||
var outage = Capacity.ComputeOutage(20000000, new Capacity.CSI[]
|
||||
//var outage = Capacity.ComputeOutage(20000000, new Capacity.CSI[]
|
||||
//{
|
||||
// new Capacity.CSI(PowerUnit.FromDb(20), 0.1),
|
||||
// new Capacity.CSI(PowerUnit.FromDb(15), 0.15),
|
||||
// new Capacity.CSI(PowerUnit.FromDb(10), 0.25),
|
||||
// new Capacity.CSI(PowerUnit.FromDb(5), 0.25),
|
||||
// new Capacity.CSI(PowerUnit.FromDb(0), 0.15),
|
||||
// new Capacity.CSI(PowerUnit.FromDb(-5), 0.1),
|
||||
//});
|
||||
var outage = Capacity.ComputeOutage(1, new Capacity.CSI[]
|
||||
{
|
||||
new Capacity.CSI(PowerUnit.FromDb(20), 0.1),
|
||||
new Capacity.CSI(PowerUnit.FromDb(15), 0.15),
|
||||
new Capacity.CSI(PowerUnit.FromDb(10), 0.25),
|
||||
new Capacity.CSI(PowerUnit.FromDb(5), 0.25),
|
||||
new Capacity.CSI(PowerUnit.FromDb(0), 0.15),
|
||||
new Capacity.CSI(PowerUnit.FromDb(-5), 0.1),
|
||||
});
|
||||
new Capacity.CSI(PowerUnit.FromDb(30), 0.2),
|
||||
new Capacity.CSI(PowerUnit.FromDb(20), 0.3),
|
||||
new Capacity.CSI(PowerUnit.FromDb(10), 0.3),
|
||||
new Capacity.CSI(PowerUnit.FromDb(0), 0.2),
|
||||
});
|
||||
|
||||
// Create stores to keep objects.
|
||||
var system = await Warehouse.Put("sys", new MemoryStore());
|
||||
|
Loading…
x
Reference in New Issue
Block a user