Options
All
  • Public
  • Public/Protected
  • All
Menu

Functions

Const min_conflicts

  • min_conflicts<TAttributes>(aCSP: CSP<TAttributes>, max_steps?: number): undefined | CurrentDomain<TAttributes>

Solve a CSP by stochastic hill-climbing on the number of conflicts.

Type parameters

  • TAttributes: object

Parameters

  • aCSP: CSP<TAttributes>
  • max_steps: number = 100000

Returns undefined | CurrentDomain<TAttributes>

CurrentDomain | undefined

Const min_conflicts_value

  • min_conflicts_value<TAttributes>(aCSP: CSP<TAttributes>, variable: string, current: CurrentDomain<TAttributes>): TAttributes

Return the value that will give var the least number of conflicts. If there is a tie, choose at random.

Type parameters

  • TAttributes: object

Parameters

Returns TAttributes

TAttributes

  • Inherited
  • Protected
  • Private
  • Static
  • Module
  • Object
  • Property
  • Function
  • Variable
  • Index
  • Type
  • Class
  • Interface
  • Enum
  • Constructor
  • Getter/Setter
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.