BRIDGES
  • Articles
  • BRIDGES
Search Results for

    Show / Hide Table of Contents
    • BRIDGES
      • Guided Projection
        • Constraint
        • Energy
        • Energy Types
          • Segment Orthogonality
          • Segment Parallelity
        • Examples
          • Summary
        • Introduction
        • Quadratic Constraint Types
          • Coherent Length
          • Lower Bound
          • Upper Bound
          • Vector Length
      • Introduction

    Energies

    Formulation

    The local formulation of the energy's linear equation reads :

    Local equation of a quadratic constraint

    where :

    • ki,red : Column vector.
    • si : Scalar value.

    Custom Energy Type

    Create a public class which inherits from the IEnergyType interface and declare the two properties required to implement the interface. These two properties correspond to the local column vector ki,red and the scalar coefficient si necessary to define a linear constraint from the local vector xred.

    public class CostumEnergyName : IEnergyType
    {
      /// <inheritdoc/>
      public Dictionary<int, double> LocalKi { get; }
    
      /// <inheritdoc/>
      public double Si { get; }
    
      ...
    
    }
    

    Then, in the class constructor, instanciate and initialise the values of the properties. The parameters of the constructor should provide the information needed to fill in ki,red and si.

    
      public CostumEnergyName()
      {
        ...
      }
    
    

    Implemented Energy Types

    The following energies can be found in BRIDGES.Solvers.GuidedProjection.EnergyTypes namespace.

    Segment Orthogonality

    Energy enforcing a segment defined from two point variables, pi and pj, to be orthogonal to a constant direction vdir. For more information, see the dedicated page.

    Segment Parallelity

    Energy enforcing a segment defined from two point variables, pi and pj, to be parallel to a constant direction vdir. For more information, see the dedicated page.

    In This Article
    Back to top By ENPC and the Build'In Platform