diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/BatterySystem.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/BatterySystem.cs index b2856aa3036b53f3113f3b609b6c23ce36512ab2..8ea633a720e7c4af99780591fb4075cf72cc0747 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/BatterySystem.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/BatterySystem.cs @@ -219,7 +219,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl } public double MinSoC => _minSoc ?? (_minSoc = Batteries.Values.Sum(x => x.CapacityMinSoc) / TotalCapacity); - public double MaxSoC => _maxSoc ?? (_maxSoc = Batteries.Values.Sum(x => x.CapacityMinSoc) / TotalCapacity); + public double MaxSoC => _maxSoc ?? (_maxSoc = Batteries.Values.Sum(x => x.CapacityMaxSoc) / TotalCapacity); public AmpereSecond Capacity => TotalCapacity; public Volt NominalVoltage => Batteries.Values.Select(x => x.NominalVoltage).Average(); diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Strategies/HybridStrategy.cs b/VectoCore/VectoCore/Models/SimulationComponent/Strategies/HybridStrategy.cs index 79f9e7d481a0897d5db65904b9ef073cf6b4d665..d74718f13ea898676629d99d73af2f1af5f17243 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Strategies/HybridStrategy.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Strategies/HybridStrategy.cs @@ -2099,11 +2099,11 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Strategies VectoMath.Min( ModelData.GearboxData.Gears[resp.Gearbox.Gear.Gear].MaxSpeed, DataBus.EngineInfo.EngineN95hSpeed)) ) { - tmp.FuelCosts = double.NaN; + tmp.FuelCosts = iceOff ? 0 : double.NaN; tmp.IgnoreReason |= HybridConfigurationIgnoreReason.EngineSpeedTooHigh; } if (resp.Engine.EngineSpeed.IsSmallerOrEqual(ModelData.EngineData.IdleSpeed)) { - tmp.FuelCosts = double.NaN; + tmp.FuelCosts = iceOff ? 0 : double.NaN; tmp.IgnoreReason |= HybridConfigurationIgnoreReason.EngineSpeedTooLow; }