Skip to content

Use staged functions in @variable #346

@joehuchette

Description

@joehuchette

Currently we don't recognize this as something we can store as a JuMPArray:

I = 1:3
@defVar(m, x[I])

It should be fairly straightforward to add a staged function in the generated macro code that takes the JuMPArray branch based on the type of I.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions