Questions tagged [glpk]

The GLPK (GNU Linear Programming Kit) is, according to its website, a package for solving large-scale linear programming (LP), mixed integer programming (MIP), and other related problems. It is a set of routines written in ANSI C and organized in the form of a callable library.

The GLPK (GNU Linear Programming Kit) is, according to its website, a package for solving large-scale linear programming (LP), mixed integer programming (MIP), and other related problems. It is a set of routines written in ANSI C and organized in the form of a callable library.

GLPK supports the GNU MathProg modeling language, which is a subset of the AMPL language.

350 questions
-1
votes
1 answer

Linear programming (optimization)

I would like to ask you regarding on the Linear program for optimization. I have an objective function, and constraint functions as below, Variables (x1, x2, x3, x4, x5, and x6) are quantities of the products, and the quantities of products have to…
Jay Kim
  • 7
  • 1
-1
votes
1 answer

How can I rewrite this problem so that there will be primal solution?

I am trying to solve a problem in GLPKut but it gives me this message "problem has no primal feasible solution". Below you ll find the program. I think the problem is with the variable Y because when I change it to not being binary it gives me a…
Veritas
  • 99
  • 3
-1
votes
2 answers

Getting a table out of a GLPK solution throws error "Assertion failed: out != out"

I have a linear program in a file lp that GLPK solves with this command: glpsol --math -m lp Part of the output on the screen is: Generating priority_words... Model has been successfully generated ... Long-step dual simplex will be used + 770:…
miguelmorin
  • 5,025
  • 4
  • 29
  • 64
-1
votes
2 answers

ocaml-glpk (glpk bindings) and OASIS

Preface: I am new to OCaml, OPAM, and OASIS. tldr question: How do I properly set up a package with opam that is not already available in the repository (I can't just do opam install X)? More details follow: I am trying to include ocaml-glpk in an…
Dimitrios
  • 301
  • 3
  • 11
-4
votes
1 answer

C Array being overwritten?

When I run this program : http://hastebin.com/asorawoluw.m I get this error in GDB : Program received signal SIGSEGV, Segmentation fault. 0x0000000000401f91 in resoudre (baie=...) at lineaire.c:291 291 printf("type[%d] : %d\n", i,…
Hayanno
  • 182
  • 2
  • 8
1 2 3
23
24