Initializing help system before first use

XPRBsol Class

This class represents a Solution Definition in BCL.
Inheritance Hierarchy
SystemObject
   BCLXPRBsol

Namespace:   BCL
Assembly:  xprbdn (in xprbdn.dll) Version: 37.1.1.0
Syntax
C#
VB
public class XPRBsol

The XPRBsol type exposes the following members.

Properties
  Name Description
Public propertyCode example size
Get the size of the solution. Returns the number of variables assigned to a value in a solution.
Examples
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;
Top
Methods
  Name Description
Public methodCode example delVar
Delete a variable assignment from a solution. This method removes a variable from a solution.
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodCode example getVar
Gets the value assigned to a variable in a solution. This method retrieves the value assigned to a variable in a (partial) solution.
Public methodCode example isValid
Flag indicating whether the solution is correctly defined.
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method print
Print out a solution.
Public methodCode example setVar
Adds a variable assignment in a solution. This method sets the value of a variable in a (partial) solution.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
All variables in a solution must belong to the same problem as the solution itself.
See Also

Reference