👂🎴 🕸️
Middle
English
:
from
Old
French
constraindre
''
from
Latin
constringere
bind
tightly
together
’.
<
div
>
What
types
of
constraints
do
You
take
into
account
when
You
:
div
><
p
class
=
fragment
>
make
a
decision
D
p
><
p
class
=
fragment
>
when
You
solve
a
problem
P
 
p
><
p
class
=
fragment
>???
p
>
<
p
class
=
fragment
>
logic
/
contingency
p
><
p
class
=
fragment
>
space
p
><
p
class
=
fragment
>
time
p
><
p
class
=
fragment
>
energy
p
><
p
class
=
fragment
>
computational
complexity
p
><
p
class
=
fragment
>
human
resources
p
><
p
class
=
fragment
>
material
resources
p
><
p
class
=
fragment
>
eco
(
log
|
nom
)
ical
constraints
p
><
p
class
=
fragment
>
socio
-
political
p
><
p
class
=
fragment
>
psycho
-
cognitive
p
><
p
class
=
fragment
>
legal
p
><
p
class
=
fragment
>
moral
p
>
Constraint
programming
is
a
programming
paradigm
where
relationships
between
variables
are
expressed
as
constraints
.
The
objective
is
to
find
values
for
these
variables
that
satisfy
all
given
constraints
.
It
is
particularly
useful
for
solving
combinatorial
problems
''
such
as
scheduling
''
planning
''
and
resource
allocation
''
where
traditional
algorithms
might
be
inefficient
.
Instead
of
specifying
steps
to
achieve
a
solution
''
one
defines
the
desired
properties
of
a
solution
''
and
the
system
determines
a
valid
assignment
''
if
one
exists
.
<
div
>
Adam
and
Eve
are
happily
married
and
have
two
cute
sons
''
Cain
and
Abel
.
In
general
they
love
each
other
''
but
sometimes
divirgent
opinions
relating
to
house
management
lead
to
unnecessary
conflicts
.
To
reduce
such
conflicts
''
Adam
proposes
to
optimize
''
starting
with
following
facts
there
are
four
rooms
(
kitchen
''
bath
''
living
room
''
sleeping
room
)
in
their
house
and
they
want
to
have
each
room
in
an
absolutely
clean
state
at
least
once
in
a
week
.
Cleaning
of
sleeping
room
and
bathroom
necessitate
investment
of
2
hours
each
''
cleaning
of
living
room
and
kitchen
 
costs
3
hours
each
.
In
order
to
keep
family
healthy
&
restauration
costs
low
''
a
hot
meal
is
cooked
at
least
4
times
in
a
week
and
children
also
demand
one
cake
a
week
.
Cooking
takes
1
hour
''
baking
2
hours
.
After
cooking
or
baking
''
kitchen
becomes
dirty
and
Eve
demands
that
kitchen
is
clean
on
Sunday
evening
Adam
has
one
hour
time
on
Monday
and
Wednesday
''
three
hours
time
on
Thursday
and
fours
hours
time
on
each
weekend
day
''
Eve
has
two
hours
on
Tuesday
''
three
hours
on
Friday
and
four
hours
on
each
weekend
day
.
Ideally
''
they
would
like
to
maximize
the
amount
of
time
they
invest
into
cleaning
&
cooking
.
<
br
>
div
><
div
><
br
>
div
><
div
>
Optional
:
Act
of
bringing
little
Cain
&
Abel
to
a
playground
for
two
hours
results
in
less
entropy
at
home
and
thus
reduces
living
room
cleaning
cost
to
two
.<
br
>
div
>
A
Constraint
Satisfaction
Problem
(
CSP
)
is
a
mathematical
problem
defined
by
a
set
of
variables
''
a
domain
of
possible
values
for
each
variable
''
and
a
collection
of
constraints
specifying
permissible
combinations
of
values
.
The
goal
is
to
assign
values
to
the
variables
such
that
all
constraints
are
satisfied
.
Common
examples
include
the
Sudoku
puzzle
''
where
each
cell
is
a
variable
''
digits
1
-
9
are
the
domain
''
and
the
rules
of
Sudoku
are
the
constraints
.
Other
examples
:<
p
class
=
fragment
>
eight
queen
problems
p
><
p
class
=
fragment
>
map
coloring
problem
p
>
<
p
class
=
fragment
>
https
://
github
.
com
/
python
-
constraint
/
python
-
constraint
p
><
p
class
=
fragment
>
https
://
github
.
com
/
timnon
/
pyschedule
p
><
p
class
=
fragment
>
Note
:
install
the
most
recent
fork
''
(
e
.
g
.
pip3
.
10
install
pyschedule
@
git
+
https
://
github
.
com
/
ppoile
/
pyschedule
/#
subdirectory
=
src
)<
br
>
p
>
Linear
Programming
(
LP
)
is
a
mathematical
method
used
to
find
the
best
outcome
in
a
model
whose
requirements
are
represented
by
linear
relationships
.
It
'
s
like
playing
a
game
where
you
need
to
achieve
the
highest
score
(
maximize
)
or
the
lowest
score
(
minimize
)
under
certain
rules
.
These
rules
are
your
constraints
''
like
how
much
money
you
can
spend
or
how
many
hours
you
have
.
The
score
you
'
re
trying
to
optimize
is
called
the
objective
function
''
and
it
'
s
also
a
linear
equation
.
LP
helps
you
figure
out
the
best
way
to
play
this
game
''
balancing
all
the
rules
''
to
achieve
your
goal
''
whether
it
'
s
making
the
most
profit
''
using
the
least
resources
''
or
something
similar
.
It
'
s
a
powerful
tool
for
decision
-
making
in
business
''
engineering
''
economics
''
and
more
.
<
p
class
=
fragment
>
Focus
:
LP
deals
specifically
with
linear
equations
and
inequalities
.
This
means
it
works
with
problems
where
relationships
are
represented
as
straight
lines
(
hence
'
linear
').
p
><
p
class
=
fragment
>
Objective
:
It
always
aims
to
find
the
maximum
or
minimum
value
of
a
linear
equation
''
known
as
the
objective
function
.
For
example
''
maximizing
profit
or
minimizing
cost
.
p
><
p
class
=
fragment
>
Method
:
LP
uses
specific
mathematical
methods
''
like
the
Simplex
algorithm
''
to
find
the
best
solution
.
p
><
p
class
=
fragment
>
Constraints
:
All
constraints
in
LP
are
linear
(
straight
-
line
relationships
).
For
instance
''
you
can
'
t
spend
more
than
a
certain
budget
''
or
you
need
at
least
a
certain
amount
of
some
ingredient
.
p
><
p
class
=
fragment
>
Solutions
:
Solutions
in
LP
are
often
numerical
and
can
include
fractions
or
decimals
.
p
>
Imagine
you
have
a
map
with
various
paths
and
you
need
to
find
the
shortest
way
to
a
treasure
.
Each
path
has
its
own
rules
''
like
how
much
weight
you
can
carry
or
how
fast
you
can
travel
.
The
Simplex
algorithm
helps
you
navigate
these
paths
and
rules
to
find
the
most
efficient
route
to
the
treasure
.<
br
/><
br
/>
In
technical
terms
''
it
deals
with
equations
representing
constraints
(
like
the
rules
of
each
path
)
and
a
goal
(
like
reaching
the
treasure
in
the
shortest
time
).
The
algorithm
iteratively
explores
vertices
on
a
multidimensional
shape
(
the
map
)''
checking
at
each
step
if
it
'
s
closer
to
the
best
solution
.
It
'
s
like
checking
each
intersection
on
a
map
to
see
if
you
'
re
closer
to
the
treasure
.
This
continues
until
it
finds
the
most
efficient
route
''
giving
you
the
best
solution
to
your
problem
.
This
project
s
main
goal
is
a
linear
programming
model
that
re
-
envisions
ambitious
yet
feasible
renewable
energy
goals
for
key
regions
by
focusing
on
the
trade
-
offs
between
different
fossil
-
free
energy
sources
For
this
''
the
project
focuses
on
the
data
of
four
common
fossil
-
free
energy
sources
:
wind
''
solar
''
nuclear
and
hydro
''
as
well
as
relevant
variables
such
as
Cost
''
Reliability
''
Existing
Energy
Mix
and
Public
Approval
.
Diet
Problem
(
DP
)
involves
finding
the
most
cost
-
effective
diet
that
meets
all
nutritional
requirements
.
Imagine
you
have
a
list
of
foods
''
each
with
its
own
nutritional
content
and
cost
.
Your
goal
is
to
choose
a
combination
of
these
foods
that
provides
all
the
necessary
nutrients
(
like
vitamins
''
proteins
''
carbohydrates
''
etc
.)
for
the
least
possible
cost
.
You
set
up
equations
for
each
nutrient
''
ensuring
your
diet
doesn
'
t
fall
short
or
exceed
what
'
s
needed
.
Then
''
you
use
linear
programming
to
minimize
the
total
cost
while
satisfying
these
nutritional
constraints
.
It
'
s
like
solving
a
puzzle
where
you
balance
your
health
needs
against
your
budget
''
finding
the
best
possible
dietary
plan
.
Here
is
a
CSV
containing
information
about
nutritive
values
of
different
vegetables
growable
in
a
German
garden
''
last
column
also
contains
expected
yield
per
square
meter
.
Please
provide
a
combination
of
vegetables
which
would
satisfy
nutritive
need
of
an
adult
man
so
that
the
surface
on
which
the
vegetables
grow
is
minimized
.
To
have
the
meal
diversified
''
there
should
be
not
more
than
300g
of
certain
vegetable
.
<
p
class
=
fragment
>
Focus
:
CP
is
more
general
and
can
handle
a
wide
variety
of
constraints
''
not
just
linear
ones
.
It
can
deal
with
logical
conditions
''
like
either
-
or
situations
''
and
can
include
non
-
linear
relationships
.
p
><
p
class
=
fragment
>
Objective
:
CP
doesn
'
t
necessarily
have
an
objective
function
to
optimize
.
Instead
''
it
focuses
on
finding
solutions
that
satisfy
all
the
given
constraints
.
p
><
p
class
=
fragment
>
Method
:
It
uses
different
algorithms
than
LP
''
often
based
on
search
techniques
''
like
backtracking
or
heuristics
.
p
><
p
class
=
fragment
>
Constraints
:
Constraints
in
CP
can
be
diverse
-
linear
''
non
-
linear
''
logical
conditions
''
etc
.
For
example
''
a
constraint
could
be
that
a
certain
task
must
be
done
before
another
can
start
.
p
><
p
class
=
fragment
>
Solutions
:
Solutions
in
CP
are
often
discrete
(
like
whole
numbers
)
and
can
involve
deciding
between
different
options
or
scenarios
.
p
>
[Impressum, Datenschutz, Login] Other subprojects of wizzion.com linkring: naadam.info refused.science teacher.solar puerto.life udk.ai fibel.digital giver.eu baumhaus.digital kyberia.de gardens.digital