27 TEST(StandardProgram, TypicalNonNegative) {
28 vector<mpz_class> grading(4);
32 grading[3] =
"1000000000000000000000000000000000000";
44 TEST(StandardProgram, TypicalNegative) {
45 vector<mpz_class> grading(4);
49 grading[3] =
"1000000000000000000000000000000000000";
60 TEST(StandardProgram, ZeroIdeal) {
61 vector<mpz_class> grading(3);
66 for (
size_t varCount = 0; varCount <= 3; ++varCount) {
84 TEST(StandardProgram, WholeRing) {
85 vector<mpz_class> grading(3);
90 for (
size_t varCount = 0; varCount <= 3; ++varCount) {
TEST(StandardProgram, TypicalNonNegative)
const mpz_t * castLibArray(const vector< mpz_class > &vect)
Returns a pointer to an array of mpt_t that represents the entries in the mpz_class.
Frobby::Ideal toLibIdeal(const BigIdeal &ideal)
Returns a library interface ideal that corresponds to the parameter ideal.
#define ASSERT_TRUE(VALUE)
#define ASSERT_FALSE(VALUE)
static BigIdeal z()
Returns .
static VarNames ring_xyzt()
Returns the ring in the four variables , , and .
static BigIdeal xy()
Returns .
static BigIdeal xx_yy_zz_t_xz_yz()
Returns .
static BigIdeal zeroIdeal(size_t varCount)
Returns the ideal in the ring VarNames(varCount).
static BigIdeal wholeRing(size_t varCount)
Returns in the ring VarNames(varCount).
Records library interface output into a BigIdeal.
const BigIdeal & getIdeal() const
Returns the recorded ideal in a canonical form.
Defines the variables of a polynomial ring and facilities IO involving them.
#define TEST_SUITE2(PARENT, SUITE)
bool solveStandardMonomialProgram(const Ideal &ideal, const mpz_t *l, IdealConsumer &consumer)
Solve the optimization program.