Skip to content

Add tests that show the influence of sparse matrices #12

@bchretien

Description

@bchretien

For now, the tests available are too "small" to really demonstrate the influence of the sparsity of the Jacobian matrix for solvers that support it. We need larger sparse problems to really compare dense and sparse implementations.

What we could do at first is create a RobOptim filter that "duplicates" or "copy-pastes" a problem to artificially increase its size:

Problem:              --->     Enlarged problem:
  cost: f(x0,x1)                  cost: f(x0,x1) + f(x2,x3) + f(x4,x5) + ...
  constraints:                    constraints:
    g0(x0,x1)                       g0_0(x0,x1), g0_1(x2,x3), g0_2(x4,x5), ...
    g1(x0,x1)                       g1_0(x0,x1), g1_1(x2,x3), g1_2(x4,x5), ...

The solver would be solving several times the same problem, with a very sparse structure. Also, if we know the optimal solution of the problem, we also know the optimal solution of the enlarged problem.

Having actual problems would of course be better, but this trick may be sufficient for now.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions