XPRBsol Class
This class represents a Solution Definition in BCL.

Namespace: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 4.8.14.0

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.
![]()
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 | (Inherited from Object.) |
![]() |
Finalize |
Allows an
Object to attempt to free resources and perform other cleanup operations before the
Object is reclaimed by garbage collection.
(Inherited from Object.) |
![]() |
GetHashCode |
Serves as a hash function for a particular type.
(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 | (Inherited from Object.) |

All variables in a solution must belong to the same problem as the solution itself.
