Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the macro interface? #216

Open
dpsanders opened this issue Apr 3, 2024 · 2 comments
Open

Remove the macro interface? #216

dpsanders opened this issue Apr 3, 2024 · 2 comments

Comments

@dpsanders
Copy link
Member

With #212 most functionality (currently except for variables) will be available using the symbol interface.

Can we then remove the macro interface? cc @schillic

@schillic
Copy link
Contributor

schillic commented Apr 3, 2024

(I am not sure whether the question was to me.) I do not know what the macro interface is, sorry.

@dpsanders
Copy link
Member Author

Sorry I wasn't clear. I was referring to the following:

Macro interface (old):

C = @constraint x^2 + y^2 <= 1

Symbolic interface (new):

vars = @variables x, y
C = Constraint(x^2 + y^2 <= 1, vars)

The macro interface tried to be too clever by extracting the variables for you, but does not allow enough control. I would like to get rid of it.

However in model.jl in #212 I started to add a model and macro interface that is JuMP-like.
(In fact I believe there is now support in JuMP or JuMP-related packages for a constraint programming interface like this already, so we should probably not add one here.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants