XPRBsol Class |
The XPRBsol type exposes the following members.
| Name | Description | |
|---|---|---|
| size |
Get the size of the solution.
Returns the number of variables assigned to a value in a solution.
C# XPRBprob expl1 = new XPRBprob("example1"); XPRBvar x1 = expl1.newVar("abc3", BCLconstant.XPRB_UI, 1, 100); XPRBsol sol1 = expl1.newSol(); sol1.setVar(x1,1.0); int size = sol1.size; |
| Name | Description | |
|---|---|---|
| delVar | Delete a variable assignment from a solution. This method removes a variable from a solution. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| getVar | Gets the value assigned to a variable in a solution. This method retrieves the value assigned to a variable in a (partial) solution. | |
| isValid | Flag indicating whether the solution is correctly defined. | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| Print out a solution. | ||
| setVar | Adds a variable assignment in a solution. This method sets the value of a variable in a (partial) solution. | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |