Click or drag to resize

XPRBsol Class

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

Namespace: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntax
public class XPRBsol

The XPRBsol type exposes the following members.

Properties
 NameDescription
Public propertyCode examplesize Get the size of the solution. Returns the number of variables assigned to a value in a solution.
Example
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;
Top
Methods
 NameDescription
Public methodCode exampledelVar Delete a variable assignment from a solution. This method removes a variable from a solution.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodCode examplegetVar 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 exampleisValid Flag indicating whether the solution is correctly defined.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodprint Print out a solution.
Public methodCode examplesetVar Adds a variable assignment in a solution. This method sets the value of a variable in a (partial) solution.
Public methodToStringReturns 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

BCL Namespace