Class optscaling_oracle::Ratio

Nested Relationships

This class is a nested type of Template Class optscaling_oracle.

Class Documentation

class Ratio

Ratio.

Public Functions

inline Ratio(const Graph &G, Fn get_cost)

Construct a new Ratio object.

Parameters
  • G[in]

  • get_cost[in]

explicit Ratio(const Ratio&) = default

Construct a new Ratio object (only explicitly)

inline auto eval(const edge_t &e, const Arr &x) const -> double

Evaluate function.

Parameters
  • e[in]

  • x[in] (, ) in log scale

Returns

double

inline auto grad(const edge_t &e, const Arr &x) const -> Arr

Gradient function.

Parameters
  • e[in]

  • x[in] (, ) in log scale

Returns

Arr