Function1D

Funkcja 1 argumentu.

Zapis 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.
}
Pola
Pole sumy function. Jednostką argumentu funkcji jest: - jeśli waga: kg - jeśli czas: min - jeśli liczba palet: 1 function może być tylko jedną z tych wartości:
constant

number

Funkcja jest stałą.

pwl

object (PieceWiseAffineFunction)

Funkcja jest kawałkami liniowy.

PieceWiseAffineFunction

Funkcja liniowa w układzie pionowym z ograniczeniem do 1 argumentu. Projekt podobny do tego: https://github.com/google/or-tools/blob/stable/ortools/util/piecewise_linear_function.h

Zapis JSON
{
  "segments": [
    {
      object (PieceWiseAffineSegment)
    }
  ]
}
Pola
segments[]

object (PieceWiseAffineSegment)

Segmenty liniowe funkcji.

PieceWiseAffineSegment

Jeden segment funkcji liniowej odcinków.

Zapis JSON
{
  "startX": number,
  "startY": number,
  "endX": number,
  "endY": number
}
Pola
startX

number

Początek segmentu: x.

startY

number

Początek segmentu: y.

endX

number

Koniec segmentu: x.

endY

number

Koniec segmentu: y.