[Clp] using the command line CLP

Meketon, Marc Marc.Meketon at oliverwyman.com
Tue May 6 21:13:00 EDT 2014


Thank you.  Being a newbie, I didn't know the "directory" option until reading your example.  This will work.

-----Original Message-----
From: Stephanie Jakus [mailto:stephanie.jakus at gmail.com]
Sent: Tuesday, May 06, 2014 7:12 PM
To: Meketon, Marc
Subject: Re: [Clp] using the command line CLP

I believe you can use the "directory" command to change the directory before calling "solution." I am using the solver compiled on Cygwin in Windows by putting the Cygwin "bin" folder in the windows folder that I call the solver from... so my paths look a little wonky, but here's my example:

C:\Clp\clp.exe > C:\Clp\clp_output\logfile.txt -import /cygdrive/c/Clp/mps_files/clp_input.mps -presolve off -cross off -maxIt 25 -printi all -directory /cygdrive/c/Clp/clp_output -barr -solu solfile.txt

Hope this helps!

Stephanie

On Tue, May 6, 2014 at 6:48 PM, Meketon, Marc <Marc.Meketon at oliverwyman.com> wrote:
> Hi,
>
>
>
> I’m brand new to CLP, so this question might be an old one.
>
>
>
> I want to run CLP using the command line.  If I put in
>
>       clp mpsFileName –solution c:\temp\sol.txt
>
> then clp replies with an error saying that it could not write the
> solution file out to “.\C:\temp\sol.txt”
>
>
>
> The obvious workaround, using “clp mpsFileName –solution
> \temp\sol.txt” does not work for me because a program is calling the
> “clp” solver and it needs to specify the full filepath including the
> drive – which could change based upon the user’s computer configuration.
>
>
>
> Any help would be appreciated… although I’m hoping that it does not
> involve changing the CLP code and recompiling.
>
>
>
>
> ________________________________
> This e-mail and any attachments may be confidential or legally privileged.
> If you received this message in error or are not the intended
> recipient, you should destroy the e-mail message and any attachments
> or copies, and you are prohibited from retaining, distributing,
> disclosing or using any information contained herein. Please inform us
> of the erroneous delivery by return e-mail. Thank you for your cooperation.
>
> _______________________________________________
> Clp mailing list
> Clp at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/clp
>

This e-mail and any attachments may be confidential or legally privileged. If you received this message in error or are not the intended recipient, you should destroy the e-mail message and any attachments or copies, and you are prohibited from retaining, distributing, disclosing or using any information contained herein.  Please inform us of the erroneous delivery by return e-mail. Thank you for your cooperation.



More information about the Clp mailing list