evaluate_biogeme_expression: Evaluate a standalone expression with native Biogeme

View source: R/evaluation.R

evaluate_biogeme_expressionR Documentation

Evaluate a standalone expression with native Biogeme

Description

The expression is compiled once by the Python bridge. The initial result contains the native function value, gradient, Hessian, and BHHH matrix. If points is supplied, the same compiled native callable evaluates each row with the requested free-parameter values. R does not evaluate the expression locally and no Python object is returned.

Usage

evaluate_biogeme_expression(
  expression,
  beta = NULL,
  points = NULL,
  numerically_safe = FALSE,
  use_jit = TRUE
)

Arguments

expression

A Biogeme expression.

beta

Optional named numeric vector used for the initial evaluation. When omitted, native Beta starting values are used.

points

Optional data frame or numeric matrix. Its columns are free parameter names and its rows are the parameter vectors for repeated native evaluations.

numerically_safe

Whether to request native numerically safe formulas.

use_jit

Whether to use native JAX just-in-time compilation.

Value

An object of class biogeme_expression_evaluation with initial, free_beta_names, and evaluations components.


rbiogeme documentation built on Sept. 29, 2026, 5:09 p.m.