Nothing
#####
## DO NOT EDIT THIS FILE!! EDIT THE SOURCE INSTEAD: rsrc_tree/reductions/dgp2dcp/canonicalizers/constant_canon.R
#####
## CVXPY SOURCE: reductions/dgp2dcp/canonicalizers/constant_canon.py
## DGP canonicalizer for Constant: log-transform the value
.dgp_constant_canon <- function(expr, args) {
val <- value(expr)
## G10: validate positivity
if (any(val <= 0)) {
cli_abort("DGP requires strictly positive constants, but got non-positive value.")
}
list(Constant(log(val)), list())
}
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.