Skip to content

OptimizationEnumParameter.Values

property · OptimizationEnumParameter · cAlgo.API Since 5.9

DesktopCLICloud

Gets the discrete set of enum member names to optimize over.

Environment behaviour

CLI — not supported. Available to plugins only, and plugins cannot run in the CLI.

Cloud — not supported. Available to plugins only, and plugins cannot run in the cloud.

Definition

public IReadOnlyList<string> Values {get;}
optimizationEnumParameter.Values: Sequence[str]

Returns IReadOnlyList<string>

Examples

var parameter = new OptimizationEnumParameter("MAType", new[] { "Simple", "Exponential", "Weighted" });
Print("{0} candidates: {1}", parameter.Name, string.Join(", ", parameter.Values));
parameter = OptimizationEnumParameter("MAType", ["Simple", "Exponential", "Weighted"])
api.Print(f"{parameter.Name} candidates: {', '.join(parameter.Values)}")