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.validateFunction
validate(type)

Checks if the supertype of type and fields of type are in accordance with the requirements of the model interface needed by OptimizationProblem.

source

Additional utilities are available within the scope of the module.

OptimizationModels.validate_fieldsFunction
validate_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.

source