File: ECOS_update.Rd

package info (click to toggle)
r-cran-ecosolver 0.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 10,196 kB
  • sloc: ansic: 11,160; makefile: 108; python: 26; sh: 23
file content (38 lines) | stat: -rw-r--r-- 1,272 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ecos.R
\name{ECOS_update}
\alias{ECOS_update}
\title{Update numerical data in an ECOS workspace}
\usage{
ECOS_update(workspace, Gpr = NULL, Apr = NULL, c = NULL, h = NULL, b = NULL)
}
\arguments{
\item{workspace}{an external pointer of class \code{"ecos_workspace"}
as returned by \code{\link{ECOS_setup}}.}

\item{Gpr}{numeric vector of new non-zero values for G (same length
as original), or \code{NULL} to keep current values.}

\item{Apr}{numeric vector of new non-zero values for A (same length
as original), or \code{NULL} to keep current values.}

\item{c}{numeric vector of new objective coefficients, or \code{NULL}.}

\item{h}{numeric vector of new inequality RHS, or \code{NULL}.}

\item{b}{numeric vector of new equality RHS, or \code{NULL}.}
}
\value{
the \code{workspace} object, invisibly.
}
\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 \code{NULL} for any argument
to leave it unchanged.
}
\seealso{
\code{\link{ECOS_setup}}, \code{\link{ECOS_solve}},
  \code{\link{ECOS_cleanup}}
}