Пример #1
0
        /// <summary>
        /// Remove an agent with all the relations
        /// </summary>
        /// <param name="agent"></param>
        public void RemoveAgent(DeepRLAgentParameters agent)
        {
            ClearAgent(agent);
            Experiences.RemoveRange(Experiences.Where(e => e.AgentId == agent.Id));
            SimulationResults.RemoveRange(SimulationResults.Where(e => e.AgentId == agent.Id));

            Entry(agent).Reference(a => a.StockExchange).Load();
            StockExchangeParameters.Remove(agent.StockExchange);

            DeepRLAgentParameters.Remove(agent);
        }