Skip to content

Commit

Permalink
AddMapDomain summary
Browse files Browse the repository at this point in the history
  • Loading branch information
CADBIMDeveloper committed Aug 15, 2024
1 parent 9f8ee0c commit 210f36e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ortools/sat/csharp/CpModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,11 @@ public ReservoirConstraint AddReservoirConstraint(long minLevel, long maxLevel)
return ct;
}

/**
* <summary>
* Adds <c>var == i + offset ⇔ bool_vars[i] == true for all i</c>.
* </summary>
*/
public void AddMapDomain(IntVar var, IEnumerable<IntVar> bool_vars, long offset = 0)
{
int i = 0;
Expand Down

0 comments on commit 210f36e

Please sign in to comment.