CP nets and Soft Constraints. Formalisms for Preferences CP-nets ◦ +ve: conditional, qualitative ◦ -ve: comparing outcomes Soft Constraints ◦ +ve: comparing.

Slides:



Advertisements
Similar presentations
CP nets Toby Walsh NICTA and UNSW. Representing preferences Unfactored Not decomposable into parts E.g. assign utility to each outcome Factored Large.
Advertisements

Minimum Clique Partition Problem with Constrained Weight for Interval Graphs Jianping Li Department of Mathematics Yunnan University Jointed by M.X. Chen.
Constraint Satisfaction Problems
Size-estimation framework with applications to transitive closure and reachability Presented by Maxim Kalaev Edith Cohen AT&T Bell Labs 1996.
1 Constraint Satisfaction Problems A Quick Overview (based on AIMA book slides)
Preference Elicitation Partial-revelation VCG mechanism for Combinatorial Auctions and Eliciting Non-price Preferences in Combinatorial Auctions.
Online Social Networks and Media. Graph partitioning The general problem – Input: a graph G=(V,E) edge (u,v) denotes similarity between u and v weighted.
Computability and Complexity 23-1 Computability and Complexity Andrei Bulatov Search and Optimization.
Instructor Neelima Gupta Table of Contents Lp –rounding Dual Fitting LP-Duality.
Anagh Lal Monday, April 14, Chapter 9 – Tree Decomposition Methods Anagh Lal CSCE Advanced Constraint Processing.
1 Optimization problems such as MAXSAT, MIN NODE COVER, MAX INDEPENDENT SET, MAX CLIQUE, MIN SET COVER, TSP, KNAPSACK, BINPACKING do not have a polynomial.
CPSC 322, Lecture 12Slide 1 CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12 (Textbook Chpt ) January, 29, 2010.
Sept. 30, 2003CP’2003 CP-Nets Tutorial Brafman & Domshlak CP’2003 Tutorial: Preference Representation and Constrained Optimization with CP-Nets Ronen I.
Temporal Data Mining Claudio Bettini, X.Sean Wang and Sushil Jajodia Presented by Zhuang Liu.
A General Framework for Track Assignment in Multilayer Channel Routing (Multi layer routing) -VLSI Layout Algorithm KAZY NOOR –E- ALAM SIDDIQUEE
IEOR March 121 The Complexity of Trade-offs Christos H. Papadimitriou UC Berkeley (JWWMY)
Computability and Complexity 24-1 Computability and Complexity Andrei Bulatov Approximation.
Soft constraints. Classical (hard) Constraints Variables {X 1,…,X n }=X Variables {X 1,…,X n }=X Domains {D(X 1 ),…,D(X n )}=D Domains {D(X 1 ),…,D(X.
Multi-Agent Organizer by Kogan Tanya Shusterman Evgeny Advisor: Domshlak Carmel.
CSE 550 Computer Network Design Dr. Mohammed H. Sqalli COE, KFUPM Spring 2007 (Term 062)
Distributed Scheduling. What is Distributed Scheduling? Scheduling: –A resource allocation problem –Often very complex set of constraints –Tied directly.
Distributed Constraint Optimization * some slides courtesy of P. Modi
Computational aspects of stability in weighted voting games Edith Elkind (NTU, Singapore) Based on joint work with Leslie Ann Goldberg, Paul W. Goldberg,
Evolutionary Multi-objective Optimization – A Big Picture Karthik Sindhya, PhD Postdoctoral Researcher Industrial Optimization Group Department of Mathematical.
Distributed Constraint Optimization Michal Jakob Agent Technology Center, Dept. of Computer Science and Engineering, FEE, Czech Technical University A4M33MAS.
An efficient distributed protocol for collective decision- making in combinatorial domains CMSS Feb , 2012 Minyi Li Intelligent Agent Technology.
Building “ Problem Solving Engines ” for Combinatorial Optimization Toshi Ibaraki Kwansei Gakuin University (+ M. Yagiura, K. Nonobe and students, Kyoto.
Approximating Minimum Bounded Degree Spanning Tree (MBDST) Mohit Singh and Lap Chi Lau “Approximating Minimum Bounded DegreeApproximating Minimum Bounded.
Introduction to Job Shop Scheduling Problem Qianjun Xu Oct. 30, 2001.
1 CS612 Algorithms for Electronic Design Automation CS 612 – Lecture 8 Lecture 8 Network Flow Based Modeling Mustafa Ozdal Computer Engineering Department,
Constraint Satisfaction Problems (CSPs) CPSC 322 – CSP 1 Poole & Mackworth textbook: Sections § Lecturer: Alan Mackworth September 28, 2012.
University Course Timetabling with Soft Constraints Hana Rudova, Keith Murray Presented by: Marlien Edward.
Preferences Toby Walsh NICTA and UNSW
Incompleteness and incomparability in preference aggregation: complexity results M. Silvia Pini*, Francesca Rossi*, K. Brent Venable*, and Toby Walsh**
Distributed Constraint Satisfaction: Foundation of Cooperation in Multi-agent Systems Makoto Yokoo Kyushu University lang.is.kyushu-u.ac.jp/~yokoo/
Submodule construction in logics 1 Gregor v. Bochmann, University of Ottawa Using First-Order Logic to Reason about Submodule Construction Gregor v. Bochmann.
Probabilistic Inference Lecture 5 M. Pawan Kumar Slides available online
Probabilistic Networks Chapter 14 of Dechter’s CP textbook Speaker: Daniel Geschwender April 1, 2013 April 1&3, 2013DanielG--Probabilistic Networks1.
Solving Problems by searching Well defined problems A probem is well defined if it is easy to automatically asses the validity (utility) of any proposed.
Valued Constraints Islands of Tractability. Agenda The soft constraint formalism (5 minutes) Valued Constraint Languages (5 minutes) Hard and Easy Languages.
Implicit Hitting Set Problems Richard M. Karp Erick Moreno Centeno DIMACS 20 th Anniversary.
1 CS612 Algorithms for Electronic Design Automation CS 612 – Lecture 8 Lecture 8 Network Flow Based Modeling Mustafa Ozdal Computer Engineering Department,
Lecture.6. Table of Contents Lp –rounding Dual Fitting LP-Duality.
Production Scheduling Lorena Kawas lk2551 Raul Galindo rg2802.
DEPARTMENT/SEMESTER ME VII Sem COURSE NAME Operation Research Manav Rachna College of Engg.
CSCI2950-C Genomes, Networks, and Cancer
Lecture 7: Constrained Conditional Models
Sujoy Sikdar, Lirong Xia, Sibel Adalı
Algorithms for Large Data Sets
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
1.3 Modeling with exponentially many constr.
Constraint Propagation
Structured Models for Multi-Agent Interactions
Analysis of Algorithms
Eight-QueenS Problem: Fuzzy Constraint Satisfaction Problem Using Soar
Evaluation and Validation
Integer Programming (정수계획법)
Nurse Scheduling Problems
1.3 Modeling with exponentially many constr.
Integer Programming (정수계획법)
Constraint satisfaction problems
NP-Completeness Reference: Computers and Intractability: A Guide to the Theory of NP-Completeness by Garey and Johnson, W.H. Freeman and Company, 1979.
CSE 550 Computer Network Design
More NP-Complete Problems
Chapter 1. Formulations.
Constraint satisfaction problems
Presentation transcript:

CP nets and Soft Constraints

Formalisms for Preferences CP-nets ◦ +ve: conditional, qualitative ◦ -ve: comparing outcomes Soft Constraints ◦ +ve: comparing outcomes, hard constraints ◦ -ve: quantitative

CP-nets vs SCSPs: in terms of complexity CP-nets (qualitative, conditional)  Find an optimal: hard (easy if acyclic)  Testing if an assignment is optimal: hard (easy if acyclic)  Is O1>O2 (dominance testing): hard Soft Constraints (quantitative, hard constraints)  Find an optimal: hard (easy if a tree)  Testing if an assignment is optimal: hard (easy if a tree)  Is O1>O2(dominance testing): easy

CP-nets vs SCSPs: in terms of induced orders  In terms of the orders on the solutions, the two formalisms are incomparable  CP-nets  induce preorders over the set of solutions:  reflexive  transitive  but there are partial orders which a CP-net cannot induce  Soft constraints  induce partial orders over the set of solutions:  reflexive  transitive  antisymmetric (no cycles)  any partial order can be induced by a SCSP

CP-nets vs SCSPs: in terms of induced orders A B a: b > b b: a > a ab AB {a,a}{b,b} ab  (0.8,1) ab  (1,1) ab  (1,0.8) ab  (0.8,0.8) ab c-semiring= S fuzzy x S fuzzy CP-net Induced order SCSP Cannot be obtained by a CP-net Cannot be obtained by a SCSP

CP-nets vs SCSPs: in terms of optimal solutions  In terms of optimal solutions, CP-nets are less expressive than hard constraint problems (and, thus, of soft constraint problems)  From a CP-nets N to a CSP P such that Optimals(N)=Solutions(P) Ceteris paribus statement a: b > c hard constraint a → b CP-net optimality constraints

From CP-net to a CSP Main course Wine fish white > red meat red > white fish>meat peaches > strawberries Main course Fish, white, peaches Fish, red, peaches Fish, white, berries Fish, red, berries meat, red, peaches meat, red, berries meat, white, peaches meat, white, berries CP-net Fruit peaches CSP corresponding to CP-net Fruit Wine Main Course Wine fish (fish, white) (meat, red)

CP-nets to CSPS CP-nets to CSPS A B a: b > b b: a > a ab AB {a,a}{b,b} ab CP-ne t Induced order corresponding CSP This order cannot be obtained by a SCSP ab No solutions!

Hard constraint are more general in terms of optimals Consider a binary hard constraint defined on A with domain {a1,a2} and B with domain {b1,b2} such that only a1b1 and a1b2 are feasible There is no CP-net which can model this set of optimals since a1b1 and a1b2 are one flip away and a flip is either improving or worsening

Constrained CP-nets Conditional preferences Hard Constraints Soft constraints Interesting questions: ◦ Dominance testing: S1>S2? ◦ Find an optimal solution

Constrained CP-net: Example Main course Wine fish white > red meat red > white fish>meat peaches > strawberries Main course Fish, white, peaches Fish, red, peaches Fish, white, berries Fish, red, berries meat, red, peaches meat, red, berries meat, white, peaches meat, white, berries CP-net Constraints Fruit Wine red Fruit peaches  3 strawberries 

If we are interested in dominance testing Unconditional preferences Hard constraints Conditional Preferences CP statements CP engine dominance testing (difficult) Soft constraints Soft constraints engine Dominance testing (polynomial)

Handling conditional, soft constraints and hard constraints From CP-nets to Soft Constraints Gain: ◦ Linear testing of dominance queries ◦ Uniform framework But: ◦ approximates preference ordering

Mapping CP-nets to Soft Constraint nets AB C D Independent feature  variable VAVA VBVB V A,B VcVc Unconditional statement  soft unary constraint Conditional statement  variable for parents  hard constraints  variable for child  soft constraint VDVD Weights on all the soft contraints w1 w2 w3 w4

Running example: CP-net  SCSP fish>meat fish: white>red meat: red >white peaches>strawberries Main course CP-net Fruit Wine Main course fish  p1 meat  p2 Fruit Wine peaches  p1 berries  p2 Unconditional statement  soft unary constraint Independent feature  variable Conditional statement  variable for parents  hard constraints  variable for child  soft constraint Weights on all the soft contraints (fish,white)  p1 (fish,red)  p2 (meat,red)  p1 (meat,red)  p2 w2 w1

Weighted CSPs Minimize total penalty Penalties: Maximum penalty assigned is |D|-1, If |D|=2 then p2=1 and p1=0 Weights: To respect the ceteris paribus condition: Violation at higher level must be worse than violation at lower level. For each new level : update all the weights e any edge to a child VAVA VBVB V A,B VcVc VDVD w1 w2 w3 w

Weighted CSPs Minimize total penalty Penalties: Maximum penalty assigned is |D|-1, If |D|=2 then p2=1 and p1=0 Weights: To respect the ceteris paribus condition: Violation at higher level must be worse than violation at lower level. For each new level : update all the weights e any edge to a child VAVA VBVB V A,B VcVc VDVD w1 w2 w3 w S weighted =

Running example: CP-net  weigheted SCSP Minimize total penalty Penalties: Maximum penalty assigned is |D|-1, If |D|=2 then p2=1 and p1=0 Weights: To respect the ceteris paribus condition: Violation at higher level must be worse than violation at lower level. For each new level : update all the weights e any edge to a child S weighted = Main course fish  0 meat  1 Fruit Wine peaches  0 berries  1 (fish,white)  0 (fish,red)  1 (meat,red)  0 (meat,red)  1 1 2

SLO CSPs A set of sequences of n integers ==< max=|D|+1 max=2+1=3 n=number of soft constraints, n=4 Weights: all equal to 1 VAVA VBVB V A,B VcVc VDVD w1 w2 w3 w

Dominance testing is linear Two solutions S1, S2: S1>S2? In general ◦ pref(Si) = w1 x f1(Si| con1 ) x... x wk x fk(Si| conk ) ◦ S1>S2 iff pref(S1) + pref(S2)=pref(S1) Weighted ◦ cost(Si) = w1x f1(Si| con1 ) wk x fk(Si| conk ) ◦ S1>S2 iff min(cost(S1), cost(S2))=cost(S1) SLO ◦ pref(Si) = min s ( f1(Si| con1 ),...,wk x fk(Si| conk )) ◦ S1>S2 iff max s (pref(S1), pref(S2))=pref(S1)

Constrained CP-net Main course Wine fish white > red meat red > white fish>meat peaches > strawberries Main course CP-net Fruit peaches  3 strawberries  2 Constraints Fruit Wine red Main course fish  0 meat  1 Fruit Wine peaches  0 berries  1 (fish,white)  0 (fish,red)  1 (meat,red)  0 (meat,red)  red  0 white  + ∞ peaches  3 strawberries  2 (fish,red,peaches)>(meat,red, berries)? 4<5 Yes !

Approximating Acyclic CP-nets A C D B CP-net VAVA V A,B VBVB VCVC VDVD a  p1 _ a  p2 abc  p1 _ abc  p2… cd  p1 __ cd  p2… SCSP Minimize total penalty : Weighted = Maximize minimum preference: Fuzzy =

Comparing the approximations CP-nets < > ~ (incomparable) Weighted < >,= Fuzzy SLO < > < >, ~ Fuzzy is the roughest approximation

If we are interested in finding an optimal solution Unconditional preferences Hard constraints Conditional Preferences CP statements CP engine optimal outcome (linear if acyclic, otherwise exponential) Soft constraints Soft constraints engine Optimal outcome (exponential)

Constrained CP-net: optimality notions Feasible Pareto semantics: (Boutilier et al. 2004) O 1, O 2 complete assignments to X 1,…, X n then O 1 ≥ O 2 iff there is a chain of worsening flips from O 1 to O 2 and O 1 and O 2 are feasible/optimal Feasible Pareto Optimals (FPOs): optimals according to this semantics Approximated semantics: O 1, O 2 complete assignments to X 1,…, X n then O 1 ≥ O 2 iff there is a chain of worsening flips from O 1 to O 2 and each outcome in the chain is feasible/optimal Chain Feasible Pareto Optimals (CFPOs): optimals according to this semantics Approx Feasible Pareto

Finding feasible Pareto Optimals Given CP net N and set of constraints C If C unsatisfiable then STOP else...

Finding Feasible Pareto Optimals (1) CP-net N  CSP Opt(N) : optimals(N)=sol(Opt(N)) Ceteris paribus statement a: b > c hard constraint a → b CP-net optimality constraints

Our algorithm S=sol(C u opt(N)) = sol(C) ∩sol(Opt(N)) if S=sol(C) or S=sol(Opt(N)) ◦ then return S opt(N)sol(C)= FPO sol(C) opt(N)= FPO

Our algorithm else return sol(C u opt(N)) plus those solutions in sol(C) which are undominated sol(C) opt(N) sol(C) FPO opt(N)

Example Main course Wine fish white > red meat red > white fish>meat peaches > strawberries Main course Fish, white, peaches Fish, red, peaches Fish, white, berries Fish, red, berries meat, red, peaches meat, red, berries meat, white, peaches meat, white, berries CP-net Constraints Fruit Wine red Fruit peaches CSP corresponding to CP-net Main Course Wine fish (fish, white) (meat, red )

Running example sol(C u opt(N))= ∅ FPO=(fish,red, peaches) sol(C) FPO opt(N) Fish, white, peaches Fish, red, peaches Fish, white, berries Fish, red, berries meat, red, peaches meat, red, berries meat, white, peaches meat, white, berries

CP net => constraints a>-a, a&b: c>-c, -a v -b: -c>c a, (a&b) implies c, (-a v -b) implies -c optimals of CP net = satisfying assignments of these constraints ◦ but Pareto optimals may not be optimals of CP net!

This may be expensive! Even finding one solution may require dominance testing!  compute approximation Chain Feasible Pareto optimals Algorithm ◦ Input CP-net N, Hard Constraints C ◦ CP-net  CSP Opt*(N) ◦ Solve Opt*(N) ∪Opt*(N) ◦ there is no solution iff C has no solution

Computing Opt*(N) Computing Opt*(N) cp statement φ : x 1 > x 2 >x 3 Optimality constraints φ and cut best(Cx) [( φ and C X and X=x 1 ) ↓ var(Cx)-{X} ] → X=x 1 φ and cut best(Cx) [( φ and C X and X=x 2 ) ↓ var(Cx)-{X} ] → X=x 1 or X=x 2 Example: cp statement a: b>b Fuzzy Constraint C: b → 0.6, b → 1 Optimality Constraints: a and cut 1 (a and C and b)) ↓ A → b

Summarizing Finding a Feasible Pareto Optimal: 1) Write and solve the CP-net optimality constraints. 2) Intersect such a set with the set of feasibles. 3) If empty perform dominance tests among feasibles ◦ Pros w.r.t. state of the art  Handles cyclic CP-nets  Can find two or more optimals with no dominance testing Finding Approximated Optimals: 1) Write and solve the constrained CP-net optimality constraints ◦ Pros: handles cyclic CP-nets and requires no dominance testing ◦ Cons: superset of Feasible Pareto Optimals

Weighted CSP approach C ∪ opt(N) ∪ opt*(N) Weights(C) > Weights(opt*(N)) > Weights(opt(N)) If solution of weight 0, then Pareto optimal ◦ sol(C) ∩ sol(opt(N)) ≠ {} If weight < Weights(C) then feasible & satisfy as many of (approximate) optimality constraints as possible...

Softly Constrained CP-net : example Main course Wine fish white > red meat red > white fish>meat peaches > strawberries Main course Fish, white, peaches Fish, red, peaches Fish, white, berries Fish, red, berries meat, red, peaches meat, red, berries meat, white, peaches meat, white, berries CP-net Wine white  0.2 red  1 Soft Constraint Fruit Wine Fish, red, peaches Fish, red, berries meat, red, peaches meat, red, berries Optimal

Publications on CP-nets and Constraints F. Rossi, K.B. Venable and T. Walsh, CP-networks: semantics, complexity, approximations and extensions, in Proc. CP02 Workshop on Soft Constraints (SOFT'02), Ithaca (NY), C. Domshlak, F. Rossi, K.B. Venable and T. Walsh, Reasoning about soft constraints and conditional preferences: complexity results and approximation techniques in Proc. IJCAI 03 (International Joint Conference on Artificial Intelligence), Morgan Kaufmann, 2003, pag S. Prestwich, F. Rossi, K. B. Venable, T. Walsh. Constrained CP-nets. Sixth International Workshop on Soft Constraints and Preferences (Soft’04) colocated with 10th International Conference on Principles and Practice of Constraint Programming (CP-04), Toronto, Canada, September S. Prestwich, F. Rossi, K. B. Venable and T. Walsh. Constrained CP-nets. Proceedings of the Joint Annual Workshop of ERCIM/CoLogNet on Constraint Solving and Constraint Logic Programming (CSCLP’04) Lausanne,  S. Prestwich, F. Rossi, K. B. Venable, T. Walsh. Softly Constrained CP- nets. Doctoral Paper in Proceedings of the 10th International Conference on Principles and Practice of Constraint Programming (CP 2004), LNCS 3258, Springer, Toronto, Canada, September  S. Prestwich, F. Rossi, K. B. Venable, T. Walsh. Constrained-based Preferential Optimization. In Proceedings of the Twentieth National Conference on Artificial Intelligence (AAAI-05). Pittsburgh, USA, 2005.

Multi-agent frameworks Generic Preference Frameworks Temporal Preferences with Uncertainty Temporal Preferences

Results  Aggregating Preferences  Definition of multiple CP-nets  Extension of the CP-net semantics to deal with indifference  Study of different aggregation criteria of partially ordered preferences  Impossibility and possibility results on fairness of aggregation criteria with partially ordered preferences:  Generalization of Arrow’s theorem to partial orders  Generalizations of Sen’s Theorem to partial orders

Summary Preferences are everywhere Our approach to handle preferences Temporal Preferences ◦ Temporal Constraint Satisfaction Problems with Preferences ◦ Finding Optimal solutions ◦ Learning local temporal preferences Temporal Preferences and Uncertainty ◦ Temporal Constraint Satisfaction Problems with Preferences and Uncertainty ◦ Optimal Controllability Conditional Preferences ◦ Approximating CP nets with soft constraints ◦ Constrained CP nets Aggregating Preferences ◦ mCP nets ◦ Fairness of Preferences aggregation