aboutsummaryrefslogtreecommitdiff
path: root/Math/LinProg/LPSolve/bindings.c
blob: fbaf09f0a7bc12881dd3cb05ba503d854231ef30 (plain)
1
2
3
4
5
6
7
8
9
10
11
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;
}