[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] Problem with GLPK
From: |
Noli Sicad |
Subject: |
Re: [Help-glpk] Problem with GLPK |
Date: |
Tue, 22 Mar 2016 18:49:53 +1100 |
Hi Lai,
Get this app (below),
cdto, Finder Toolbar app to open the current directory in the Terminal
(or iTerm, X11)
https://github.com/jbtule/cdto
So you can easily open terminal where your file is.
Then, your command works.
eg. $ glpsol -m model.txt
Regards, Noli
On 3/22/16, Andrew Makhorin <address@hidden> wrote:
>
>> I have a mac Yosemite 10.10.5. I installed GLPK with brew (the command
>> brew install glpk) and now I have glpk 4.56.
>>
>>
>> When I try glpsol —help, it does work.
>>
>>
>> But when I try to solve a Linear programming model, it does not work.
>> I write my model on a TXT file (model.txt) and then I saved it on my
>> Desktop. After that I use Terminal and write de command glpsol -m
>> model.txt.
>>
>>
>> I have:
>>
>>
>> Samanthas-MacBook-Pro:~ laisamantha$ glpsol -m model.txt
>> GLPSOL: GLPK LP/MIP Solver, v4.56
>> Parameter(s) specified in the command line:
>> -m model.txt
>> Reading model section from model.txt...
>> (unknown):0: unable to open model.txt - No such file or directory
>> Context:
>> MathProg model processing error
>> Samanthas-MacBook-Pro:~ laisamantha$
>>
>>
>>
>>
>> What is the problem? I really wrote my model correctly, and don’t what
>> ” No such file or directory” means!
>>
>
> "No such file or directory" means that model.txt sits somewhere else,
> but not in the current directory. You may enter the command "ls" to see
> the current directory listing.
>
>
>
>
> _______________________________________________
> Help-glpk mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-glpk
>