> 1. Do you know if octave and GLPK run smoothly on windows?
Yes, both of them run on Windows, however I experienced several
'corner-cases'. E.g., I am not aware if modern Octave GUI (introduced in
3.8.x) is already available for Windows without Cygwin. I also had some
problems with running it on Windows 8, but I must say, I wasn't too
persistent to solve that problems. On the other hand, I worked with stable
enough configuration of Octave 3.6.4 on Windows 7 - everything was fine.
GLPK is both a standalone program for solving LP/MILP and a dynamic library
for that purpose. Both of its forms are available on Windows. GLPK is
actually used by Octave to solve LP/MILP in the form of glpk() function.
So, you don't have to think about installing GLPK separately, if you have a
working Octave installation, you already have glpk() function in it which
uses GLPK dynamic library under the hood. However, you may prefer to use
GLPK without Octave, it may be beneficial in some cases. So, to clarify my
original proposal, Octave OR (not "+") GLPK may be used. (I'am also aware
that there are plenty of other LP/MILP solvers with permissive licenses -
brightest minds can actually brew them in the contest time frame ;) - I
just did not happen to use them.)

> 2. Is it possible to call such methods from another language?
1. Octave. Well, I didn't use anything of the kind, so my browsing of
Octave documentation won't be more informative than anyone else's. However,
there is always quick-and-dirty solution, that is to generate ".m" file,
run it by subprocess.call (if it is Python) and parse the output.
2. GLPK. Yes, you can certainly use the mentioned quick-and-dirty way with
the standalone form of GLPK, or use dll, or use java wrapper for that dll,
or even Python module (PULP, as far as I remember - but that's quite
another story).

> 3. Is it possible to have complete accuracy in octave/glpk when handling
fractions?
A very good question! As far as I understand, it is impossible with
Octave's glpk() function. But if you use GLPK API directly, there is a
function that solves LP in rational numbers - I didn't use it and the
documentation says that it is "tentative implementation".

Kind regards,
Andrew













2015-06-10 11:38 GMT+03:00 bigOnion <[email protected]>:

> On Wednesday, June 10, 2015 at 10:16:19 AM UTC+3, M.H. wrote:
> > >> I know that obviously coding a solution to LP is much harder than the
> simple analysis of this specific problem.
> >
> > I think, GNU Octave + GLPK are acceptable tools in this contest (as both
> of them are open-source and free), so solving a LP (and MILP) problem is as
> hard as filling three matrices and calling one function. Correct me if I am
> wrong.
> >
> >
>
> Obviously you are right.
>
> A few questions, if you may:
>
> 1. Do you know if octave and GLPK run smoothly on windows? Never heard of
> GLPK and I always had the impression that Octave is only for linux, but I
> search around and see that I may have been wrong about that.
>
> 2. Is it possible to call such methods from another language? Specifically
> python, which is my bestest and most favorite language of use? Is it easy?
>
> 3. Is it possible to have complete accuracy in octave/glpk when handling
> fractions? I have that option in python using the Fraction class, but I am
> not sure how many other languages have such classes...
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Code Jam" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-code/10f414c5-ccf0-4f58-b27f-2773b3a58712%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/CANBUrM86Qq28uWt1ikQjGCbb%3Db9%3DTJ_G1kED421H%3Du-ZdLbbTg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to