added 4 characters in body
Source Link
Stradivari
  • 1.4k
  • 4
  • 12

I don't know much about Python-mip but looking at the code, maximize expects a LinExpr, so I tried:

model.objective = maximize(1*x)

which gives the expected output.

Edit: I also opened a PR to allow maximize(var) and minimize(var).

Edit: The PR has been merged, this won'tshouldn't be a problem in >1.7.2.

I don't know much about Python-mip but looking at the code, maximize expects a LinExpr, so I tried:

model.objective = maximize(1*x)

which gives the expected output.

Edit: I also opened a PR to allow maximize(var) and minimize(var).

Edit: The PR has been merged, this won't be a problem in >1.7.2.

I don't know much about Python-mip but looking at the code, maximize expects a LinExpr, so I tried:

model.objective = maximize(1*x)

which gives the expected output.

Edit: I also opened a PR to allow maximize(var) and minimize(var).

Edit: The PR has been merged, this shouldn't be a problem in >1.7.2.

added 9 characters in body
Source Link
Stradivari
  • 1.4k
  • 4
  • 12

I don't know much about Python-mip but looking at the code, maximize expects a LinExpr, so I tried:

model.objective = maximize(1*x)

which gives the expected output.

Edit: I also opened a PR to allow maximize(var) and minimize(var).

Edit: The PR has been merged, this won't be a problem in >1.7.2.

I don't know much about Python-mip but looking at the code, maximize expects a LinExpr, so I tried:

model.objective = maximize(1*x)

which gives the expected output.

Edit: I also opened a PR to allow maximize(var) and minimize(var).

I don't know much about Python-mip but looking at the code, maximize expects a LinExpr, so I tried:

model.objective = maximize(1*x)

which gives the expected output.

Edit: I also opened a PR to allow maximize(var) and minimize(var).

Edit: The PR has been merged, this won't be a problem in >1.7.2.

added 123 characters in body
Source Link
Stradivari
  • 1.4k
  • 4
  • 12

I don't know much about Python-mip but looking at the code, maximize expects a LinExpr, so I tried:

model.objective = maximize(1*x)

which gives the expected output.

Edit: I also opened a PR to allow maximize(var) and minimize(var).

I don't know much about Python-mip but looking at the code, maximize expects a LinExpr, so I tried:

model.objective = maximize(1*x)

which gives the expected output.

I don't know much about Python-mip but looking at the code, maximize expects a LinExpr, so I tried:

model.objective = maximize(1*x)

which gives the expected output.

Edit: I also opened a PR to allow maximize(var) and minimize(var).

Fix github url to a tag
Source Link
Stradivari
  • 1.4k
  • 4
  • 12
Loading
deleted 55 characters in body
Source Link
Stradivari
  • 1.4k
  • 4
  • 12
Loading
added 25 characters in body
Source Link
Stradivari
  • 1.4k
  • 4
  • 12
Loading
Source Link
Stradivari
  • 1.4k
  • 4
  • 12
Loading