001// Copyright (c) FIRST and other WPILib contributors. 002// Open Source Software; you can modify and/or share it under the terms of 003// the WPILib BSD license file in the root directory of this project. 004 005package org.wpilib.math.optimization; 006 007import org.wpilib.math.autodiff.Variable; 008 009/** A vector of equality constraints of the form cₑ(x) = 0. */ 010@SuppressWarnings("PMD.ArrayIsStoredDirectly") 011public class EqualityConstraints { 012 /** List of equality constraints. */ 013 public Variable[] constraints; 014 015 /** 016 * Constructs an EqualityConstraints. 017 * 018 * @param constraints The constraints. 019 */ 020 public EqualityConstraints(Variable[] constraints) { 021 this.constraints = constraints; 022 } 023}