Skip to content
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

Test against SDPLIB #79

Open
joaquimg opened this issue Sep 30, 2020 · 1 comment
Open

Test against SDPLIB #79

joaquimg opened this issue Sep 30, 2020 · 1 comment
Assignees

Comments

@joaquimg
Copy link
Collaborator

No description provided.

@zhenweilin
Copy link

Hello! I found some problems in SDPLIB by using some dataset ending by "dat-s". Though the data[3, 1] is negative, most current solvers (like copt, sedumi, mosek) can solve it normally. However, SDPLIB raise an bound index error. It should be fixed if I use the following code

    # Parse SDPLIB data
    m = data[1, 1]
    if isa(data[3, 1], Float64) || isa(data[3, 1], Int64)
        if data[3, 1]<0
            data[3,1] = -data[3,1]
        end
        blks = data[3, :]
        for elem = 1:length(blks)
            if blks[elem] == ""
                blks = blks[1:elem-1]
                break
            end
        end
    else
        blks = parse.(Float64, split(data[3, 1][2:end - 1], ","))
    end

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

No branches or pull requests

3 participants