value-methods function

Get or Set Value

Get or Set Value

Get or set the value of a variable, parameter, expression, or problem.

value(object) value(object) <- value

Arguments

  • object: A Variable , Parameter , Expression , or Problem object.
  • value: A numeric scalar, vector, or matrix to assign to the object.

Returns

The numeric value of the variable, parameter, or expression. If any part of the mathematical object is unknown, return NA.

Examples

lambda <- Parameter() value(lambda) value(lambda) <- 5 value(lambda)
  • Maintainer: Anqi Fu
  • License: Apache License 2.0 | file LICENSE
  • Last published: 2024-11-07