Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
ortools.constraint_solver.pywrapcp.BoundCost Class Reference
Inheritance diagram for ortools.constraint_solver.pywrapcp.BoundCost:

Public Member Functions

 __init__ (self, *args)
 

Properties

 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 
 bound = property(_pywrapcp.BoundCost_bound_get, _pywrapcp.BoundCost_bound_set)
 
 cost = property(_pywrapcp.BoundCost_cost_get, _pywrapcp.BoundCost_cost_set)
 

Detailed Description

A structure meant to store soft bounds and associated violation constants.
It is 'Simple' because it has one BoundCost per element,
in contrast to 'Multiple'. Design notes:
- it is meant to store model information to be shared through pointers,
  so it disallows copy and assign to avoid accidental duplication.
- it keeps soft bounds as an array of structs to help cache,
  because code that uses such bounds typically use both bound and cost.
- soft bounds are named pairs, prevents some mistakes.
- using operator[] to access elements is not interesting,
  because the structure will be accessed through pointers, moreover having
  to type bound_cost reminds the user of the order if they do a copy
  assignment of the element.

Definition at line 6111 of file pywrapcp.py.

Constructor & Destructor Documentation

◆ __init__()

ortools.constraint_solver.pywrapcp.BoundCost.__init__ ( self,
* args )

Definition at line 6132 of file pywrapcp.py.

Property Documentation

◆ bound

ortools.constraint_solver.pywrapcp.BoundCost.bound = property(_pywrapcp.BoundCost_bound_get, _pywrapcp.BoundCost_bound_set)
static

Definition at line 6129 of file pywrapcp.py.

◆ cost

ortools.constraint_solver.pywrapcp.BoundCost.cost = property(_pywrapcp.BoundCost_cost_get, _pywrapcp.BoundCost_cost_set)
static

Definition at line 6130 of file pywrapcp.py.

◆ thisown

ortools.constraint_solver.pywrapcp.BoundCost.thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
static

Definition at line 6127 of file pywrapcp.py.


The documentation for this class was generated from the following file: