Class MstReader
Inheritance
System.Object
MstReader
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: OPTANO.Modeling.Optimization.Importer.MST
Assembly: Optimization.dll
Syntax
public class MstReader
Methods
ReadUserSolutionFromMstFile(String)
Reads a wellformated mst file Format shall be like VariableName1 ###.####
Declaration
public static Dictionary<string, double> ReadUserSolutionFromMstFile(string mstFile)
Parameters
Type | Name | Description |
---|---|---|
System.String | mstFile | mipstarting values from file |
Returns
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.Double> |
ReadUserSolutionFromMstStream(StreamReader)
Reads a wellformated mst stream Format shall be like VariableName1 ###.####
Declaration
public static Dictionary<string, double> ReadUserSolutionFromMstStream(StreamReader mstStream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.StreamReader | mstStream | mipstarting values from a StreamReader |
Returns
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.Double> |
ReadVariableValuesFromMstFile(StreamReader, Model)
Reads a wellformated mst stream Format shall be like VariableName1 ###.####
Declaration
public static Dictionary<Variable, double> ReadVariableValuesFromMstFile(StreamReader mstStream, Model model)
Parameters
Type | Name | Description |
---|---|---|
System.IO.StreamReader | mstStream | Stream |
Model | model | Model to map variable names |
Returns
Type | Description |
---|---|
System.Collections.Generic.Dictionary<Variable, System.Double> |
ReadVariableValuesFromMstFile(String, Model)
Reads a wellformated mst file Format shall be like VariableName1 ###.####
Declaration
public static Dictionary<Variable, double> ReadVariableValuesFromMstFile(string mstFile, Model model)
Parameters
Type | Name | Description |
---|---|---|
System.String | mstFile | filename incl. path |
Model | model | Model to map variable names |
Returns
Type | Description |
---|---|
System.Collections.Generic.Dictionary<Variable, System.Double> |