Skip to content

Support @constraints m [i in 1:5] begin ... end #4157

@cstjean

Description

@cstjean

Is there any reason not to support that syntax? I have a big block that looks like

@constraints m begin
    [i in 1:5], ...
    [i in 1:5], ...
    [i in 1:5], ...
    [i in 1:5], ...
    [i in 1:5], ...
end

It'd be nicer if [i in 1:5] appeared only once.

@constraints m [i in 1:5] begin
    ...
    ...
    ...
    ...
    ...
    ...
end

I'm assuming that it was rejected for some reason (and thus please close this issue), but if not, I believe I could make a PR for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions