hi_model_set_hessian: Set Hessian Matrix for Highs Model

View source: R/model-api.R

hi_model_set_hessianR Documentation

Set Hessian Matrix for Highs Model

Description

This function sets the Hessian matrix for a given Highs model.

Usage

hi_model_set_hessian(model, matrix)

Arguments

model

an object of class "highs_model".

matrix

a matrix giving the Hessian matrix. Allowed matrix classes are "matrix", "dgCMatrix", "matrix.csc", and "simple_triplet_matrix".

Value

NULL

Examples

model <- hi_new_model()
hessian_matrix <- matrix(c(1, 0, 0, 1), nrow = 2)
hi_model_set_hessian(model, hessian_matrix)


highs documentation built on June 8, 2025, 10:36 a.m.