Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
en:dydaktyka:csp:lab2 [2018/03/24 19:42]
msl [Stable Marriage Problem]
en:dydaktyka:csp:lab2 [2018/03/24 19:44]
msl
Line 58: Line 58:
       * You may use channeling constraint [[http://​www.minizinc.org/​doc-lib/​doc-globals-channeling.html#​Ifunction-array-bo-int-bc-of-var-int-cl-inverse-po-array-bo-int-bc-of-var-int-cl-f-pc|''​inverse''​]]       * You may use channeling constraint [[http://​www.minizinc.org/​doc-lib/​doc-globals-channeling.html#​Ifunction-array-bo-int-bc-of-var-int-cl-inverse-po-array-bo-int-bc-of-var-int-cl-f-pc|''​inverse''​]]
     - Compare running time of the normal and channeled model     - Compare running time of the normal and channeled model
-    - Give yourself a high five, <wrap lo>​however new solvers are good enough to solve n-queens without the channeling. This technique is still valid for the more complicated problems</​wrap>​+    - Give yourself a [[https://​youtu.be/​kMUkzWO8viY|self-five]], <wrap lo>​however new solvers are good enough to solve n-queens without the channeling. This technique is still valid for the more complicated problems</​wrap>​
  
 ===== Reified Constraints ===== ===== Reified Constraints =====
  
-[[https://​en.wikipedia.org/​wiki/​Reification|Reification]] in Constraint Programming means treating the constraint as a first-order citizen, i.e. you can use the constraint as a boolean value in your model. If you've used the ''​bool2int''​ function in the Magic Sequence problem, you could do that only because the constraint ''​=''​ has been reified. Reification allows ​as to create models with "soft constraints"​ or "​conditional constraints",​ i.e. one constraint has to be satisfed only if the second one is satisfied too, otherwise they both can ignored. To do that, one has only to reify the constraints and connect them with the implication:​ ''​constraint1 -> constraint2''​. Let's practice this quite useful technique :)+[[https://​en.wikipedia.org/​wiki/​Reification|Reification]] in Constraint Programming means treating the constraint as a first-order citizen, i.e. you can use the constraint as a boolean value in your model. If you've used the ''​bool2int''​ function in the Magic Sequence problem, you could do that only because the constraint ''​=''​ has been reified. Reification allows ​us to create models with "soft constraints"​ or "​conditional constraints",​ i.e. one constraint has to be satisfed only if the second one is satisfied too, otherwise they both can be ignored. To do that, one has only to reify the constraints and connect them with the implication:​ ''​constraint1 -> constraint2''​. Let's practice this quite useful technique :)
  
 ==== Stable Marriage Problem ===== ==== Stable Marriage Problem =====
Line 69: Line 69:
     - Download, extract, comprehend {{ :​en:​dydaktyka:​csp:​stable_marriage.zip |the model}}     - Download, extract, comprehend {{ :​en:​dydaktyka:​csp:​stable_marriage.zip |the model}}
     - Add missing variables, constraints     - Add missing variables, constraints
-    - Give yourself ​[[https://​youtu.be/​kMUkzWO8viY|self-five]]+    - Give a high-five to your teacher :)
  
  
en/dydaktyka/csp/lab2.txt · Last modified: 2020/03/13 13:48 by msl
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0