Description Usage Arguments Value See Also
This function is the standard C++ wrapper for KNITRO. It defines the object
KTR_new
and defines a callback function that is used to evaluate the objective
function, the constraints, and gradients. The only deviation from the standard C++
wrapper is to use UserParam
to pass the original R functions on to the C++
callback function.
1 2 3 | knitroCpp(fcts, startValues, num_equality_constraints,
num_inequality_constraints, nnzJ, RjacIndexCons, RjacIndexVars, ub, lb,
optionsFile)
|
fcts |
is an R list of functions that includes the |
startValues |
is a vector of start values |
num_equality_constraints |
is an integer with the number of equality constraints in |
num_inequality_constraints |
is an integer with the number of inequality constraints in |
nnzJ |
is an integer with the number of non-zero objects in the Jacobian |
RjacIndexCons |
is a vector of length |
RjacIndexVars |
is a vector of length |
ub |
a vector of upper bounds for each element in x0 |
lb |
a vector lower bounds for each element in x0 |
optionsFile |
the location of the options file |
A list with the vector that minimizes the objective function, the final function value, and KNITRO's exit status
http://www.artelys.com/tools/knitro_doc/2_userGuide/gettingStarted/startCallableLibrary.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.