#include "fpagame.hpp"
int main(int argc, char ** argv)
{
double entryCost=0.0;
double reservePrice=0.00;
double minAngleIncrement = 0.025;
int nb = 30;
int nv = nb;
double highbid = 0.15;
int t, a, ahat;
char filename[100];
sprintf(filename,"noinfo_maxp0_nv=%d_nb=%d_entrycost_%1.2f.bce",
nv,nb,entryCost);
cout << "Starting main" << endl;
FPAGame fpa(nb,nv,entryCost,reservePrice,highbid,entryCost);
cout << "Constructor finished" << endl;
try
{
cout << "Done populating" << endl;
vector<double> objWeights(3,0);
objWeights[2]=-1;
solver.
solve(objWeights);
cout << "Solved" << endl;
cout << "Bidder 1's surplus: "
cout << "Bidder 2's surplus: "
cout << "Revenue: "
}
{
cerr << "BCEException caught: " << endl
}
catch (...)
{
cout << "Unknown exception caught." << endl;
}
return 0;
}
Exception class for BCESolve.
Definition: bceexception.hpp:33
string getMessage()
Returns an error message.
Definition: bceexception.hpp:79
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
const GRBLinExpr & getObjectiveFunction(int n) const
Returns the th objective function.
Definition: bcesolver.hpp:261
@ MinAngleIncrement
Definition: bcesolver.hpp:59
void solve(vector< double > &objectiveWeights)
Solve method.
Definition: bcesolver.cpp:474
void setParameter(BCESolver::DoubleParameter, double arg)
Set double parameter.
Definition: bcesolver.cpp:82
void getSolution(BCESolution &output)
Returns the data object.
Definition: bcesolver.cpp:700