biogeme.likelihood.negative_likelihood module

Class that provides the function to the optimization algorithm

Michel Bierlaire Sat Mar 29 16:27:47 2025

class biogeme.likelihood.negative_likelihood.NegativeLikelihood(dimension, loglikelihood, parameters=None)[source]

Bases: FunctionToMinimize

Provides the value of the function to be minimized, as well as its derivatives. To be used by the optimization package.

Parameters:
  • dimension (int)

  • loglikelihood (Callable[[ndarray, bool, bool, bool], FunctionOutput])

  • parameters (dict[str, float] | None)

dimension()[source]

Provides the number of variables of the problem

Return type:

int

save_iterations(filename_for_best_iteration, free_betas_names)[source]
Return type:

None

Parameters:
  • filename_for_best_iteration (str)

  • free_betas_names (list[str])

the_dimension: int

number of parameters to estimate