Enum Class ExpressionsBasedModel.IntegrationProperty
java.lang.Object
java.lang.Enum<ExpressionsBasedModel.IntegrationProperty>
org.ojalgo.optimisation.ExpressionsBasedModel.IntegrationProperty
- All Implemented Interfaces:
Serializable, Comparable<ExpressionsBasedModel.IntegrationProperty>, Constable
- Enclosing class:
ExpressionsBasedModel
public static enum ExpressionsBasedModel.IntegrationProperty
extends Enum<ExpressionsBasedModel.IntegrationProperty>
Various switches that can be set by solver integrations to control its own behaviour. Typically used
when a single integration is a facade delegating to a set of (switching between a pair of) other
integrations.
The various properties are here are for very specific use cases, but have been given generic names to encourage reuse.
Solver integrations are (absolutely have to be) stateless. If they contain logic that cause them to take different paths, information about that needs to be stored in the model (or solver) instance. That's what these properties are for.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAny integration that can switch between Java and native code solvers.Any integration that can handle both LP and QP models.Any LP solver integration that can switch between primal and dual algorithm implementations.Something temporary or experimental that does not yet have a specific constant. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
JAVA_OR_NATIVE_CODE
Any integration that can switch between Java and native code solvers.JAVA==false, NATIVE==true
-
LP_OR_QP
Any integration that can handle both LP and QP models.LP==false, QP==true
-
PRIMAL_OR_DUAL_LP
Any LP solver integration that can switch between primal and dual algorithm implementations.PRIMAL==false, DUAL==true
-
TEMPORARY
Something temporary or experimental that does not yet have a specific constant.
-
-
Constructor Details
-
IntegrationProperty
private IntegrationProperty()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-