Table of Contents

Class ObjectiveEntry

Namespace
OptalCP
Assembly
OptalCP.dll

Single entry in the objective value history.

public class ObjectiveEntry
Inheritance
ObjectiveEntry
Inherited Members

Remarks

Tracks when each improving solution was found during the solve, along with its objective value and validation status.

There is one entry for each solution found. The entries are ordered by solve time.

See also:

Properties

Objective

The objective value of this solution.

public long? Objective { get; }

Property Value

long?

The objective value, or None if not applicable.

Remarks

The value is None when:

  • No objective was specified in the model (no Model.Minimize or Model.Maximize call).
  • The objective expression has an absent value in this solution.

SolveTime

Duration of the solve when this solution was found, in seconds.

public double SolveTime { get; }

Property Value

double

Seconds elapsed.

Valid

Whether this solution was verified (if verification is enabled).

public bool? Valid { get; }

Property Value

bool?

True if verified, None if not verified.

Remarks

When parameter Parameters.verifySolutions is set to True (the default), the solver verifies all solutions found. The verification checks that all constraints in the model are satisfied and that the objective value is computed correctly.

The verification is done using separate code (not used during the search). The point is to independently verify the correctness of the solution.

Possible values are:

  • None - the solution was not verified (because the parameter Parameters.verifySolutions was not set).
  • True - the solution was verified and correct.

The value can never be False because, in this case, the solver would stop with an error.