[Cbc] How to get CBC-solution in AMPL format ?

vladimir voloshinov vladimir.voloshinov at gmail.com
Tue Apr 2 07:10:40 EDT 2013


Hi Victor,
thanks a lot!
It works.

I've missed the note in Cbc Changelog (README), where they wrote about
"fixing the problem with AMPL interface" since CBC 2.7.2.
One and half year ago Cbc team told me to use OSAmplClient or
OSSolverService...

Now, Cbc becomes much more AMPL-friendly.

Best regards,
Vladimir.

On Fri, Mar 29, 2013 at 10:42 PM, victor.zverovich at gmail.com <
victor.zverovich at gmail.com> wrote:

> Hi Vladimir,
>
> If you have a problem in the .nl format you can solve it with the CBC
> driver for AMPL and write a .sol file as follows:
>
>   cbc <stub> -AMPL
>
> where <stub> is the name of the .nl file without an extension.
>
> HTH,
> Victor
>
> On Fri, Mar 29, 2013 at 11:07 AM, vladimir voloshinov <
> vladimir.voloshinov at gmail.com> wrote:
>
>> Dear CBC team,
>> we successfully use CBC (2.7.7) for AMPL models via OSAmplClient from
>> AMPL translator.
>> But now, to "distribute" the computational load, we need to run CBC
>> application on one server, but perform analysis of solution in AMPL
>> translator running on another server.
>> The most convenient would be if CBC-solution will be returned  in AMPL
>> format (*.sol file created by write_sol ASL routine).
>> But not in CBC nor in OSSolverService I can not find an option (similar
>> to "wantsol" for AMPL-solvers) telling to write solution in AMPL format.
>> At the same time in CbcSolver.cpp I see a call of writeAmpl(...)
>> procedure, defined in Cbc_ampl on the base of an ASL write_sol(...).
>>
>> May be there are some "hidden" options of CBC (or OSSolverService) or
>> "tricks" of compilation  ?
>> We'll be happy for any hints.
>> --
>> Vladimir V. Voloshinov,
>> Ph.D, head of lab. O-3 "Distributed computing algorithms",
>> http://www.iitp.ru/ru/researchlabs/1040.htm,
>> Department of Distributed Computing, http://dcs.isa.ru, Institute for
>> Information Transmission Problems RAS, http://www.iitp.ru
>>
>>
>> _______________________________________________
>> Cbc mailing list
>> Cbc at list.coin-or.org
>> http://list.coin-or.org/mailman/listinfo/cbc
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20130402/661834c5/attachment.html>


More information about the Cbc mailing list