API Summary
Quick reference for SolverForge Python API.
Quick reference guides and answers to common questions.
# Domain modeling
from solverforge_legacy.solver.domain import (
planning_entity,
planning_solution,
PlanningId,
PlanningVariable,
PlanningListVariable,
PlanningEntityCollectionProperty,
ProblemFactCollectionProperty,
ValueRangeProvider,
PlanningScore,
PlanningPin,
InverseRelationShadowVariable,
PreviousElementShadowVariable,
NextElementShadowVariable,
CascadingUpdateShadowVariable,
)
# Constraints
from solverforge_legacy.solver.score import (
constraint_provider,
ConstraintFactory,
Constraint,
Joiners,
ConstraintCollectors,
HardSoftScore,
HardMediumSoftScore,
SimpleScore,
)
# Solver
from solverforge_legacy.solver import (
SolverFactory,
SolverManager,
SolutionManager,
ProblemChange,
)
# Configuration
from solverforge_legacy.solver.config import (
SolverConfig,
ScoreDirectorFactoryConfig,
TerminationConfig,
Duration,
)
| Score Type | Levels | Use Case |
|---|---|---|
SimpleScore | 1 | Single optimization objective |
HardSoftScore | 2 | Feasibility (hard) + optimization (soft) |
HardMediumSoftScore | 3 | Hard + important preferences + nice-to-have |
BendableScore | N | Custom number of levels |
*DecimalScore | - | Decimal precision variants |
Quick reference for SolverForge Python API.
Frequently asked questions about SolverForge.
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.