ortools.math_opt.core.python.solver

def solve(*args, **kwargs):

solve(model: operations_research::math_opt::ModelProto, solver_type: operations_research::math_opt::SolverTypeProto, solver_initializer: operations_research::math_opt::SolverInitializerProto, parameters: operations_research::math_opt::SolveParametersProto, model_parameters: operations_research::math_opt::ModelSolveParametersProto, message_callback: Callable[[list[str]], None], callback_registration: operations_research::math_opt::CallbackRegistrationProto, user_cb: Callable[[operations_research::math_opt::CallbackDataProto], operations_research::math_opt::CallbackResultProto], interrupter: ortools.util.python.pybind_solve_interrupter.PySolveInterrupter) -> operations_research::math_opt::SolveResultProto

def compute_infeasible_subsystem(*args, **kwargs):

compute_infeasible_subsystem(model: operations_research::math_opt::ModelProto, solver_type: operations_research::math_opt::SolverTypeProto, solver_initializer: operations_research::math_opt::SolverInitializerProto, parameters: operations_research::math_opt::SolveParametersProto, message_callback: Callable[[list[str]], None], interrupter: ortools.util.python.pybind_solve_interrupter.PySolveInterrupter) -> operations_research::math_opt::ComputeInfeasibleSubsystemResultProto

def new(*args, **kwargs):

new(solver_type: operations_research::math_opt::SolverTypeProto, model: operations_research::math_opt::ModelProto, solver_initializer: operations_research::math_opt::SolverInitializerProto) -> operations_research::math_opt::PybindSolver

def debug_num_solver() -> int:

debug_num_solver() -> int

class Solver(pybind11_builtins.pybind11_object):
Solver(*args, **kwargs)
def solve(self, *args, **kwargs):

solve(self: ortools.math_opt.core.python.solver.Solver, parameters: operations_research::math_opt::SolveParametersProto, model_parameters: operations_research::math_opt::ModelSolveParametersProto, message_callback: Callable[[list[str]], None], callback_registration: operations_research::math_opt::CallbackRegistrationProto, user_cb: Callable[[operations_research::math_opt::CallbackDataProto], operations_research::math_opt::CallbackResultProto], interrupter: ortools.util.python.pybind_solve_interrupter.PySolveInterrupter) -> operations_research::math_opt::SolveResultProto

def update(self, model_update) -> bool:

update(self: ortools.math_opt.core.python.solver.Solver, model_update: operations_research::math_opt::ModelUpdateProto) -> bool