Example #1
0
        public override BaseVariable[] CreateVariables()
        {
            BaseVariable[] variables = new BaseVariable[Problema.NumberOfVariables];

            for (int var = 0; var < Problema.NumberOfVariables; var++)
            {
                variables[var] = new Int((int) Problema.LowerLimit[var],
                                         (int) Problema.UpperLimit[var]);
            }

            return variables;
        }
Example #2
0
 public Int(Int variable)
 {
     IntValue = variable.IntValue;
     IntLowerBound = variable.IntLowerBound;
     IntUpperBound = variable.IntUpperBound;
 }