Skip to content

Really like this feature, but it doesn't seem to work for me. #45

Description

@dtkutzke

I'm trying to use the conditional @Implies and it seems that it's not working quite right.
I have two variables declared (with lower and upper bounds) as follows:

Assets = range(1,1,nAssets);
Tasks = range(1,1,nTasks);
MAX_LB = -1000; # These are arbitrary. I wouldn't declare these if ConditionalJuMP didn't require them
MAX_UB = 1000;
@variables m begin
  MAX_LB <= X[Assets,Tasks] <= MAX_UB, Int
  MAX_LB <= XPrime[Assets,Tasks] <= MAX_UB, Int
end
for as in Assets, ts in Tasks
  @implies(m,(XPrime[as,ts] <= -1) => (X[as,ts] == 0))
  @implies(m,(XPrime[as,ts] >= 0) => (X[as,ts] == XPrime[as,ts]))
end

Then when I print the resulting values, all are set to -1000, instead of whatever else I might expect.
Any idea if this is an indication of something else in my code or something wrong with the way I'm using your syntax? I really like this, by the way. All of the proprietary solvers have similar conditionals, and this is a great addition to JuMP.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions