Skip to main content

set_coefficient

Method of Model.

set_coefficient(const string name, real coefficient) -> Model

Sets the named coefficient to the given value.

Parameters

  • name: Name of the coefficient to be set.
  • coefficient: Coefficient to be set at coefficient name.