Usage
minQuad(H,b,C = 1.0,n1=0,n2=0,
mem.efficient = FALSE,alpha = NULL,
lower = NULL,upper = NULL,mat.constr = NULL, lhs.constr = NULL,rhs.constr = NULL,
control = list(DUP = TRUE,maxit = 1e4, tol = 1e-04,
verbose = FALSE, ret.ws = FALSE,ret.data = FALSE,
rank = 0,
method = c("default","tron","loqo","exhaustive","x"),
optim.control = list(),
q = 2,
ws = c("v","v2","greedy","rv2wg","rvwg","rv","rv2")
)
)
Arguments
H
A symmetric matrix whose typeof
returns "double" of dimension (n x n). If mem.efficient = FALSE
n = n1*n2 matches the length of the vector 'b' else n = n1 + n2, see details, defaults to NULL. b
a numeric vector of length 'n' whose typeof
returns "double". C
a numeric variable whose typeof
returns "double", defaults to 1.0 . It is the upper bound on alpha's, where the lower bound is 0.0 . n1,n2
integer variables giving the specific values for n1 = #{diseased}, n2 = #{non-diseased}
mem.efficient
logical, if FALSE then 'H' is represented by the (n1n2 x n1n2) matrix 'Q' else by the (n1+n2 x n1+n2) matrix 'K', defaults to FALSE.
alpha
a length-n1n2 vector vector of initial values for "alpha", whose typeof
returns "double",
defaults to NULL, in which case it is set to 0.5C. mat.constr
m x n constraint matrix for loqo optimizer
lhs.constr
numeric of length 'm', the left hand side constraints for loqo optimizer
rhs.constr
numeric of length 'm', theleft hand side for constraints for loqo optimizer
lower
numeric of length 'n', the lower bounds on primal valriables for loqo optimizer
upper
numeric of length 'n', the upper bounds on primal valriables for loqo optimizer