Skip to content

Commit

Permalink
fixed version
Browse files Browse the repository at this point in the history
  • Loading branch information
jifwin committed Jan 1, 2017
1 parent 49c4121 commit f3fe6a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions zad1konspekt10/zad1konspekt10.dat
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ T = {1,2,3};

Tj =
[
[<10,5>, <15,7>, <20,10>]
[<10,5>, <15,7>, <20,10>]
[<10,5>, <15,7>, <20,10>]
[<10,5>, <15,7>, <20,10>]
[<10,5>, <15,7>, <20,10>]
[<10,1>, <15,2>, <20,3>]
[<10,1>, <15,2>, <20,3>]
[<10,1>, <15,2>, <20,3>]
[<10,1>, <15,2>, <20,3>]
[<10,1>, <15,2>, <20,3>]
];
2 changes: 1 addition & 1 deletion zad1konspekt10/zad1konspekt10.mod
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ minimize

subject to
{
forall (s in S) sum(j in J) Js[s][j]*x[s][j] == 1; //todo: if condition
forall (s in S) sum(j in J: Js[s][j] == 1) x[s][j] == 1;
//forall (j in J) sum (s in S) (Js[s][j]*x[s][j]) <= sum(t in T) (Tj[j][t].number_of_clients * y[j][t]);
forall (j in J) sum (s in S) (Js[s][j]*x[s][j]) <= sum(t in T) (Tj[j][t].number_of_clients * y[j][t]);
forall (j in J) sum(t in T) y[j][t] <= 1;
Expand Down

0 comments on commit f3fe6a3

Please sign in to comment.