Skip to main content

set_coefficient

Method of Model.

Overloads

NameDescription
set_coefficient(const string name, const CoefficientFunction coefficient) -> ModelSets the named coefficient to the given value.
set_coefficient(const string name, complex coefficient) -> ModelSets the named coefficient to the given value.

set_coefficient(const string name, const CoefficientFunction 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.

set_coefficient(const string name, complex 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.