smatrixconvert: Coerces a 'sparseMatrix' as a 'matrix'

View source: R/misc.R

smatrixconvertR Documentation

Coerces a sparseMatrix as a matrix

Description

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

Usage

smatrixconvert(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.