The status of the optimization
| Name | Type | Description | Notes |
|---|---|---|---|
| status_description | str | A human-readable description of the optimization outcome (e.g. 'SUCCESS_WITH_SOLUTION', 'Optimization execution failed due to timeout'). Provides more context than the status tag alone. | |
| error | str | An error code or message describing the failure cause. Set to 'NO_ERROR' on successful runs. On failure, contains the exception message or a structured error identifier for programmatic handling. | |
| status | str | The machine-readable status tag indicating the optimization outcome. UNKNOWN: status not yet determined. ERROR: the run failed. SUCCESS_WITH_SOLUTION: completed with a valid solution. SUCCESS_WITHOUT_SOLUTION: completed but no feasible assignment was found. |
from touroptimizer_py_client.models.optimization_status import OptimizationStatus
# TODO update the JSON string below
json = "{}"
# create an instance of OptimizationStatus from a JSON string
optimization_status_instance = OptimizationStatus.from_json(json)
# print the JSON string representation of the object
print(OptimizationStatus.to_json())
# convert the object into a dict
optimization_status_dict = optimization_status_instance.to_dict()
# create an instance of OptimizationStatus from a dict
optimization_status_from_dict = OptimizationStatus.from_dict(optimization_status_dict)