Ubuntu Forums Archive Viewer

Controlling Gnumeric solver with python

Archived thread 1071389 from Education & Science. Markdown source: Education_&_Science/thread_1071389_Controlling_Gnumeric_solver_with_python.md

Original URL About this archive
#1

I'm using Gnumeric's solver for solving farm animals feeding problem. Solver and the model work well and now I would like to automate the process in Excel-like fashion. Does anyone know if it's possible to control the solver using the python shell or some other ingenious way?

I'm not too familiar with C so reading the source seemed a bit too hard for me.

I know, that it is possible to control both lpsolve and glpk straight with python. I just would like to do something in 'easy' way ...:)

#2

Pellervo Kässi said: I'm using Gnumeric's solver for solving farm animals feeding problem. Solver and the model work well and now I would like to automate the process in Excel-like fashion.

Does anyone know if it's possible to control the solver using the python shell or some other ingenious way?

I'm not too familiar with C so reading the source seemed a bit too hard for me.

I know, that it is possible to control both lpsolve and glpk straight with python. I just would like to do something in 'easy' way ...:)

I am not sure what you mean by Excel-like automation. But gnumeric is easy to control using R. Check out this link: http://http://www.omegahat.org/RGnumeric/Docs/introduction.pdf