View source: R/RMaximaMathConvert.R
Generate Kuhn-Tucker-Conditions (usable in a MCP) for a given objective
1 2 3 4 5 6 7 8 9 10 | mx.gams.mcp(expr, var, fun.name = "fun",
has.lo = rep(TRUE, length(var)),
has.up = rep(TRUE, length(var)),
lo = paste("lo_", var, sep = ""),
up = paste("up_", var, sep = ""),
shadow.lo = paste("mu_lo_", var, sep = ""),
shadow.up = paste("mu_up_", var, sep = ""),
constr.lo = paste("constr_lo_", var, sep = ""),
constr.up = paste("constr_up_", var, sep = ""),
declare = NULL, assume = NULL, simplify = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.