Table of Contents

Namespace OptalCP

Classes

BoolExpr

Boolean expression, e.g. a comparison or a logical combination of other expressions.

BoolVar

Boolean decision variable whose value is determined by the solver.

Constraint

A restriction on variable values, created by comparison operators or constraint-posting methods.

CumulExpr

Tracks cumulative resource usage over time for capacity constraints.

IntExpr

Integer expression, e.g. an arithmetic combination of variables and constants.

IntStepFunction

Piecewise-constant function mapping time to integers, used for costs and availability windows.

IntVar

Integer decision variable with a domain.

IntervalVar

Interval (task) variable for scheduling. Has start, end, length, and optional presence.

Model

Central class for building optimization models. Creates variables, constraints, and objectives.

ModelElement

The base class for all modeling objects.

Objective

Represents an optimization objective in the model.

ObjectiveBoundEntry

Single entry in the objective bound history.

ObjectiveEntry

Single entry in the objective value history.

Parameters

Parameters specify how the solver should behave.

SequenceVar

Ordered sequence of intervals for routing and sequencing problems.

Solution

Access to variable values after solving.

SolutionEvent

An event emitted when the solver finds a solution.

SolveResult

Holds the solution, objective, statistics, and solve status after solving.

Solver

Async solver with event callbacks for solutions, bounds, and log messages.

WorkerParameters

Specifies the behavior of each worker separately.

Structs

IntBound

Represents an integer bound that can be a fixed value or a range (min, max). Supports implicit conversion from int, (int, int), and (int?, int?) tuples.