NLP for CP
Addressing Constraint Programming with Natural Language Processing
Home
Resources
Publications
Correct
predictions are in
blue
. If we detect only a subset of a labelled sentence, we highlight the caught part as
blue
, the missing part
light blue.
False positives
are in
green
and
false negatives
are in
red
.
Problem Factory_Planning_I — Constraint detection
An
engineering
factory
makes
seven
products
-LRB-
PROD
1
to
PROD
7
-RRB-
on
the
following
machines
:
four
grinders
,
two
vertical
drills
,
three
horizontal
drills
,
one
borer
and
one
planer
.
Each
product
yields
a
certain
contribution
to
profit
-LRB-
defined
as
pounds/unit
selling
price
minus
cost
of
raw
materials
-RRB-
.
These
quantities
-LRB-
in
pounds/unit
-RRB-
together
with
the
unit
production
times
-LRB-
hours
-RRB-
required
on
each
process
are
given
in
a
table
.
In
the
present
month
-LRB-
January
-RRB-
and
the
five
subsequent
months
,
certain
machines
will
be
down
for
maintenance
.
These
machines
will
be
as
follows
:
1
Grinder
-LRB-
January
-RRB-
,
2
Horizontal
drills
-LRB-
February
-RRB-
,
1
Borer
-LRB-
March
-RRB-
,
1
Vertical
drill
-LRB-
April
-RRB-
,
1
Grinder
and
1
Vertical
drill
-LRB-
May
-RRB-
,
1
Planer
and
1
Horizontal
drill
-LRB-
June
-RRB-
.
There
are
marketing
limitations
on
each
product
in
each
month
,
given
in
a
table
.
It
is
possible
to
store
up
to
100
of
each
product
at
a
time
at
a
cost
of
pounds
0.5
per
unit
per
month
.
There
are
no
stocks
at
present
,
but
it
is
desired
to
have
a
stock
of
50
of
each
type
of
product
at
the
end
of
June
.
The
factory
works
a
six
days
a
week
with
two
shifts
of
8
h
each
day
.
No
sequencing
problems
need
to
be
considered
.
When
and
what
should
the
factory
make
in
order
to
maximise
the
total
profit
?
Recommend
any
price
increases
and
the
value
of
acquiring
any
new
machines
.
N.B.
.
It
may
be
assumed
that
each
month
consists
of
only
24
working
days
.
Problem Factory_Planning_I — Detection of the decisions and objects to be modeled
An
engineering
factory
makes
seven
products
-LRB-
PROD
1
to
PROD
7
-RRB-
on
the
following
machines
:
four
grinders
,
two
vertical
drills
,
three
horizontal
drills
,
one
borer
and
one
planer
.
Each
product
yields
a
certain
contribution
to
profit
-LRB-
defined
as
pounds/unit
selling
price
minus
cost
of
raw
materials
-RRB-
.
These
quantities
-LRB-
in
pounds/unit
-RRB-
together
with
the
unit
production
times
-LRB-
hours
-RRB-
required
on
each
process
are
given
in
a
table
.
In
the
present
month
-LRB-
January
-RRB-
and
the
five
subsequent
months
,
certain
machines
will
be
down
for
maintenance
.
These
machines
will
be
as
follows
:
1
Grinder
-LRB-
January
-RRB-
,
2
Horizontal
drills
-LRB-
February
-RRB-
,
1
Borer
-LRB-
March
-RRB-
,
1
Vertical
drill
-LRB-
April
-RRB-
,
1
Grinder
and
1
Vertical
drill
-LRB-
May
-RRB-
,
1
Planer
and
1
Horizontal
drill
-LRB-
June
-RRB-
.
There
are
marketing
limitations
on
each
product
in
each
month
,
given
in
a
table
.
It
is
possible
to
store
up
to
100
of
each
product
at
a
time
at
a
cost
of
pounds
0.5
per
unit
per
month
.
There
are
no
stocks
at
present
,
but
it
is
desired
to
have
a
stock
of
50
of
each
type
of
product
at
the
end
of
June
.
The
factory
works
a
six
days
a
week
with
two
shifts
of
8
h
each
day
.
No
sequencing
problems
need
to
be
considered
.
When
and
what
should
the
factory
make
in
order
to
maximise
the
total
profit
?
Recommend
any
price
increases
and
the
value
of
acquiring
any
new
machines
.
N.B.
.
It
may
be
assumed
that
each
month
consists
of
only
24
working
days
.
Back to list