to_optimization_variable

Variable.to_optimization_variable(graph, name=None)

Create an optimization variable that matches the form of the calibration variable.

You can use this to use Boulder Opal’s graphs to perform curve fitting with the calibration variables.

Parameters

  • graph (Graph) – The Boulder Opal model-based optimization graph object to which you want to pass the variable.
  • name (str or None , optional) – The name of the variable in the Boulder Opal graph. Defaults to the same name of the calibration variable.

Returns

The name of the tensor that corresponds to the optimization variable.

Return type

Tensor

Was this useful?