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

Be stricter about vtype values #92

Open
simonbowly opened this issue Oct 30, 2024 · 1 comment
Open

Be stricter about vtype values #92

simonbowly opened this issue Oct 30, 2024 · 1 comment

Comments

@simonbowly
Copy link
Member

simonbowly commented Oct 30, 2024

Here's one that's a bit more problematic:

x = gppd.add_vars(model, df, lb="lb", ub="ub", vtype="notmytype")

whether or not "notmytype" exists as a column, this creates semi-integer variables because gurobipy is very permissive and just takes the first letter of the string ...

Originally posted by @simonbowly in #91 (comment)

@simonbowly
Copy link
Member Author

We should be stricter to avoid confusion, irrespective of whether we implement #91.

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

1 participant