Package com.powsybl.ampl.executor
Interface AmplInputFile
public interface AmplInputFile
An additional file provided to an Ampl run.
Useful when you need more information for your ampl model.
- Author:
- Nicolas PIERRE <[email protected]>
-
Method Summary
Modifier and TypeMethodDescriptionName of the file to addvoid
write
(BufferedWriter writer, StringToIntMapper<AmplSubset> networkAmplMapper) Write data to file via aBufferedWriter
.
-
Method Details
-
getFileName
String getFileName()Name of the file to add -
write
void write(BufferedWriter writer, StringToIntMapper<AmplSubset> networkAmplMapper) throws IOException Write data to file via aBufferedWriter
. Called before the ampl solve.- Parameters:
writer
- writer encoded in UTF-8 to write data to the filenetworkAmplMapper
- mapper to convertNetwork
IDs to Ampl IDs and vice versa- Throws:
IOException
-