[Help-glpk] ANSI C program as definning entry point for glpk

2015-04-02 Thread john tass
Hi everybody, I have a C program that it is to define an entry point for a glpk project, i.e. I want to run the glpk trough the command line using a C application. In addition there is a file called MyModel.mod which contains my model and a separate file called MyData.dat containing the data used

Re: [Help-glpk] ANSI C program as definning entry point for glpk

2015-04-02 Thread Heinrich Schuchardt
Glpk 4.55 comes with file doc/glpk.pdf. Please, read the sections on glp_mpl_read_data and glp_mpl_read_model. Best regards Heinrich Schuchardt john tass johnyt...@gmail.comschrieb: Hi everybody, I have a C program that it is to define an entry point for a glpk

Re: [Help-glpk] Modeling exclusive OR in Mathprog language

2015-04-02 Thread Michael Hennebry
I'm a bit fuzzy on what you want. If you want to express x=a XOR b, where a, b and x are binaries, you just need four constraints, the constraints that cut off 001, 010, 100 and 111. That will give you the convex hull, which is as good as can be done. n To express, x=XOR a[j] ,