Difference between revisions of "LpWriteIIS"

(Removed the constraintsOnly parameter)
(added format to the parameter list)
Line 3: Line 3:
 
[[What's new in Analytica 4.0?]] >
 
[[What's new in Analytica 4.0?]] >
  
= LpWriteIIS( lp, filename ) =
+
= LpWriteIIS( lp, filename[[, format]] ) =
  
 
Finds an Irreducibly Infeasile Subset (IIS) of Constraints in a linear program defined using [[LpDefine]], 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 [[LpDefine]], and writes a description of the IIS to an indicated file.  Returns the full file path to the file written.
Line 18: Line 18:
 
** "MPS" (or 2)
 
** "MPS" (or 2)
 
** "LPFML" (or 3)
 
** "LPFML" (or 3)
 
+
 
 
= See Also =
 
= See Also =
  
 
* [[LpDefine]]
 
* [[LpDefine]]
 
* [[LpFindIIS]]
 
* [[LpFindIIS]]

Revision as of 22:52, 9 April 2007


What's new in Analytica 4.0? >

LpWriteIIS( lp, filename, format )

Finds an Irreducibly Infeasile Subset (IIS) of Constraints in a linear program defined using LpDefine, 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 LpStatusNum returns 5, 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:

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

See Also

Comments


You are not allowed to post comments.