-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME.Rmd
More file actions
65 lines (46 loc) · 1.9 KB
/
README.Rmd
File metadata and controls
65 lines (46 loc) · 1.9 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
# ECOSolveR
[](https://github.com/bnaras/ECOSolveR/actions/workflows/R-CMD-check.yaml)
[](https://cran.r-project.org/package=ECOSolveR)
[](https://app.codecov.io/github/bnaras/ECOSolveR?branch=master)
[](https://CRAN.R-project.org/package=ECOSolveR)
Embedded Conic Solver in R. This is an R wrapper around the
[ecos](https://github.com/embotech/ecos) project on GitHub which
describes ECOS as below.
ECOS is a numerical software for solving convex second-order cone programs (SOCPs) of type
$$
\mbox{Minimize } c'x \mbox{ such that } Ax = b \mbox{ and } Gx <=_K h
$$
where the last inequality is generalized, that is, $h-Gx$ belongs to
the cone $K$.
ECOS supports the positive orthant ${\mathbf R}_+$, second-order cones
$Q_n$ defined as
$$
Q_n = \bigl\{ (t,{\mathbf x}) | t >= \lVert{\mathbf x}\rVert_2 \bigr\}
$$
with $t$ a scalar and ${\mathbf x} \in {\mathbf R}_{n-1}$, and the exponential
cone $K_e$ defined as
$$
K_e = \mbox{closure} \bigl\{ (x,y,z) | exp(x/z) <= y/z, z>0 \bigr\},
$$
where $(x,y,z) \in {\mathbf R}^3$.
The cone $K$ is therefore a direct product of the positive orthant, second-order, and exponential cones:
$$
\begin{array}{l}
K = R_+ \times Q_{n_1} \times \cdots \times Q_{n_N} \times K_e \times \cdots \times K_e.
\end{array}
$$
## Further Details
Note that the ECOS C language sources are included here. Changes to
the original source are clearly delineated for easy reference.