Function1D

ฟังก์ชันของอาร์กิวเมนต์ 1 รายการ

การแสดง 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.
}
ช่อง
ช่องการรวม function ความเป็นเอกภาพของอาร์กิวเมนต์ของฟังก์ชันควรเป็น - ถ้าน้ำหนัก: กก. - ถ้าเวลาเป็น: ขั้นต่ำ - ถ้าจำนวนพาเลต: 1 function ต้องเป็นค่าใดค่าหนึ่งต่อไปนี้
constant

number

ฟังก์ชันนี้เป็นค่าคงที่

pwl

object (PieceWiseAffineFunction)

ฟังก์ชันจะเป็นเชิงเส้นแบบแบ่งเป็นช่วง

PieceWiseAffineFunction

ฟังก์ชันเชิงเส้น Piecewise จำกัดไว้ที่อาร์กิวเมนต์ 1 รายการ การออกแบบที่คล้ายกับ https://github.com/google/or-tools/blob/stable/ortools/util/piecewise_linear_function.h

การแสดง JSON
{
  "segments": [
    {
      object (PieceWiseAffineSegment)
    }
  ]
}
ช่อง
segments[]

object (PieceWiseAffineSegment)

ส่วนเชิงเส้นของฟังก์ชัน

PieceWiseAffineSegment

ส่วนของฟังก์ชันเชิงเส้นแบบแบ่งเป็นช่วงๆ 1 เซกเมนต์

การแสดง JSON
{
  "startX": number,
  "startY": number,
  "endX": number,
  "endY": number
}
ช่อง
startX

number

จุดเริ่มต้นของกลุ่ม: x

startY

number

จุดเริ่มต้นของกลุ่ม: y.

endX

number

จุดสิ้นสุดของกลุ่ม: x

endY

number

จุดสิ้นสุดของกลุ่ม: y.