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

Add tests that show the influence of sparse matrices #12

Open
bchretien opened this issue Mar 26, 2014 · 3 comments
Open

Add tests that show the influence of sparse matrices #12

bchretien opened this issue Mar 26, 2014 · 3 comments

Comments

@bchretien
Copy link
Member

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.

@thomas-moulard
Copy link
Member

Why not, but if you have any reference for biggest tests (cute, cuter or cutest maybe?) it may also be worth a try to directly implement at least one big problem. I am still afraid that there will be side effects we won't foresee if we do that.

@bchretien
Copy link
Member Author

We could use the AMPL-NLP benchmark, but this will probably take some time to implement.

@bchretien
Copy link
Member Author

Also, they seem to be doing something similar in the AMPL benchmark, since they wrote:

The sources of the AMPL scripts are (partly with increased dimensions): 
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants