Polarith AI
1.8

◆ WriteValue()

void WriteValue ( ValueWritingType  valueWriting,
int  objectiveIndex,
int  valueIndex,
float  value,
bool  intermediate = false 
)
protectedinherited

Writes objective values to the Context.Problem as specified with valueWriting .

Parameters
valueWritingSpecifies the operation for writing values.
objectiveIndexSpecifies the objective for writing.
valueIndexSpecifies the value index for writing.
valueThe value to write.
intermediateIf true, the result is written in an intermediate IProblem<T> instance. This instance can be used to write the result of a single behaviour to the context. Otherwise, the results are applied directly.
Exceptions
ArgumentOutOfRangeExceptionIf there is no value at the specified objectiveIndex and/or valueIndex .
Imprint