diff options
Diffstat (limited to 'Math/LinProg/LPSolve/bindings.c')
-rw-r--r-- | Math/LinProg/LPSolve/bindings.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Math/LinProg/LPSolve/bindings.c b/Math/LinProg/LPSolve/bindings.c new file mode 100644 index 0000000..fbaf09f --- /dev/null +++ b/Math/LinProg/LPSolve/bindings.c @@ -0,0 +1,12 @@ +#include <lp_lib.h> + +char +hs_set_row(void *model, int row, int n, int *cols, double *ws) +{ + int i; + + for(i = 0; i < n; i++) + set_mat(model, row, cols[i], ws[i]); + + return 0; +} |