Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <non_streamable_solver_init_arguments.h>
Public Member Functions | |
SolverTypeProto | solver_type () const final |
Returns the type of solver that the implementation is for. | |
std::unique_ptr< const NonStreamableSolverInitArguments > | Clone () const final |
Public Member Functions inherited from operations_research::math_opt::NonStreamableSolverInitArguments | |
virtual | ~NonStreamableSolverInitArguments ()=default |
virtual const NonStreamableCpSatInitArguments * | ToNonStreamableCpSatInitArguments () const |
virtual const NonStreamableGScipInitArguments * | ToNonStreamableGScipInitArguments () const |
virtual const NonStreamableGlopInitArguments * | ToNonStreamableGlopInitArguments () const |
virtual const NonStreamableGlpkInitArguments * | ToNonStreamableGlpkInitArguments () const |
virtual const NonStreamableGurobiInitArguments * | ToNonStreamableGurobiInitArguments () const |
virtual const NonStreamablePdlpInitArguments * | ToNonStreamablePdlpInitArguments () const |
Base struct for implementations that automatically implements solver_type() and Clone() virtual methods.
The Clone() method is implemented with the copy constructor of the struct.
All that is left to the implementation is to provide are the solver specific field and the implementation of the ToNonStreamableXxxInitArguments() corresponding to the solver type.
Usage:
struct NonStreamableXxxInitArguments : public NonStreamableSolverInitArgumentsHelper< NonStreamableXxxInitArguments, SOLVER_TYPE_XXX> {
};
Definition at line 126 of file non_streamable_solver_init_arguments.h.
|
inlinefinalvirtual |
Return a copy of this.
The NonStreamableSolverInitArgumentsHelper implements this automatically using the copy constructor (this base class is copyable intentionally).
Implements operations_research::math_opt::NonStreamableSolverInitArguments.
Definition at line 130 of file non_streamable_solver_init_arguments.h.
|
inlinefinalvirtual |
Returns the type of solver that the implementation is for.
Implements operations_research::math_opt::NonStreamableSolverInitArguments.
Definition at line 128 of file non_streamable_solver_init_arguments.h.