ProtoTwin API
    Preparing search index...

    Class Mechanism

    Index

    Constructors

    Accessors

    • get goals(): readonly Goal[]

      Returns readonly Goal[]

    Methods

    • Builds the mechanism.

      Parameters

      • optimize: boolean

        Whether to optimize the mechanism for improved runtime performance.

      Returns void

    • Releases the mechanism.

      Returns void

    • Removes a goal.

      Parameters

      • goal: Goal

        The goal.

      Returns boolean

      True if the goal was removed, false otherwise.

    • Solves the mechanism.

      Returns number

      The objective function penalty.