#include "CoinSolver.h"
#include "OSConfig.h"
#include "OSnl2osil.h"
#include "OSiLReader.h"
#include "OSrLReader.h"
#include "OSiLWriter.h"
#include "OSrLWriter.h"
#include "OSInstance.h"
#include "OSResult.h"
#include "DefaultSolver.h"
#include "OSSolverAgent.h"
#include "OShL.h"
#include "ErrorClass.h"
#include <sstream>
#include <asl.h>
Include dependency graph for amplClient.cpp:
Go to the source code of this file.
Functions | |
int | main (int argc, char **argv) |
model hs71.mod;
option solver amplClient;
option amplClient_options "solver ipopt";
write gtestfile;
solve;
display x1;
you should get:
x1 = 1
display x2;
you should get:
x2 = 4.743
now if you wanted to call a remote OS solver do something like:
option ipopt_options "http://128.135.130.17:8080/os/OSSolverService.jws";
Definition in file amplClient.cpp.
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 80 of file amplClient.cpp.
References OSnl2osil::createOSInstance(), ErrorClass::errormsg, OSResult::getOptimalDualVariableValues(), OSResult::getOptimalPrimalVariableValues(), OSResult::getSolutionMessage(), DefaultSolver::osinstance, OSnl2osil::osinstance, osinstance, DefaultSolver::osol, osresult, DefaultSolver::osrl, OSrLReader::readOSrL(), OSResult::setGeneralMessage(), OSResult::setGeneralStatusType(), OSSolverAgent::solve(), DefaultSolver::solve(), DefaultSolver::sSolverName, OSiLWriter::writeOSiL(), and OSrLWriter::writeOSrL().