Esempio n. 1
0
        public override long AddVar()
        {
            long var = LinProgMatrix.AddVariable();

            FVars.Add(var);

            return(var);
        }
Esempio n. 2
0
        public override long AddVarForNode(long nodeId)
        {
            Ensure.That(NodeToVar.ContainsKey(nodeId)).IsFalse();

            long var = LinProgMatrix.AddVariable();

            FVars.Add(var);
            NodeToVar[nodeId] = var;

            return(var);
        }