Hi,
This task took a lot of time, so I wanted to share how I sorted out.
Look at the example:
tuple dataMaeStations {
key string stations;
float price;
};
{dataMaeStations} infoMaeStations = {<"s1", 1>, <"s2",2>};
//Modify programatically the value of an element in a tuple set
execute{
infoMaeStations.find("s1").price = 5;
writeln(infoMaeStations);
}
//This prints the updated tuple set infoMaeStations {<"s1" 5> <"s2" 2>}
//Another way
execute{
infoMaeStations.find("s1",5).price = 10;
writeln(infoMaeStations);
}
//This prints the updated tuple set infoMaeStations {<"s1" 10> <"s2" 2>}
#DecisionOptimization#Support#SupportMigration