public ValueNode(Vector referencePoint, ConvexBound convexBound, double slackValue, int nodeId, int vectorLength) : base(referencePoint, nodeId, vectorLength) { ConvexBound = convexBound; SlackValue = slackValue; ThingsChangedUpdateState(); }
//public Vector<double> ResidualVector { get; protected set; } public DistanceNode(Vector referencePoint, ConvexBound convexBound, double slackDistance, int norm, int nodeId, int vectorLength) : base(referencePoint, nodeId, vectorLength) { ConvexBound = convexBound; SlackDistance = slackDistance; Norm = norm; ThingsChangedUpdateState(); }
public FunctionNode(Vector referencePoint, ConvexBound convexBound, int nodeId, int vectorLength) : base(referencePoint, nodeId, vectorLength) { ConvexBound = convexBound; ThingsChangedUpdateState(); InitialConvexValue = RealValue; }
public static OracleVectorNode Create(Vector initialVector, ConvexBound convexBound, int nodeId, int vectorLength) => new OracleVectorNode(initialVector, convexBound, nodeId, vectorLength);
public OracleVectorNode(Vector referencePoint, ConvexBound convexBound, int nodeId, int vectorLength) : base(referencePoint, nodeId, vectorLength) { ConvexBound = convexBound; ThingsChangedUpdateState(); }
protected override void ThingsChangedUpdateState() { RealValue = ConvexBound.Compute(LocalVector); }
public static ValueNode Create(Vector initialVector, ConvexBound convexBound, int nodeId, int vectorLength) => new ValueNode(initialVector, convexBound, 0, nodeId, vectorLength);
public SketchedChangeDistanceNode(Vector referencePoint, ConvexBound convexBound, double slackValue, SketchFunction sketchFunction, int norm, int nodeId, int vectorLength) : base(referencePoint, convexBound, slackValue, norm, nodeId, vectorLength) { Sketch = sketchFunction; }
protected override void ThingsChangedUpdateState() { // (RealDistance, ResidualVector) = ConvexBound.ComputeDistance(Norm, LocalVector); RealDistance = ConvexBound.ComputeDistance(Norm, LocalVector, this.NodeId); }
public static FunctionNode Create(Vector initialVector, ConvexBound convexBound, int nodeId, int vectorLength) => new FunctionNode(initialVector, convexBound, nodeId, vectorLength);