Learn R Programming

highs (version 1.10.0-1)

hi_model_set_constraint_matrix: Set Constraint Matrix for Highs Model

Description

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

Usage

hi_model_set_constraint_matrix(model, matrix)

Value

NULL

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".

Examples

Run this code
model <- hi_new_model()
matrix <- matrix(c(1, 0, 0, 1), nrow = 2)
hi_model_set_constraint_matrix(model, matrix)

Run the code above in your browser using DataLab