diff options
Diffstat (limited to 'lp.cpp')
-rw-r--r-- | lp.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -0,0 +1,19 @@ +#include <iostream> +#include "problem.h" + +using namespace std; + +int main(){ + Problem problem(cin); + cout<<problem<<endl<<endl; + + problem.solve(); + cout<<problem<<endl; + + cout<<"solution value: "<<problem.solutionValue()<<endl; + + vector<double> vec=problem.solutionVars(); + cout<<"variable values:"; + for(double v : vec)cout<<' '<<v; + cout<<endl; +} |