Professional Documents
Culture Documents
TECHNIQUE- PART 1
TC6544 – Advanced AI
Objective Function
• Max (Min) some function of decision variables
Subject to (s.t.)
• equality (=) constraints
• inequality (≤,≥,>,<) constraints
Search Space
• Range or values of decisions variables that
will be searched during optimization. Often a
calculable size in combinatorial optimization
2
Types of Solutions
A solution for an optimization problem specifies the values of the
decision variables, and therefore also the value of the objective
function.
8
Combinatorial Optimization
9
Constraints
10
Constraints: EXAMPLE
11
Aspects of an Optimization
Problem
Continuous or Combinatorial
12
Aspects of an Optimization
Problem
13
SIMPLE VS HARD Problem
Simple Hard
15
Heuristic Search Techniques
16
Heuristic Search Techniques
Blind search techniques used an arbitrary ordering (priority) of operations.
Heuristics are rules to search to find optimal or near-optimal solutions. Examples are
FIFO, LIFO, earliest due date first, largest processing time first, shortest distance first,
etc.
• Rules for choosing those branches in a state space that are most likely to lead to an acceptable problem
solution.
17
HEURISTICS
A “rule of
thumb” or • guide decision making
relatively • find approximate solutions
simple solution
method to :
AI problem
• A problem may not have an exact
solvers solution because of inherent
employ ambiguities in the problem
statement or available data
heuristics • A problem may have an exact
in two solution, but the computational
cost of finding it may be
basic prohibitive
situations:
19
Why Use Heuristic Search Techniques
21
Search Techniques
• always arrive at the same final solution through
the same sequence of solutions, although they
may depend on the initial solution.
Deterministic • Examples are LP (simplex method), tabu
search, simple heuristics like FIFO, LIFO, and
greedy heuristics.
22
Search Techniques
• they find the nearest optimum which may not
Local be the real optimum. Example: greedy
heuristic (local optimizers).
23
Search Techniques
• work by constructing a solution step by step,
evaluating that solution for (a) feasibility and
(b)value for objective function.
Constructive • Greedy or myopic (narrow-minded), i.e. they take
the best thing next without regard for the rest of
the solution.
• Example: take the nearest city next (for TSP).
24
Heuristic Search Techniques
25
Example: 8 Puzzle
1 2 3 1 2 3
7 8 4 8 4
6 5 7 6 5
26
1 23 GOAL 1 23
8 4 7 84
7 65 6 5
right
1 23 1 23 1 23
7 84 7 84 7 4
65 6 5 6 85
28
A Simple 8-puzzle heuristic
29
Another approach
30
1 23 GOAL 1 23
8 4 7 84
7 65 6 5
right
1 23 1 23 1 23
7 84 7 84 7 4
65 6 5 6 85
h=2 h=4 h=3
31
Another 8-puzzle heuristic
32
1 23 GOAL 1 23
8 4 7 84
7 65 6 5
right
1 23 1 23 1 23
7 84 7 84 7 4
65 6 5 6 85
h=2 h=4 h=4
33
Techniques
There are a variety of search
techniques that rely on the estimate
value provided by a heuristic function.
34
http://www.ftsm.ukm.my/cait/DMOLab.html
https://www.facebook.com/dmoukm/
35