#include <algorithm>#include <cstdio>#include <cstdlib>#include <exception>#include <memory>#include <stdexcept>#include <string>#include <vector>#include "../TrainingProductApi.h"#include "SchemeII.h"Go to the source code of this file.
Functions | |
| __attribute__ ((visibility("default"))) void *gpr_training_product_create_v1(char *error | |
| __attribute__ | ( | (visibility("default")) | ) |
Immortal dest identity string. Never NULL.
FNV-1a 64-bit hash of eon_relax_version_hash_str(). Copied to outcome.version_hash.
Create. NULL config && config_len==0 selects Parameters NSDMI defaults and kind=NEB. A non-empty buffer is a Cap'n Proto flat-array whose root is RelaxEngineParams. kind tokens are "neb" and "saddle"; any other token fails closed (EON_RELAX_UNKNOWN_KIND). An unparseable buffer is EON_RELAX_CAPNP_ROOT. config!=NULL && config_len==0 is refused.
Last named create/run/step/reset/set_epoch rc on this handle. 0 if none.
Run the bound engine to completion. Writes updated interior coordinates into band->positions (caller-owned); endpoints stay in the caller frame. Endpoint minimization stays with the host (NudgedElasticBand::compute does not minimize endpoints). surface may not be NULL. Kind is bound at create (NULL config => NEB). Returns eon_relax_rc_t; on 0, out->status is the eOn NEB or saddle table.
One band optimizer step (kind=NEB only). The first call on a fresh or reset engine initializes the band state from the caller's positions and captures the baseline force; every call syncs band->positions in (the host may have moved images between steps), assembles NEB forces on the host surface, takes ONE optimizer step, and writes the stepped INTERIOR positions back (endpoints are the caller's and are never rewritten, so the caller's frame survives eOn's own cell wrapping). Climbing-image activation follows the engine's own trigger rule; saddle POLICY (MMF bursts, resampling, acquisition) stays with the host. outcome.status is RUNNING until convergenceForce() reaches the configured tolerance (GOOD), host variance exceeds the GP-surrogate threshold (MAX_UNCERTAINTY), or neb.max_iterations is hit (BAD_MAX_ITERATIONS). surface and user must not change across steps without an eon_relax_reset.
Drop the stepper's band state and optimizer history; the next eon_relax_step reinitializes from the caller's band. This is the host's model-update hook: quasi-Newton memory taken on one surface epoch must not survive onto the next.
NULL if kind or status is unknown.