Cbc icon indicating copy to clipboard operation
Cbc copied to clipboard

Reading model from stdin

Open wspringer opened this issue 4 years ago • 3 comments

I tried to find a way to stream the model into Cbc through stdin, but I couldn't find a way to do it. Is that even an option?

wspringer avatar Dec 07 '19 15:12 wspringer

Yes - I am not sure if it is documented anywhere but

cat stein45.mps | cbc -- -solve

works - but only for mps files

jjhforrest avatar Dec 08 '19 10:12 jjhforrest

Ah, thanks. I was hoping there would be a way to pass CPLEX .lp files as well. Anyone aware of anything like that?

wspringer avatar Dec 08 '19 19:12 wspringer

Cbc can read LP files, so I guess it should be pretty easy to add the ability to read them from stdin.

tkralphs avatar Jun 21 '20 14:06 tkralphs