Hi,
still working on the Java API. A question: I want to use the Modelinstance with Gamsmodifiers. All straightforward with Parameters. However, I would like to add/remove set entries via the modifier which seems not to be possible. Is there a way to do this via SyncDB operations or is this just out of the scope for the Instance? I manage to add a set and records to the SyncDB but the added records are not considered in the solution…
sample code:
gamsModelInst.SyncDB().addSet(“curPlots”, 1);
gamsModelInst.instantiate(“Fruchtfolge using MIP maximizing v_obje”, new GAMSModifier(gamsGrossmarginParameter),new GAMSModifier(plotDataPara));
gamsModelInst.SyncDB().getSet(“curPlots”).addRecord(“plot3”);
gamsModelInst.solve();
regards