Skip to content

Conversation

odow
Copy link
Member

@odow odow commented Sep 3, 2021

What does it mean to ConstraintPrimalStart a ZeroOne constraint? We should only be supporting it if it makes sense.

@odow odow added the Submodule: Bridges About the Bridges submodule label Sep 3, 2021
value,
) where {T}
MOI.set(model, attr, bridge.integer_index, value)
MOI.set(model, attr, bridge.interval_index, value)
Copy link
Member Author

Choose a reason for hiding this comment

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

@blegat does ConstraintPrimalStart make sense for a ZeroOne constraint?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, a ConstraintPrimalStart is the starting value of the function. It's well-defined for all constraints

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure. But does any solver actually implement it...

Copy link
Member

Choose a reason for hiding this comment

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

Since most solvers only support VariableIndex-in-Integer, and setting the starting value of this is a bit redundant, I don't think so. However, if a solver want to implemented ScalarAffineFunction in Integer, they will need this.

Copy link
Member Author

@odow odow Sep 5, 2021

Choose a reason for hiding this comment

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

To rephrase: in what situation would a solver benefit from being able to set ConstraintPrimalStart of a ZeroOne constraint.

There's a lot of stuff in MOI that is there "just because" without a good reason. Not that we shouldn't add some of the stuff. But if no one is ever going to call it, we shouldn't rush to add code. It's an overhead for everyone.

@odow odow merged commit 35f5ba7 into master Sep 6, 2021
@odow odow deleted the od/zero_one branch September 6, 2021 01:30
@odow
Copy link
Member Author

odow commented Sep 6, 2021

Merged for now. We can always revisit in the future. For now, ConstraintPrimalStart isn't needed.

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

Labels

Submodule: Bridges About the Bridges submodule

Development

Successfully merging this pull request may close these issues.

2 participants