lpmodel.eval | R Documentation |
lpmodel
This function returns the matrix or vector depending on the
class of the variable in the lpmodel
object. In the design of
the lpinfer
module, objects in lpmodel
can have three
different types of classes:
function
— If the object is a function, then the
object that is evaluated by the function with the data will be
returned.
list
— If the object is a list, then the i
-th
element will be returned.
matrix
or numeric
— If the object is a matrix
or in a vector, then it will be directly returned.
lpmodel.eval(data, obj, i)
data |
A data frame. |
obj |
An object in lpmodel. |
i |
An index. |
Returns an object at iteration i
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.