ECOS_update: Update numerical data in an ECOS workspace

View source: R/ecos.R

ECOS_updateR Documentation

Update numerical data in an ECOS workspace

Description

Replaces numerical values in an existing ECOS workspace without repeating symbolic analysis. The sparsity structure must remain the same; only the non-zero values of G and A, and the dense vectors c, h, b can be updated. Pass NULL for any argument to leave it unchanged.

Usage

ECOS_update(workspace, Gpr = NULL, Apr = NULL, c = NULL, h = NULL, b = NULL)

Arguments

workspace

an external pointer of class "ecos_workspace" as returned by ECOS_setup.

Gpr

numeric vector of new non-zero values for G (same length as original), or NULL to keep current values.

Apr

numeric vector of new non-zero values for A (same length as original), or NULL to keep current values.

c

numeric vector of new objective coefficients, or NULL.

h

numeric vector of new inequality RHS, or NULL.

b

numeric vector of new equality RHS, or NULL.

Value

the workspace object, invisibly.

See Also

ECOS_setup, ECOS_solve, ECOS_cleanup


ECOSolveR documentation built on Feb. 18, 2026, 5:06 p.m.