AutoMovie API
    Preparing search index...

    Function assembleAutoMovieQuadraticProgram

    • Admits a sparse-row quadratic program and lays its constraint matrix out in the compressed sparse column form the engine numerical kernel reads.

      Admission is admitAutoMovieQuadraticProgram, so an inadmissible program throws before anything is built. Column c holds its nonzeros at columns[c] up to columns[c + 1], in ascending row order, and a weight of exactly zero is kept as an explicit entry. A null row endpoint becomes -AUTOMOVIE_QUADRATIC_INFINITY or AUTOMOVIE_QUADRATIC_INFINITY, the kernel's unbounded sentinel.

      Parameters

      Returns {
          columns: readonly number[];
          diagonal: readonly number[];
          initial?: readonly number[];
          linear: readonly number[];
          lower: readonly number[];
          rowIndices: readonly number[];
          upper: readonly number[];
          values: readonly number[];
      }

      Kernel input whose columns, rowIndices, values, lower and upper are new arrays, while diagonal, linear and initial are the caller's own arrays, so mutating them later changes the assembled program.