Nothing
#####
## DO NOT EDIT THIS FILE!! EDIT THE SOURCE INSTEAD: rsrc_tree/reductions/dcp2cone/canonicalizers/indicator_canon.R
#####
## CVXPY SOURCE: reductions/dcp2cone/canonicalizers/indicator_canon.py
## indicator_canon -- canonicalize indicator transform
##
## Returns Constant(0) for the expression and the constraints as-is.
indicator_canon <- function(expr, args, solver_context = NULL) {
list(Constant(0), args)
}
method(dcp_canonicalize, Indicator) <- indicator_canon
method(has_dcp_canon, Indicator) <- function(expr) TRUE
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.