Package com.google.ortools.linearsolver
Class MPModelExportOptions
- java.lang.Object
-
- com.google.ortools.linearsolver.MPModelExportOptions
-
public final class MPModelExportOptions extends java.lang.ObjectExport options.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanswigCMemOwn
-
Constructor Summary
Constructors Modifier Constructor Description MPModelExportOptions()protectedMPModelExportOptions(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()protected voidfinalize()protected static longgetCPtr(MPModelExportOptions obj)booleangetLogInvalidNames()Whether to log invalid variable and constraint names.intgetMaxLineLength()For .lp files only.booleangetObfuscate()Obfuscates variable and constraint names.booleangetShowUnusedVariables()For .lp files only.voidsetLogInvalidNames(boolean value)Whether to log invalid variable and constraint names.voidsetMaxLineLength(int value)For .lp files only.voidsetObfuscate(boolean value)Obfuscates variable and constraint names.voidsetShowUnusedVariables(boolean value)For .lp files only.protected static longswigRelease(MPModelExportOptions obj)
-
-
-
Method Detail
-
getCPtr
protected static long getCPtr(MPModelExportOptions obj)
-
swigRelease
protected static long swigRelease(MPModelExportOptions obj)
-
finalize
protected void finalize()
- Overrides:
finalizein classjava.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.
-
-