Skip to content

CCCP not finding optimal solution. #2

@bnaras

Description

@bnaras

The setting of tolerances to 1-6 seems to work for smaller problems, but fails when I increase the problem size. Here I attach matrices containing 52 rows (gh.RDS in the zip file). The associated code is below (and actually of the same form as I had emailed):

library(cccp)
gh  <- readRDS("gh.RDS")

clist  <- list(
    cccp::socc(F = -gh$G[2:52, , drop = FALSE],
               g = gh$h[2:52, , drop = FALSE],
               d = -gh$G[1, , drop = FALSE],
               f = gh$h[1, , drop = FALSE])
)

results <- cccp::cccp(q = c(1, 0, 0),
                      cList = clist,
                      optctrl = cccp::ctrl(abstol = 1e-6, feastol = 1e-6, reltol = 1e-6)
                      )
sessionInfo()

Results and data here in result.zip.

CCCP seems to get close to the solution around iteration 13 or15 quickly, but then it wanders off away from the optimum. Sometimes the resulting error is that the problem is infeasible.

Incidentally, all other solvers I use (ECOS, MOSEK, OSQP) all solve this without a problem.

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