Skip to content

Commit

Permalink
Fixed sentence
Browse files Browse the repository at this point in the history
  • Loading branch information
d-krupke committed Jul 16, 2024
1 parent 549ba60 commit 987d659
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
13 changes: 7 additions & 6 deletions 04_modelling.md
Original file line number Diff line number Diff line change
Expand Up @@ -601,12 +601,13 @@ model.add(x + y == 10).only_enforce_if([b1, ~b2]) # only enforce if b1 AND NOT

> [!WARNING]
>
> While `only_enforce_if` often enhances the efficiency of constraint modeling,
> it can still impact the performance of CP-SAT significantly. Doing some
> additional reasoning, you can often find a more efficient way to model your
> problem without having to use `only_enforce_if`. As `only_enforce_if` is often
> a more natural way to model your problem, it is still a good idea to use it to
> get your first prototype running and think about smarter ways later.
> While `only_enforce_if` in CP-SAT is often more efficient than similar
> concepts in classical MIP-solvers, it can still impact the performance of
> CP-SAT significantly. Doing some additional reasoning, you can often find a
> more efficient way to model your problem without having to use
> `only_enforce_if`. As `only_enforce_if` is often a more natural way to model
> your problem, it is still a good idea to use it to get your first prototype
> running and think about smarter ways later.
<a name="04-modelling-alldifferent"></a>

Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1000,12 +1000,13 @@ model.add(x + y == 10).only_enforce_if([b1, ~b2]) # only enforce if b1 AND NOT

> [!WARNING]
>
> While `only_enforce_if` often enhances the efficiency of constraint modeling,
> it can still impact the performance of CP-SAT significantly. Doing some
> additional reasoning, you can often find a more efficient way to model your
> problem without having to use `only_enforce_if`. As `only_enforce_if` is often
> a more natural way to model your problem, it is still a good idea to use it to
> get your first prototype running and think about smarter ways later.
> While `only_enforce_if` in CP-SAT is often more efficient than similar
> concepts in classical MIP-solvers, it can still impact the performance of
> CP-SAT significantly. Doing some additional reasoning, you can often find a
> more efficient way to model your problem without having to use
> `only_enforce_if`. As `only_enforce_if` is often a more natural way to model
> your problem, it is still a good idea to use it to get your first prototype
> running and think about smarter ways later.
<a name="04-modelling-alldifferent"></a>

Expand Down

0 comments on commit 987d659

Please sign in to comment.