Nothing
#####
## DO NOT EDIT THIS FILE!! EDIT THE SOURCE INSTEAD: rsrc_tree/reductions/dgp2dcp/canonicalizers/finite_set_canon.R
#####
## CVXPY SOURCE: reductions/dgp2dcp/canonicalizers/finite_set_canon.py
## DGP canonicalizer for FiniteSet -- reconstruct after log transform
##
## After Dgp2Dcp applies log to variables, the set values are already
## log-transformed. Simply reconstruct FiniteSet with the new args.
## CVXPY SOURCE: finite_set_canon.py lines 4-7
.dgp_finite_set_canon <- function(expr, args) {
data <- get_data(expr)
ineq_form <- data[[1L]]
id <- data[[2L]]
## args[0] = log-transformed expre, args[1] = log-transformed vec
list(FiniteSet(args[[1L]], args[[2L]], ineq_form, id), list())
}
## Register via S7 dispatch
method(dgp_canonicalize, FiniteSet) <- .dgp_finite_set_canon
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.