| piqp_model | R Documentation |
This class wraps around the PIQP C++ Solver and
exposes methods and fields of the C++ object. Users will never
need to directly create instances this class and should use the
more user-friendly functions piqp() and solve_piqp().
new()Create a new piqp_model object
piqp_model$new( P, c, A, b, G, h, x_lb, x_ub, settings = list(), dense_backend, dims )
Pdense or sparse matrix of class dgCMatrix or coercible into such, must be positive semidefinite
cnumeric vector
Adense or sparse matrix of class dgCMatrix or coercible into such
bnumeric vector
Gdense or sparse matrix of class dgCMatrix or coercible into such
hnumeric vector
x_lba numeric vector of lower bounds
x_uba numeric vector of upper bounds
settingslist with optimization parameters
dense_backenda flag indicating if the dense solver is to be used
dimsthe dimensions of the problem, a named list containing n, p and m.
a piqp_model object that can be used to solve the QP
solve()Solve the QP model
piqp_model$solve()
a list containing the solution
update()Update the current piqp_model with new data
piqp_model$update( P = NULL, c = NULL, A = NULL, b = NULL, G = NULL, h = NULL, x_lb = NULL, x_ub = NULL )
Pdense or sparse matrix of class dgCMatrix or coercible into such, must be positive semidefinite
cnumeric vector
Adense or sparse matrix of class dgCMatrix or coercible into such
bnumeric vector
Gdense or sparse matrix of class dgCMatrix or coercible into such
hnumeric vector
x_lba numeric vector of lower bounds
x_uba numeric vector of upper bounds
settingslist with optimization parameters
dense_backenda flag indicating if the dense solver is to be used
dimsthe dimensions of the problem, a named list containing n, p and m.
get_settings()Obtain the current settings for this model
piqp_model$get_settings()
get_dims()Obtain the dimensions of this model
piqp_model$get_dims()
update_settings()Update the current settings with new values for this model
piqp_model$update_settings(new_settings = list())
new_settingsa list of named values for settings, default empty list; see piqp_settings() for a comprehensive list of defaults
clone()The objects of this class are cloneable with this method.
piqp_model$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.