ortools.pdlp.python.pdlp

class QuadraticProgram(pybind11_builtins.pybind11_object):
QuadraticProgram()
def resize_and_initialize(unknown):

resize_and_initialize(self: ortools.pdlp.python.pdlp.QuadraticProgram, arg0: int, arg1: int) -> None

def apply_objective_scaling_and_offset(unknown):

apply_objective_scaling_and_offset(self: ortools.pdlp.python.pdlp.QuadraticProgram, arg0: float) -> float

objective_vector

(self: ortools.pdlp.python.pdlp.QuadraticProgram) -> numpy.ndarray[numpy.float64[m, 1]]

constraint_matrix

(self: ortools.pdlp.python.pdlp.QuadraticProgram) -> scipy.sparse.csc_matrix[numpy.float64]

constraint_lower_bounds

(self: ortools.pdlp.python.pdlp.QuadraticProgram) -> numpy.ndarray[numpy.float64[m, 1]]

constraint_upper_bounds

(self: ortools.pdlp.python.pdlp.QuadraticProgram) -> numpy.ndarray[numpy.float64[m, 1]]

variable_lower_bounds

(self: ortools.pdlp.python.pdlp.QuadraticProgram) -> numpy.ndarray[numpy.float64[m, 1]]

variable_upper_bounds

(self: ortools.pdlp.python.pdlp.QuadraticProgram) -> numpy.ndarray[numpy.float64[m, 1]]

problem_name
variable_names

(self: ortools.pdlp.python.pdlp.QuadraticProgram) -> Optional[list[str]]

constraint_names

(self: ortools.pdlp.python.pdlp.QuadraticProgram) -> Optional[list[str]]

objective_offset
objective_scaling_factor
objective_matrix

(self: ortools.pdlp.python.pdlp.QuadraticProgram) -> Optional[numpy.ndarray[numpy.float64[m, n]]]

def set_objective_matrix_diagonal(unknown):

set_objective_matrix_diagonal(self: ortools.pdlp.python.pdlp.QuadraticProgram, arg0: numpy.ndarray[numpy.float64[m, 1]]) -> None

def clear_objective_matrix(unknown):

clear_objective_matrix(self: ortools.pdlp.python.pdlp.QuadraticProgram) -> None

def validate_quadratic_program_dimensions(unknown):

validate_quadratic_program_dimensions(arg0: ortools.pdlp.python.pdlp.QuadraticProgram) -> None

def is_linear_program(unknown):

is_linear_program(arg0: ortools.pdlp.python.pdlp.QuadraticProgram) -> bool

def qp_from_mpmodel_proto(unknown):

qp_from_mpmodel_proto(proto_str: operations_research::MPModelProto, relax_integer_variables: bool, include_names: bool = False) -> ortools.pdlp.python.pdlp.QuadraticProgram

def qp_to_mpmodel_proto(unknown):

qp_to_mpmodel_proto(arg0: ortools.pdlp.python.pdlp.QuadraticProgram) -> operations_research::MPModelProto

def read_quadratic_program_or_die(unknown):

read_quadratic_program_or_die(filename: str, include_names: bool = False) -> ortools.pdlp.python.pdlp.QuadraticProgram

class PrimalAndDualSolution(pybind11_builtins.pybind11_object):
PrimalAndDualSolution()
primal_solution

(self: ortools.pdlp.python.pdlp.PrimalAndDualSolution) -> numpy.ndarray[numpy.float64[m, 1]]

dual_solution

(self: ortools.pdlp.python.pdlp.PrimalAndDualSolution) -> numpy.ndarray[numpy.float64[m, 1]]

class SolverResult(pybind11_builtins.pybind11_object):
SolverResult()

__init__(self: ortools.pdlp.python.pdlp.SolverResult) -> None

primal_solution

(self: ortools.pdlp.python.pdlp.SolverResult) -> numpy.ndarray[numpy.float64[m, 1]]

dual_solution

(self: ortools.pdlp.python.pdlp.SolverResult) -> numpy.ndarray[numpy.float64[m, 1]]

reduced_costs

(self: ortools.pdlp.python.pdlp.SolverResult) -> numpy.ndarray[numpy.float64[m, 1]]

solve_log

(self: ortools.pdlp.python.pdlp.SolverResult) -> operations_research::pdlp::SolveLog

def primal_dual_hybrid_gradient(unknown):

primal_dual_hybrid_gradient(qp: ortools.pdlp.python.pdlp.QuadraticProgram, params: operations_research::pdlp::PrimalDualHybridGradientParams, initial_solution: Optional[ortools.pdlp.python.pdlp.PrimalAndDualSolution] = None) -> ortools.pdlp.python.pdlp.SolverResult