public interface Problem
This interface is implemented by problems, and is intended
for those who want to create an optimization problem. If you
are an algorithm writer, you don't need to understand this
interface but instead the inheriting interface for the
particular problem, such as TSPAlgorithm.
| Method Summary | |
|---|---|
java.lang.String |
getErrorMessage()
Retrieve error message about an invalid problem. |
void |
readFromFile(java.io.File f)
Read the problem in plain text from the given file. |
java.lang.String |
toString()
Returns a problem description summary. |
void |
writeToFile(java.io.File f)
Write the problem in plain text to the given file. |
| Method Detail |
|---|
void writeToFile(java.io.File f)
f - a File valuevoid readFromFile(java.io.File f)
f - a File valuejava.lang.String toString()
toString in class java.lang.ObjectString valuejava.lang.String getErrorMessage()
String value