IBM ILOG Solver User's Manual > Extending the Library > Advanced Modeling with Set Variables: Configuring Tankers > Model |
Model |
INDEX
![]() |
As you design an object model for this problem, you consider the classes, the attributes, and the relations to declare as well as the constraints to define on them. The knowledge contained in the problem description (that is, the attributes, relations, and constraints) can be encapsulated in a few classes that you define here. Constraints are defined in class constructors so that they are automatically added for each new instance of the class.
You can use these different classes to model the problem:
OrderI
represents the orders to fulfill on trucks
ProductI
represents the quantity of a given type of product in an order
TruckI
represents a truck
TankI
represents a tank on a truck
After you define those classes, you will define accessors for their attributes so that the attributes can be used directly by constraints on set variables.
© Copyright IBM Corp. 1987, 2009. Legal terms. | PREVIOUS NEXT |