1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  Constraint IsSumOfNominalOK 
 |  { 
 |    #keys: '2[110994.0.1029828208][110994.0.1029828212]' 
 |    ConstraintCondition: 
 |    [* 
 |      value := this.Nominal() = 1; 
 |       
 |      return value; 
 |    *] 
 |    ConstraintKind: 'Soft' 
 |    ConstraintText: '@Translations::MP_Recipe_ViolateHasValidNominal( this.Nominal() )@' 
 |    Description: 'Violated when the sum of the nominal values of the recipe ingredients does not equal to 1' 
 |  } 
 |  
  |