blob: 2a4a2835e88d539c0fc4d2081eadf70f68b0fbfd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;
}
|