powered by
This function sets the Hessian matrix for a given Highs model.
hi_model_set_hessian(model, matrix)
NULL
an object of class "highs_model".
"highs_model"
a matrix giving the Hessian matrix. Allowed matrix classes are "matrix", "dgCMatrix", "matrix.csc", and "simple_triplet_matrix".
"matrix"
"dgCMatrix"
"matrix.csc"
"simple_triplet_matrix"
model <- hi_new_model() hessian_matrix <- matrix(c(1, 0, 0, 1), nrow = 2) hi_model_set_hessian(model, hessian_matrix)
Run the code above in your browser using DataLab