Skip to content

Remove creation of some redundant constraints.#54

Merged
meatballs merged 1 commit intomasterfrom
less_constraints
May 6, 2017
Merged

Remove creation of some redundant constraints.#54
meatballs merged 1 commit intomasterfrom
less_constraints

Conversation

@drvinceknight
Copy link
Collaborator

This just helps with the performance of the algorithm (relevant for
large problems). I've had to modify the tutorial because the solution
that was being output is no longer the same (both solutions are valid).

This just helps with the performance on the algorithm (relevant for
large problems). I've had to modify the tutorial because the solution
that was being output is no longer the same (both solutions are valid).
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 1f2d460 on less_constraints into 80485d1 on master.

@meatballs meatballs merged commit 9df967a into master May 6, 2017
@meatballs meatballs deleted the less_constraints branch May 6, 2017 14:56
f'{label} - event: {event}, slot: {slot}',
X[(event, slot)] + X[(other_event, other_slot)] <= 1
)
if events[event].tags is not []:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean to test identity here, or just equality? Since the second half of the comparison will be created every time, I think this always returns True:

>>> [] is not []
True
>>> x = []
>>> x is not []
True

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

Successfully merging this pull request may close these issues.

4 participants