Validation
Minimum required field names and types are
[
:name => String,
:counters => Dict{Symbol, Counter},
:num_param => Int64,
:num_obs => Int64
]The following utilities are exported.
OptimizationModels.validate — Functionvalidate(type)Checks if the supertype of type and fields of type are in accordance with the requirements of the model interface needed by OptimizationProblem.
Additional utilities are available within the scope of the module.
OptimizationModels.validate_supertype — Functionvalidate_supertype(type)Throws an error if supertype of type is not OptimizationProblem. Otherwise, returns nothing.
OptimizationModels.validate_fields — Functionvalidate_fields(type)Checks if the minimum field requirements of type and their types are correctly specified. If not, then an ErrorException is thrown. Otherwise, returns nothing.