dmatrixconvert: Coerces a 'dgeMatrix' as a 'sparseMatrix'

View source: R/misc.R

dmatrixconvertR Documentation

Coerces a dgeMatrix as a sparseMatrix

Description

This function coerces a dgeMatrix as a sparseMatrix.This function is used specifically in the gurobi.optim function to ensure that the arguments are accepted by the gurobi function.

Usage

dmatrixconvert(mat)

Arguments

mat

The matrix that is used in the model component.

Value

Returns a matrix in the matrix form.


conroylau/lpinfer documentation built on Oct. 23, 2022, 9:21 a.m.