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.ocp;
006
007/** Enum describing the type of system timestep. */
008public enum TimestepMethod {
009  /** The timestep is a fixed constant. */
010  FIXED(0),
011  /** The timesteps are allowed to vary as independent decision variables. */
012  VARIABLE(1),
013  /** The timesteps are equal length but allowed to vary as a single decision variable. */
014  VARIABLE_SINGLE(2);
015
016  /** TimestepMethod value. */
017  public final int value;
018
019  TimestepMethod(int value) {
020    this.value = value;
021  }
022}