-
Notifications
You must be signed in to change notification settings - Fork 20
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
Error when building problem with zero coefficients #77
Comments
The error is caused by the presence of zero coefficients in BTW, if you already know # Assume A, lb, ub, c are known
m, n = size(A)
lp = Tulip.Model{Float64}()
Tulip.load_problem!(lp.pbdata,
"LP", # problem name
true, c, 0.0, # objective
sparse(A), lb, ub, # rows
fill(-Inf, n), fill(Inf, n), # variable bounds
fill("", m), fill("", n) # row and column names
) |
Found the bug. When adding constraints, those numerical zeros are kept in the rows but not in the columns. |
@mtanneau It solves my problem ! Thanks ! |
Great! :D I'll leave the issue open until I push a fix. |
@amontoison @salomonl I have just tagged v0.7.1 which includes the fix. |
@mtanneau I am testing the native API of the Tulip solver on several examples, which are supposed to be feasible. Most are working, except this one.
On this particular example (sorry, I did not find another minimal example), I trigger the formatting exception line 164 of
src/IMP/impdata.jl
. It works for several similar other examples, so the dimensions format seem correct.I try to solve the following problem:
min z5
s.c lb <= Az <= ub
with A of dimensions 49 * 34 and z of dimensions 34, lb and ub of dimensions 49.
So, A has more rows than columns.
Here, what is obtained:
I use the
Julia 1.5.3
version release.It does not seem a formatting normal error. Do you have any idea ?
The text was updated successfully, but these errors were encountered: