Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <solver_init_arguments.h>
Public Attributes | |
StreamableSolverInitArguments | streamable |
NonStreamableSolverInitArgumentsValue | non_streamable |
bool | remove_names = false |
Arguments passed to Solve() and NewIncrementalSolver() to control the instantiation of the solver.
Usage with streamable arguments:
Solve(model, SOLVER_TYPE_GUROBI, /*solver_args=*/{}, SolverInitArguments{ .streamable = { .gurobi = StreamableGurobiInitArguments{ .isv_key = GurobiISVKey{ .name = "some name", .application_name = "some app name", .expiration = -1, .key = "random", } } } });
Usage with non-streamable arguments:
NonStreamableGurobiInitArguments gurobi_args; gurobi_args.primary_env = primary_env.get();
Solve(model, SOLVER_TYPE_GUROBI, /*solver_args=*/{}, SolverInitArguments{.non_streamable = gurobi_args});
Definition at line 52 of file solver_init_arguments.h.
NonStreamableSolverInitArgumentsValue operations_research::math_opt::SolverInitArguments::non_streamable |
Solver specific initialization parameters that can't be streamed. This should either be the solver specific class or be unset.
Solvers will fail (by returning an absl::Status) if called with arguments for another solver.
Definition at line 62 of file solver_init_arguments.h.
bool operations_research::math_opt::SolverInitArguments::remove_names = false |
If true, the names of variables and constraints are discarded before sending them to the solver. This is particularly useful for models that need to be serialized and are near the two gigabyte limit in proto form.
Definition at line 67 of file solver_init_arguments.h.
StreamableSolverInitArguments operations_research::math_opt::SolverInitArguments::streamable |
Solver initialization parameters that can be streamed to be exchanged with another process.
Definition at line 55 of file solver_init_arguments.h.