メインコンテンツへスキップ

Is there a way to create and return lp files in memory?

コメント

2件のコメント

  • Jakob Schelbert
    Gurobi-versary
    Collaborator

    Hi Christopher,

    Have you tried saving each model itself and later call model.write() on the relevant models, or is the (memory) overhead too big for this approach?

    Can you elaborate a bit more why would you like to save only parts of a model?

    0
  • Christopher Bersch
    Gurobi-versary
    First Question
    First Comment

    Dear Jakob,
    For one optimization run, hundreds of models (model modifications) are being created. For debugging purposes I would like to trace some constraints. Of course I can do that manually, but debugging would be much faster if I simply keep the model as string in memory and only export subparts of the model as needed.
    Besides, all my data is being stored in an sql database. Storing the models as strings in the same database would make it easier to analyse results and models later on.
    Thanks
    Christopher

    0

サインインしてコメントを残してください。