Skip to content

Too much escaping in @objective #54

Description

@rdeits

@objective escapes its entire result, which assumes that setobjective! and @expression are defined in the caller's scope:

julia> module Foo
       using SimpleQP: @objective, Model, Minimize
       using OSQP.MathOptInterfaceOSQP: OSQPOptimizer
       m = Model(OSQPOptimizer())
       @objective(m, Minimize, 0)
       end
WARNING: replacing module Foo
ERROR: UndefVarError: @expression not defined

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions