#include "postedprice.hpp"
#include "bcesolver.hpp"
int main() {
int numVals = 300;
double price = 0.24999;
double prPlayer0Wins = .50;
PostedPrice pp(numVals,price,prPlayer0Wins);
pp.setHasProductStructureData(false);
vector<double> objWeights(3,0);
objWeights[2]=-1;
solver.
solve(objWeights);
stringstream fName;
fName << "postedprice_nv=" << numVals
<< "_price=" << price
<< "_pr0Wins=" << prPlayer0Wins << ".bce";
string fNameStr = fName.str();
const char * fNameC = fNameStr.c_str();
vector<vector<double> > mapBoundaryWeights(2,vector<double>(3,0));
mapBoundaryWeights[0][0]=1;
mapBoundaryWeights[0][1]=1;
mapBoundaryWeights[1][2]=1;
solver.
mapBoundary(
"postedpricebndry.dat",mapBoundaryWeights);
return 0;
}
Class for storing data produced by BCESolver.
Definition: bcesolution.hpp:64
static void save(const BCESolution &data, const char *filename)
Serialize a BCESolution object using Boost.
Definition: bcesolution.hpp:202
Solves a BCEAbstractGame using gurobi.
Definition: bcesolver.hpp:47
void populate()
Main populate routine.
Definition: bcesolver.cpp:163
void mapBoundary(const char *fname)
Maps the frontier.
Definition: bcesolver.cpp:526
void solve(vector< double > &objectiveWeights)
Solve method.
Definition: bcesolver.cpp:474
void getSolution(BCESolution &output)
Returns the data object.
Definition: bcesolver.cpp:700