[Clp] Input formats for clp binary

John Forrest john.forrest at fastercoin.com
Mon Nov 14 08:23:04 EST 2011


I agree it is not a very helpful message - it just means that it to to 
end of file without getting desired information.  I am not an expert on 
that format but take out all semi colons and add keywords - so

    max 0
subject to
     x1 - x2 <= 0
    -x1 + x2 <= 0
end

John Forrest


On 14/11/11 11:18, André Scholz wrote:
> Hello,
>
> i compiled cbc and clp on debian wheezy and using the file test.lp containing
>
>     max: 0 ;
>      x1 - x2<  0 ;
>     -x1 + x2<  0 ;
>
> i get the results:
>
>     me at machine>  ./clp test.lp
>     Coin LP version 1.14.4, build Nov 14 2011
>     command line - ./clp test.lp
>     terminate called after throwing an instance of 'char const*'
>
> and
>
>     me at machine>  ./cbc test.lp
>     Welcome to the CBC MILP Solver
>     Version: 2.7.5
>     Build Date: Nov 14 2011
>
>     command line - ./cbc test.lp (default strategy 1)
>     terminate called after throwing an instance of 'char const*'
>
> What am i doing wrong?
>
> Kind regards,
> André
>
>
>
> On 10.11.2011 at 15:04 Stefan Vigerske wrote:
>> Hi,
>>
>>> is it possible to use the clp or cbc binary on a lp-format file with
>>> lp_solve syntax. Or does it accept another more algebraical format than
>>> mps?
>> .lp should work.
>>
>> If Clp/Cbc is build with Glpk, then also GMPL should work.
>>
>> If Clp/Cbc is build with ASL, then also AMPL's .nl files should work.
>>
>> Stefan
>
> _______________________________________________
> Clp mailing list
> Clp at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/clp




More information about the Clp mailing list