Difference between revisions of "OptWriteIIS"

 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
 
[[Category:Doc Status C]] <!-- For Lumina use, do not change -->
 
[[Category:Doc Status C]] <!-- For Lumina use, do not change -->
 
   
 
   
''New to [[Analytica 4.3]].  Previously named [[LpWriteIIS]].''
 
 
= OptWriteIIS(opt, filename'', format'' ) =
 
  
 +
== OptWriteIIS(opt, filename'', format'' ) ==
 
Finds an Irreducibly Infeasile Subset (IIS) of Constraints in a linear program defined using [[DefineOptimization]], and writes a description of the IIS to an indicated file.  Returns the full file path to the file written.
 
Finds an Irreducibly Infeasile Subset (IIS) of Constraints in a linear program defined using [[DefineOptimization]], and writes a description of the IIS to an indicated file.  Returns the full file path to the file written.
  
 
An Irreducibly Infeasibe Subset (IIS) of constraints is a subset of your constraints (and variable bounds) which contains no feasible solution, but which has the property that if any single constraint or variable bound is removed, there will be feasible solutions.  Thus, it is a minimal set of conflicting constraints.
 
An Irreducibly Infeasibe Subset (IIS) of constraints is a subset of your constraints (and variable bounds) which contains no feasible solution, but which has the property that if any single constraint or variable bound is removed, there will be feasible solutions.  Thus, it is a minimal set of conflicting constraints.
  
When <code>[[OptStatusNum]](opt,true)</code> returns 0, it indicates that there are no feasible solutions -- that the set of constraints are contradictory.  This function is useful for locating the source of the contradiction.   
+
When <code>OptStatusNum(opt, true)</code> returns 0, it indicates that there are no feasible solutions -- that the set of constraints are contradictory.  This function is useful for locating the source of the contradiction.   
  
'''''Parameters:'''''
+
'''Parameters:'''
* '''''opt''''' : A linear program created using [[DefineOptimization]].
+
* «opt» : A linear program created using [[DefineOptimization]].
* '''''filename''''': A textual filename.  Relative file paths are interpreted relative to the [[CurrentDataDirectory]].
+
* «filename»: A textual filename.  Relative file paths are interpreted relative to the [[CurrentDataFolder]].
* '''''format''''': (optional) Specifies the file format.  Possible values are:   
+
* «format»: (optional) Specifies the file format.  Possible values are:   
** "LP" (or 1)
+
*: <code>"LP"</code> (or <code>1</code>)
** "MPS" (or 2)
+
*: <code>"MPS"</code> (or <code>2</code>)
** "LPFML" (or 3)
+
*: <code>"LPFML"</code> (or <code>3</code>)
  
= See Also =
+
==History==
 +
This function was introduced in [[Analytica 4.3]] to replace the previous version [[LpWriteIIS]].
  
 +
== See Also ==
 
* [[DefineOptimization]]
 
* [[DefineOptimization]]
 
* [[OptFindIIS]]
 
* [[OptFindIIS]]
 
* [[OptRead]]
 
* [[OptRead]]
 
* [[OptWrite]]
 
* [[OptWrite]]

Latest revision as of 23:28, 20 January 2016


OptWriteIIS(opt, filename, format )

Finds an Irreducibly Infeasile Subset (IIS) of Constraints in a linear program defined using DefineOptimization, and writes a description of the IIS to an indicated file. Returns the full file path to the file written.

An Irreducibly Infeasibe Subset (IIS) of constraints is a subset of your constraints (and variable bounds) which contains no feasible solution, but which has the property that if any single constraint or variable bound is removed, there will be feasible solutions. Thus, it is a minimal set of conflicting constraints.

When OptStatusNum(opt, true) returns 0, it indicates that there are no feasible solutions -- that the set of constraints are contradictory. This function is useful for locating the source of the contradiction.

Parameters:

  • «opt» : A linear program created using DefineOptimization.
  • «filename»: A textual filename. Relative file paths are interpreted relative to the CurrentDataFolder.
  • «format»: (optional) Specifies the file format. Possible values are:
    "LP" (or 1)
    "MPS" (or 2)
    "LPFML" (or 3)

History

This function was introduced in Analytica 4.3 to replace the previous version LpWriteIIS.

See Also

Comments


You are not allowed to post comments.