Ejemplo n.º 1
0
        public override void Read(OsiReader reader)
        {
            base.Read(reader);
            LeftValueIndex  = reader.ReadSByte();
            RightValueIndex = reader.ReadSByte();

            LeftValue = new Value();
            LeftValue.Read(reader);

            RightValue = new Value();
            RightValue.Read(reader);

            RelOp = (RelOpType)reader.ReadInt32();
        }
Ejemplo n.º 2
0
        public override void Read(OsiReader reader)
        {
            base.Read(reader);
            Value1Index = reader.ReadSByte();
            Value2Index = reader.ReadSByte();

            Value1 = new Value();
            Value1.Read(reader);

            Value2 = new Value();
            Value2.Read(reader);

            RelOp = (RelOpType)reader.ReadInt32();
        }
Ejemplo n.º 3
0
 public override void Read(OsiReader reader)
 {
     base.Read(reader);
     Index   = reader.ReadSByte();
     Unused  = reader.ReadBoolean();
     Adapted = reader.ReadBoolean();
 }
Ejemplo n.º 4
0
        public void Read(OsiReader reader)
        {
            Constants = new Tuple();
            Constants.Read(reader);

            LogicalIndices = new List <sbyte>();
            var count = reader.ReadByte();

            while (count-- > 0)
            {
                LogicalIndices.Add(reader.ReadSByte());
            }

            LogicalToPhysicalMap = new Dictionary <byte, byte>();
            count = reader.ReadByte();
            while (count-- > 0)
            {
                var key   = reader.ReadByte();
                var value = reader.ReadByte();
                LogicalToPhysicalMap.Add(key, value);
            }
        }