XPRMMPVar Class
A decision variable in Mosel. The functions provided here can be used to retrieve solution information after the problem has been solved.

SystemObject
MoselXPRMObjectBase
MoselXPRMTypedObject
MoselXPRMValue
MoselXPRMReference
MoselXPRMMPVar
MoselXPRMObjectBase
MoselXPRMTypedObject
MoselXPRMValue
MoselXPRMReference
MoselXPRMMPVar
Namespace: Mosel
Assembly: xprmdn (in xprmdn.dll) Version: 5.0.2.0

C#
public class XPRMMPVar : XPRMReference
The XPRMMPVar type exposes the following members.

Name | Description | |
---|---|---|
![]() |
IsInitialised | (Overrides XPRMValueIsInitialised.) |
![]() |
Model |
Used to fetch the XPRM model to which this object belongs, or else 'null' if there is no model anywhere among this Object's ancestors.
(Inherited from XPRMObjectBase.) |
![]() |
Number |
Column number. This is the column representing the variable in the matrix - available only if the matrix has been generated. Returns a negative value if no matrix is available or the variable does not belong to the problem.
|
![]() |
Owner |
Used to fetch the XPRM object to which this object belongs
(Inherited from XPRMObjectBase.) |
![]() |
ReducedCost |
Reduced cost, or 0 if none available
|
![]() |
Solution |
Solution value, or 0 if no solution is available
|
![]() |
StructCode | (Inherited from XPRMReference.) |
![]() |
StructName | (Inherited from XPRMReference.) |
![]() |
Type | (Inherited from XPRMTypedObject.) |
![]() |
TypeCode | (Inherited from XPRMTypedObject.) |
![]() |
TypeName | (Inherited from XPRMTypedObject.) |
![]() |
Value |
The value of this reference (not necessary anymore, preserved for compatibility)
(Inherited from XPRMReference.) |

Name | Description | |
---|---|---|
![]() |
AsArray |
An array type value. This function is defined if the actual object is of a array type.
(Inherited from XPRMValue.) |
![]() |
AsBoolean |
A Boolean. This function is defined if the actual object is a Boolean
(Inherited from XPRMValue.) |
![]() |
AsExternal |
An external type value. This function is defined if the actual object is of an external type.
(Inherited from XPRMValue.) |
![]() |
AsInteger |
An integer. This function is defined if the actual object is an integer.
(Inherited from XPRMValue.) |
![]() |
AsLinCtr |
A linear constraint. This function is defined if the actual object is a linear constraint.
(Inherited from XPRMValue.) |
![]() |
AsList |
A list type value. This function is defined if the actual object is of a list type.
(Inherited from XPRMValue.) |
![]() |
AsMPVar |
A decision variable. This function is defined if the actual object is a decision variable.
(Overrides XPRMValueAsMPVar.) |
![]() |
AsProblem |
A problem. This function is defined if the actual object is a problem.
(Inherited from XPRMValue.) |
![]() |
AsReal |
A real. This function is defined if the actual object is a real.
(Overrides XPRMValueAsReal.) |
![]() |
AsRecord |
A record type value. This function is defined if the actual object is of a record type.
(Inherited from XPRMValue.) |
![]() |
AsSet |
A set type value. This function is defined if the actual object is of a set type.
(Inherited from XPRMValue.) |
![]() |
AsString |
A string. This function is defined if the actual object is a string.
(Inherited from XPRMValue.) |
![]() |
Equals | (Overrides ObjectEquals(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 | (Overrides ObjectGetHashCode.) |
![]() |
GetType |
Gets the type of the current instance.
(Inherited from Object.) |
![]() |
MemberwiseClone |
Creates a shallow copy of the current
Object.
(Inherited from Object.) |
![]() |
ToString |
Solution value as a string.
(Overrides XPRMTypedObjectToString.) |
