transport8.cpp File Reference

This is the 8th model in a series of tutorial examples. More...

#include "gams.h"
#include <vector>
#include <mutex>
#include <thread>
#include <iostream>

Go to the source code of this file.

Functions

void scenSolve (GAMSWorkspace *ws, GAMSCheckpoint *cp, vector< double > *bmultVector, std::mutex *vectorMutex, std::mutex *ioMutex)
 Solve the model in different scenarios.
 
string getModelText ()
 Get model as string.
 

Detailed Description

This is the 8th model in a series of tutorial examples.

Here we show:

  • How to use a vector to solve multiple GAMSModelInstances in parallel

Definition in file transport8.cpp.