Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. {string} Items = …;
  2. tuple Item {
  3. int weight;
  4. int classification_1;
  5. int classification_2;
  6. …}
  7.  
  8. dvar int a[Items] in 0..1;
  9.  
  10. Ball_object; 23; 1; 2; …
  11.  
  12. Subjected to {
  13. Forall ( i_1 in Items )
  14. ctItemRatio:
  15. (Item[i_1].weight * a[i_1]) / (sum (I in Items) (Item[i].weight * a[i])) <= 0.1;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement