-
Notifications
You must be signed in to change notification settings - Fork 87
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
Fixing set_start_value
only accept numbers (#2237)
#1136
Conversation
Sync my old fork state to the current state of MOI
Syncing with original repository
function test_variable_primal_start(model, config)
MOI.empty!(model)
x = MOI.add_variable(model)
@test MOI.get(model, MOI.VariablePrimalStart(), x) === nothing
MOI.set(model, MOI.VariablePrimalStart(), x, 1.0)
@test MOI.get(model, MOI.VariablePrimalStart(), x) == 1.0
MOI.set(model, MOI.VariablePrimalStart(), x, nothing)
@test MOI.get(model, MOI.VariablePrimalStart(), x) === nothing
end
model = MOIU.MockOptimizer(MOIU.UniversalFallback(MOIU.Model{Float64}()))
MOI.Test.test_variable_primal_start(model, MOI.Test.TestConfig()) |
@odow, you asked to do the same modification of documentation to |
… new test from old. Call the new test.
I made a new commit. It updates the documentation of I also reverted the test I modified and instead created a new test, but not only for I call the new test in the fashion suggested by @odow. The My new test method has 5 commented |
Should I be doing something here? |
Right now, I have a window of opportunity to make any changes necessary for this to be approved, while I wait for some reviews of my last paper. Any directions? |
I followed all @blegat suggestions and did a minor cosmetic change (changed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove the "Draft" state of the PR ?
Sorry, forgot about that. Now it is ready for review. I will make that small comment change. |
Intends to close #2237 and some related open issues (#649, #794, #853).
Some guidance is needed. For now, I just edited what I found to be the relevant piece of documentation, and added a new tests as well flags to an old test (allowing more granular selection of which attributes are tested). I would like to know:
JuMP
probably will need a change, but there are other points inside MOI?nothing
to be passed is something done at the wrapper level, and the generic methods in MOI already allow it. The test will probably force the wrappers to allow this behavior.No hurry, @odow, I do not know if I will work during the week, but I will try finish it next weekend if I am sure of what needs to be done yet.