if (solver1.hasSolution()) { cout << "The maximum is: " << solver1.getOptimum() << endl; cout << "The solution is: " << solver1.getSolution().transpose() << endl; } else { cout << "The linear problem has no solution." << endl; }
if (solver2.hasSolution()) { cout << "The minimum is: " << solver2.getOptimum() << endl; cout << "The solution is: " << solver2.getSolution().transpose() << endl; } else { cout << "The linear problem has no solution." << endl; } } catch (const FException &ex) { ex.Print(); return 1; } return 0;} Foydalanilgan adabiyotlar va saytlar: Yo. Soatov oliy matematika asoslari 1-3 qism Toshkent 1995 www.cplusplus.com www.fayl.org.uz www.ziyo.uz