derive Model Identifier
fun deriveModelIdentifier(descriptor: ModelDescriptor?, modelReference: ModelReference?): String?(source)
Produce a non-blank modelIdentifier for an ksl.app.config.optimization.OptimizationProblemSpec.
Order of preference:
descriptor.modelIdentifier(when available — that's the identifier of the actualModelthe runtime will build).A natural identifier derived from the model reference (
"bundleId:modelId"forByBundleAndModelId, theproviderIdforByProviderId, etc.).
Returns null only when modelReference is null. The OptimizationProblemSpec init accepts a null field but rejects a blank string.