ortools.linear_solver.python.model_builder_helper
to_mpmodel_proto(helper: operations_research::ModelBuilderHelper) -> operations_research::MPModelProto
__init__(self: ortools.linear_solver.python.model_builder_helper.MPModelExportOptions) -> None
__init__(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper) -> None
overwrite_model(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, other_helper: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper) -> None
export_to_mps_string(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, options: ortools.linear_solver.python.model_builder_helper.MPModelExportOptions = <ortools.linear_solver.python.model_builder_helper.MPModelExportOptions object at 0x7facdca55ff0>) -> str
export_to_lp_string(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, options: ortools.linear_solver.python.model_builder_helper.MPModelExportOptions = <ortools.linear_solver.python.model_builder_helper.MPModelExportOptions object at 0x7fad4711c5b0>) -> str
write_to_mps_file(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, filename: str, options: ortools.linear_solver.python.model_builder_helper.MPModelExportOptions = <ortools.linear_solver.python.model_builder_helper.MPModelExportOptions object at 0x7facdc7d60b0>) -> bool
read_model_from_proto_file(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, filename: str) -> bool
write_model_to_proto_file(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, filename: str) -> bool
import_from_mps_string(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, mps_string: str) -> bool
import_from_mps_file(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, mps_file: str) -> bool
import_from_lp_string(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, lp_string: str) -> bool
import_from_lp_file(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, lp_file: str) -> bool
fill_model_from_sparse_data(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, variable_lower_bound: numpy.ndarray[numpy.float64[m, 1]], variable_upper_bound: numpy.ndarray[numpy.float64[m, 1]], objective_coefficients: numpy.ndarray[numpy.float64[m, 1]], constraint_lower_bounds: numpy.ndarray[numpy.float64[m, 1]], constraint_upper_bounds: numpy.ndarray[numpy.float64[m, 1]], constraint_matrix: scipy.sparse.csr_matrix[numpy.float64]) -> None
add_var(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper) -> int
add_var_array(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, arg0: list[int], arg1: float, arg2: float, arg3: bool, arg4: str) -> numpy.ndarray[numpy.int32]
add_var_array_with_bounds(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, arg0: numpy.ndarray[numpy.float64], arg1: numpy.ndarray[numpy.float64], arg2: numpy.ndarray[bool], arg3: str) -> numpy.ndarray[numpy.int32]
set_var_lower_bound(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, var_index: int, lb: float) -> None
set_var_upper_bound(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, var_index: int, ub: float) -> None
set_var_integrality(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, var_index: int, is_integer: bool) -> None
set_var_objective_coefficient(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, var_index: int, coeff: float) -> None
set_objective_coefficients(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, arg0: list[int], arg1: list[float]) -> None
set_var_name(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, var_index: int, name: str) -> None
var_lower_bound(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, var_index: int) -> float
var_upper_bound(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, var_index: int) -> float
var_is_integral(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, var_index: int) -> bool
var_objective_coefficient(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, var_index: int) -> float
var_name(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, var_index: int) -> str
add_linear_constraint(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper) -> int
set_constraint_lower_bound(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, ct_index: int, lb: float) -> None
set_constraint_upper_bound(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, ct_index: int, ub: float) -> None
add_term_to_constraint(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, ct_index: int, var_index: int, coeff: float) -> None
add_terms_to_constraint(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, arg0: int, arg1: list[int], arg2: list[float]) -> None
safe_add_term_to_constraint(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, ct_index: int, var_index: int, coeff: float) -> None
set_constraint_name(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, ct_index: int, name: str) -> None
set_constraint_coefficient(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, ct_index: int, var_index: int, coeff: float) -> None
constraint_lower_bound(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, ct_index: int) -> float
constraint_upper_bound(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, ct_index: int) -> float
constraint_name(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, ct_index: int) -> str
constraint_var_indices(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, ct_index: int) -> list[int]
constraint_coefficients(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, ct_index: int) -> list[float]
add_enforced_linear_constraint(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper) -> int
is_enforced_linear_constraint(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, arg0: int) -> bool
set_enforced_constraint_lower_bound(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, ct_index: int, lb: float) -> None
set_enforced_constraint_upper_bound(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, ct_index: int, ub: float) -> None
add_term_to_enforced_constraint(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, ct_index: int, var_index: int, coeff: float) -> None
add_terms_to_enforced_constraint(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, arg0: int, arg1: list[int], arg2: list[float]) -> None
safe_add_term_to_enforced_constraint(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, ct_index: int, var_index: int, coeff: float) -> None
set_enforced_constraint_name(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, ct_index: int, name: str) -> None
set_enforced_constraint_coefficient(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, ct_index: int, var_index: int, coeff: float) -> None
enforced_constraint_lower_bound(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, ct_index: int) -> float
enforced_constraint_upper_bound(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, ct_index: int) -> float
enforced_constraint_name(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, ct_index: int) -> str
enforced_constraint_var_indices(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, ct_index: int) -> list[int]
enforced_constraint_coefficients(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, ct_index: int) -> list[float]
set_enforced_constraint_indicator_variable_index(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, ct_index: int, var_index: int) -> None
set_enforced_constraint_indicator_value(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, ct_index: int, positive: bool) -> None
enforced_constraint_indicator_variable_index(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, ct_index: int) -> int
enforced_constraint_indicator_value(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, ct_index: int) -> bool
num_variables(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper) -> int
num_constraints(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper) -> int
name(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper) -> str
set_name(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, name: str) -> None
clear_objective(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper) -> None
maximize(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper) -> bool
set_maximize(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, maximize: bool) -> None
set_objective_offset(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, offset: float) -> None
objective_offset(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper) -> float
clear_hints(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper) -> None
add_hint(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, var_index: int, var_value: float) -> None
sort_and_regroup_terms(self: ortools.linear_solver.python.model_builder_helper.ModelBuilderHelper, arg0: numpy.ndarray[numpy.int32], arg1: numpy.ndarray[numpy.float64]) -> tuple[list[int], list[float]]
Members:
OPTIMAL
FEASIBLE
INFEASIBLE
UNBOUNDED
ABNORMAL
NOT_SOLVED
MODEL_IS_VALID
CANCELLED_BY_USER
UNKNOWN_STATUS
MODEL_INVALID
INVALID_SOLVER_PARAMETERS
SOLVER_TYPE_UNAVAILABLE
INCOMPATIBLE_OPTIONS
__init__(self: ortools.linear_solver.python.model_builder_helper.SolveStatus, value: int) -> None
__init__(self: ortools.linear_solver.python.model_builder_helper.ModelSolverHelper, arg0: str) -> None
solver_is_supported(self: ortools.linear_solver.python.model_builder_helper.ModelSolverHelper) -> bool
solve_serialized_request(self: ortools.linear_solver.python.model_builder_helper.ModelSolverHelper, arg0: str) -> bytes
interrupt_solve(self: ortools.linear_solver.python.model_builder_helper.ModelSolverHelper) -> bool
Returns true if the interrupt signal was correctly sent, that is, if the underlying solver supports it.
set_log_callback(self: ortools.linear_solver.python.model_builder_helper.ModelSolverHelper, arg0: std::function
clear_log_callback(self: ortools.linear_solver.python.model_builder_helper.ModelSolverHelper) -> None
set_time_limit_in_seconds(self: ortools.linear_solver.python.model_builder_helper.ModelSolverHelper, limit: float) -> None
set_solver_specific_parameters(self: ortools.linear_solver.python.model_builder_helper.ModelSolverHelper, solver_specific_parameters: str) -> None
enable_output(self: ortools.linear_solver.python.model_builder_helper.ModelSolverHelper, output: bool) -> None
has_solution(self: ortools.linear_solver.python.model_builder_helper.ModelSolverHelper) -> bool
has_response(self: ortools.linear_solver.python.model_builder_helper.ModelSolverHelper) -> bool
response(self: ortools.linear_solver.python.model_builder_helper.ModelSolverHelper) -> operations_research::MPSolutionResponse
status_string(self: ortools.linear_solver.python.model_builder_helper.ModelSolverHelper) -> str
wall_time(self: ortools.linear_solver.python.model_builder_helper.ModelSolverHelper) -> float
user_time(self: ortools.linear_solver.python.model_builder_helper.ModelSolverHelper) -> float
objective_value(self: ortools.linear_solver.python.model_builder_helper.ModelSolverHelper) -> float
best_objective_bound(self: ortools.linear_solver.python.model_builder_helper.ModelSolverHelper) -> float
var_value(self: ortools.linear_solver.python.model_builder_helper.ModelSolverHelper, var_index: int) -> float
reduced_cost(self: ortools.linear_solver.python.model_builder_helper.ModelSolverHelper, var_index: int) -> float
dual_value(self: ortools.linear_solver.python.model_builder_helper.ModelSolverHelper, ct_index: int) -> float
activity(self: ortools.linear_solver.python.model_builder_helper.ModelSolverHelper, ct_index: int) -> float
variable_values(self: ortools.linear_solver.python.model_builder_helper.ModelSolverHelper) -> numpy.ndarray[numpy.float64[m, 1]]
expression_value(self: ortools.linear_solver.python.model_builder_helper.ModelSolverHelper, arg0: list[int], arg1: list[float], arg2: float) -> float
reduced_costs(self: ortools.linear_solver.python.model_builder_helper.ModelSolverHelper) -> numpy.ndarray[numpy.float64[m, 1]]
dual_values(self: ortools.linear_solver.python.model_builder_helper.ModelSolverHelper) -> numpy.ndarray[numpy.float64[m, 1]]