载入中...
搜索中...
未找到
eve::agent::balance::IEvaluator类 参考abstract

Game-owned isolated simulation adapter, not a second combat implementation. @ownership Caller owns the adapter. Inputs are borrowed only during evaluate; output owns its metrics. @thread Domain owner thread. No locks are held; do not reenter/destroy the search or adapter in callbacks. 更多...

#include <Balance.h>

Public 成员函数

virtual ~IEvaluator ()=default
 Release the domain adapter.
 
virtual Result< std::vector< double > > evaluate (std::span< const double > parameters, std::uint64_t seed, double dt, std::uint32_t steps)=0
 Reset and simulate a single candidate and seed. @cost One domain rollout per call; amortize by reusing immutable domain definitions.
 

详细描述

Game-owned isolated simulation adapter, not a second combat implementation. @ownership Caller owns the adapter. Inputs are borrowed only during evaluate; output owns its metrics. @thread Domain owner thread. No locks are held; do not reenter/destroy the search or adapter in callbacks.

备注
Every call must reset domain state, events and named RNG streams from seed, then advance exactly steps ticks of dt. Return metrics in target order. Errors are failures, never low scores. Learned/heuristic policy populations may be evaluated here; no automatic policy training is implied.

在文件 Balance.h 第 57 行定义.

构造及析构函数说明

◆ ~IEvaluator()

virtual eve::agent::balance::IEvaluator::~IEvaluator ( )
virtualdefault

Release the domain adapter.

成员函数说明

◆ evaluate()

virtual Result< std::vector< double > > eve::agent::balance::IEvaluator::evaluate ( std::span< const double >  parameters,
std::uint64_t  seed,
double  dt,
std::uint32_t  steps 
)
pure virtual

Reset and simulate a single candidate and seed. @cost One domain rollout per call; amortize by reusing immutable domain definitions.


该类的文档由以下文件生成: