Param.withContext constructor

Param.withContext(
  1. dynamic context, [
  2. double value = 0.0
])

Creates a new Param with the specified constant value that is tied to some object outside the solver.

Implementation

Param.withContext(this.context, [double value = 0.0])
    : variable = Variable(value) {
  variable._owner = this;
}