Model¶
- class Model¶
- Methods - __init__ - copy - get_variables - to_intermediate_model - to_unconstrained_poly - Attributes - constraints property - objective property - alias of ~amplify.Model.get_variables - __add__(self, arg: Poly | Constraint | ConstraintList, /) Model¶
- __add__ - パラメータ:
- arg (Poly | Constraint | ConstraintList) 
- 戻り値の型:
 
 - __iadd__(self, arg: Poly | Constraint | ConstraintList, /) Model¶
- __iadd__ - パラメータ:
- arg (Poly | Constraint | ConstraintList) 
- 戻り値の型:
 
 - __init__(self) None¶
- __init__(self, objective: Poly | Matrix) None
- __init__(self, constraint: Constraint | ConstraintList) None
- __init__(self, objective: Poly | Matrix, constraint: Constraint | ConstraintList) None
- __init__ - Overload 2. - Args:
- objective (amplify.Poly | amplify.Matrix) 
 
 - Overload 3. - Args:
- constraint (amplify.Constraint | amplify.ConstraintList) 
 
 - Overload 4. - Args:
- objective (amplify.Poly | amplify.Matrix) 
- constraint (amplify.Constraint | amplify.ConstraintList) 
 
 
 - __radd__(self, arg: Poly | Constraint | ConstraintList, /) Model¶
- __radd__ - パラメータ:
- arg (Poly | Constraint | ConstraintList) 
- 戻り値の型:
 
 - to_intermediate_model(
- self,
- acceptable_degrees: AcceptableDegrees,
- integer_encoding_method: Literal['Unary', 'Linear', 'Binary', 'Default'] | IntegerEncodingMethod = IntegerEncodingMethod.Default,
- real_encoding_method: Literal['Random4', 'Random8', 'Random16', 'Random32'] | RealEncodingMethod = RealEncodingMethod.Random16,
- quadratization_method: Literal['IshikawaKZFD', 'Substitute'] | QuadratizationMethod = QuadratizationMethod.IshikawaKZFD,
- substitution_multiplier: float = 1.0,
- to_intermediate_model - パラメータ:
- acceptable_degrees (AcceptableDegrees) 
- integer_encoding_method (Literal['Unary', 'Linear', 'Binary', 'Default'] | amplify.IntegerEncodingMethod) -- Defaults to - IntegerEncodingMethod.Default.
- real_encoding_method (Literal['Random4', 'Random8', 'Random16', 'Random32'] | amplify.RealEncodingMethod) -- Defaults to - RealEncodingMethod.Random16.
- quadratization_method (Literal['IshikawaKZFD', 'Substitute'] | amplify.QuadratizationMethod) -- Defaults to - QuadratizationMethod.IshikawaKZFD.
- substitution_multiplier (float) -- Defaults to - 1.0.
 
- 戻り値の型:
 
 - property constraints¶
- constraints property - 戻り値の型: