Class MPModelExportOptions

java.lang.Object
com.google.ortools.linearsolver.MPModelExportOptions

public final class MPModelExportOptions
extends java.lang.Object
Export options.
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected boolean swigCMemOwn  
  • Constructor Summary

    Constructors
    Modifier Constructor Description
      MPModelExportOptions()  
    protected MPModelExportOptions​(long cPtr, boolean cMemoryOwn)  
  • Method Summary

    Modifier and Type Method Description
    void delete()  
    protected void finalize()  
    protected static long getCPtr​(MPModelExportOptions obj)  
    boolean getLogInvalidNames()
    Whether to log invalid variable and constraint names.
    int getMaxLineLength()
    For .lp files only.
    boolean getObfuscate()
    Obfuscates variable and constraint names.
    boolean getShowUnusedVariables()
    For .lp files only.
    void setLogInvalidNames​(boolean value)
    Whether to log invalid variable and constraint names.
    void setMaxLineLength​(int value)
    For .lp files only.
    void setObfuscate​(boolean value)
    Obfuscates variable and constraint names.
    void setShowUnusedVariables​(boolean value)
    For .lp files only.

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • swigCMemOwn

      protected transient boolean swigCMemOwn
  • Constructor Details

    • MPModelExportOptions

      protected MPModelExportOptions​(long cPtr, boolean cMemoryOwn)
    • MPModelExportOptions

      public MPModelExportOptions()
  • Method Details

    • getCPtr

      protected static long getCPtr​(MPModelExportOptions obj)
    • finalize

      protected void finalize()
      Overrides:
      finalize in class java.lang.Object
    • delete

      public void delete()
    • setObfuscate

      public void setObfuscate​(boolean value)
      Obfuscates variable and constraint names.
    • getObfuscate

      public boolean getObfuscate()
      Obfuscates variable and constraint names.
    • setLogInvalidNames

      public void setLogInvalidNames​(boolean value)
      Whether to log invalid variable and constraint names.
    • getLogInvalidNames

      public boolean getLogInvalidNames()
      Whether to log invalid variable and constraint names.
    • setShowUnusedVariables

      public void setShowUnusedVariables​(boolean value)
      For .lp files only. Decides whether variables unused in the objective and
      constraints are shown when exported to a file.
    • getShowUnusedVariables

      public boolean getShowUnusedVariables()
      For .lp files only. Decides whether variables unused in the objective and
      constraints are shown when exported to a file.
    • setMaxLineLength

      public void setMaxLineLength​(int value)
      For .lp files only. Maximum line length in exported files. The default
      was chosen so that SCIP can read the files.
    • getMaxLineLength

      public int getMaxLineLength()
      For .lp files only. Maximum line length in exported files. The default
      was chosen so that SCIP can read the files.