% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read.R
\name{.cbf_cone_to_roi}
\alias{.cbf_cone_to_roi}
\title{Map a CBF cone name to the corresponding ROI cone object.}
\usage{
.cbf_cone_to_roi(cone_nm, count, powcones, powstar_cones)
}
\arguments{
\item{cone_nm}{CBF cone token.}

\item{count}{Cone dimension (= number of constraint rows).}

\item{powcones}{Primal power-cone lookup table (list of alpha vectors).}

\item{powstar_cones}{Dual power-cone lookup table.}
}
\value{
ROI cone object, or \code{NULL} if unsupported.
}
\description{
Non-parametric cones are recognised by their literal CBF names (Appendix A
of the spec).  Parametric cones carry an \code{@k:POW} or \code{@k:POW*}
prefix that encodes their 0-based index into the respective lookup table.
}
\section{ROI cone constructors used}{

\describe{
  \item{\code{ROI::K_soc(n)}}{Second-order (Lorentz) cone, CBF \code{Q}.}
  \item{\code{CBF QR}}{Bridged to \code{ROI::K_soc(n)} via
    \eqn{(u, v, w) \mapsto (u+v, u-v, \sqrt{2} w)} before cone creation.}
  \item{\code{ROI::K_expp(n)}}{Primal exponential cone, CBF \code{EXP} (\eqn{n=3}).}
  \item{\code{ROI::K_expd(n)}}{Dual exp cone, CBF \code{EXP*}.}
  \item{\code{ROI::K_psd(d)}}{PSD cone; \code{d} = svec dimension
    \eqn{d = n(n+1)/2} where \eqn{n} is the matrix side-length.}
  \item{\code{ROI::K_powp(alpha)}}{Power cone; \code{alpha} from
    POWCONES or equal-weight vector for \code{GMEANABS}/\code{GMEAN}.}
  \item{\code{ROI::K_powd(alpha)}}{Dual power cone.}
}
}

\keyword{internal}
