Function1D

Función de un argumento.

Representación JSON
{

  // Union field function can be only one of the following:
  "constant": number,
  "pwl": {
    object (PieceWiseAffineFunction)
  }
  // End of list of possible types for union field function.
}
Campos
Campo de unión function. La unidad del argumento de la función debe ser la siguiente: - si es un peso: kg - si un tiempo: min - si una cantidad de palés: 1 function puede ser solo una de las siguientes opciones:
constant

number

La función es una constante.

pwl

object (PieceWiseAffineFunction)

La función es lineal por partes.

PieceWiseAffineFunction

Función lineal por partes, limitada a un argumento. Diseña de forma similar a https://github.com/google/or-tools/blob/stable/ortools/util/piecewise_linear_function.h

Representación JSON
{
  "segments": [
    {
      object (PieceWiseAffineSegment)
    }
  ]
}
Campos
segments[]

object (PieceWiseAffineSegment)

Segmentos lineales de la función.

PieceWiseAffineSegment

Un segmento de una función lineal por partes.

Representación JSON
{
  "startX": number,
  "startY": number,
  "endX": number,
  "endY": number
}
Campos
startX

number

Inicio del segmento: x.

startY

number

Inicio del segmento: y.

endX

number

Fin del segmento: x.

endY

number

Fin del segmento: y.