public override long AddVar() { long var = LinProgMatrix.AddVariable(); FVars.Add(var); return(var); }
public override long AddVarForNode(long nodeId) { Ensure.That(NodeToVar.ContainsKey(nodeId)).IsFalse(); long var = LinProgMatrix.AddVariable(); FVars.Add(var); NodeToVar[nodeId] = var; return(var); }