Skip to content

is_time_variant vs is_time_variant_term #83

@luke-kiernan

Description

@luke-kiernan

Just realized I've introduced a bug in the lk/mbc_iec_refactor branch. I failed to recognize the distinction between is_time_variant and is_time_variant_term. Example: if x::TimeSeriesIncrementalCurve has x.initial_input = nothing, then:

  • is_time_variant(x) = true: it's a time-varying curve object.
  • is_time_variant_term(x, OnVariable) = false: the field of x that becomes the coefficient of OnVariable (the initial input field) is not time varying.

edit: they're both for deciding whether to add terms to the variant or invariant objective function terms. is_time_variant_term is used in proportional_cost alone. Other places (like add_variable_cost_to_objective!) use is_time_variant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions