Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.47 KB

File metadata and controls

32 lines (23 loc) · 1.47 KB

Constraint

The constraints of the Resource

Properties

Name Type Description Notes
initial_class_name str A constraint can transform during json serialization and deserialization. For example, the user changes the isHard property. To reflect this, on next loading via JSON the constraint is transformed. The initial class name helps to understand the origin of the constraint. to be fulfilled. [optional]
type ConstraintType
is_hard bool Defines if a constraint is soft contrained or hard constraint. A hard constraint is fullfilled by the architectural design of the Optimzer. Therefore a hard constraint violation cannot occure. However, not all constraints can be hard-constraint-

Example

from touroptimizer_py_client.models.constraint import Constraint

# TODO update the JSON string below
json = "{}"
# create an instance of Constraint from a JSON string
constraint_instance = Constraint.from_json(json)
# print the JSON string representation of the object
print(Constraint.to_json())

# convert the object into a dict
constraint_dict = constraint_instance.to_dict()
# create an instance of Constraint from a dict
constraint_from_dict = Constraint.from_dict(constraint_dict)

[Back to Model list] [Back to API list] [Back to README]