embotech / ecos

A lightweight conic solver for second-order cone programming.
GNU General Public License v3.0
479 stars 123 forks source link

CBF file reader #180

Closed erling-d-andersen closed 5 years ago

erling-d-andersen commented 5 years ago

We can provide source code that will build a binary that can read CBF files and run ECOS if you are interested.

CBF is the standard format of

cblib.zib.de

adomahidi commented 5 years ago

That would be very interesting, Erling. Could this be integrated into Travis CI? Does it work under linux?

erling-d-andersen commented 5 years ago

It is just a few simple ANSI C files that builds into simple binary that can read CBF files. That is all. We build and run it on Linux.

I suppose you can integrate it into Travis but I do not know Travis. In any case we will not do that.

erling-d-andersen commented 5 years ago

The binary send sends the problem into ecos and lets it solve it.

erling-d-andersen commented 5 years ago

ecos_cli.tar.gz

build with:
$ make -f Makefile.cbf runecoscbf

run with
$ ./runecoscbf cbfprob.cbf[.gz]

for example
$ ./runecoscbf /remote/mosek/testprob/public/cblib/instances/cbf/co/cbl_bss1.cbf.gz

adomahidi commented 5 years ago

That's great Erling, thanks a lot for providing this!

erling-d-andersen commented 5 years ago

Note this interface does support all features of CBF format such RQUAD cones since ecos does not support that. Also no integer variables are handled.

Anyone who wants those features can most likely easily extend the interface.