ceres_helloworld: Minimal Ceres Solver example

View source: R/RcppExports.R

ceres_helloworldR Documentation

Minimal Ceres Solver example

Description

Solves the one-parameter problem of minimising \frac{1}{2}(10 - x)^2 with Ceres Solver, starting from x, and prints the solver progress and summary. It is the ‘Hello World’ example from the Ceres Solver tutorial and checks that the bundled library works.

Usage

ceres_helloworld(x)

Arguments

x

a number, the initial value of the parameter.

Value

The integer 0; the function is called for its printed output.

References

https://github.com/ceres-solver/ceres-solver/blob/2.2.0/docs/source/nnls_tutorial.rst

Examples

ceres_helloworld(0.5)

ceres documentation built on Nov. 28, 2026, 1:07 a.m.