| ECOS_update | R Documentation |
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.
ECOS_update(workspace, Gpr = NULL, Apr = NULL, c = NULL, h = NULL, b = NULL)
workspace |
an external pointer of class |
Gpr |
numeric vector of new non-zero values for G (same length
as original), or |
Apr |
numeric vector of new non-zero values for A (same length
as original), or |
c |
numeric vector of new objective coefficients, or |
h |
numeric vector of new inequality RHS, or |
b |
numeric vector of new equality RHS, or |
the workspace object, invisibly.
ECOS_setup, ECOS_solve,
ECOS_cleanup
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.