View source: R/funcs_constraints.R
get_constraints_strings | R Documentation |
The function was written in order to return objects that will be used by the 'nloptr' package.
get_constraints_strings(scenario, optim_type, constant)
scenario |
A named list representing a scenario list-object. |
optim_type |
A string specifying the type of optimisation to be ran |
constant |
Numeric. |
A list with 4 elements:
'num_constraints_eq' Numeric. Number of equality constraints.
'budget_function' Character string. Used to set equality constraint.
'budget_jacobian' Character string. Used to set equality constraint.
'num_constraints_ineq' Numeric. Number of inequality constraints.
'constraint_function' Character string. Used to set inequality constraints.
'constraint_jacobian' Character string. Used to set inequality constraints.
## Not run: scenario <- create_scenario("data/scenario_0") const_strings <- get_constraints_strings(scenario, 1e-6) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.