Skip to content

Commit bb7f431

Browse files
committed
Minor fixes
1 parent ea68529 commit bb7f431

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

lib/copt_model.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,6 @@ void COPTModel::decode_graph_prefix_order(ExpressionGraph &graph, const Expressi
642642
}
643643
}
644644

645-
fmt::print("Decoding expression: {}\n", expr.to_string());
646645
decode_expr(graph, expr, opcodes, constants);
647646

648647
auto array_type = expr.array;

tests/test_nlp_opf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ def test_acopf(nlp_model_ctor):
192192

193193

194194
if __name__ == "__main__":
195-
from pyoptinterface import ipopt
195+
from pyoptinterface import ipopt, copt
196196

197197
test_acopf(ipopt.Model)
198+
test_acopf(copt.Model)

tests/test_nlp_rocket.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import pyoptinterface as poi
2-
from pyoptinterface import copt, ipopt, nlfunc
2+
from pyoptinterface import nlfunc
33

44
import math
55
import pytest
66

77

8-
def rocket_model(model: ipopt.Model, nh: int):
8+
def rocket_model(model, nh: int):
99
h_0 = 1.0
1010
v_0 = 0.0
1111
m_0 = 1.0
@@ -72,6 +72,7 @@ def test_rocket(nlp_model_ctor):
7272

7373

7474
if __name__ == "__main__":
75+
from pyoptinterface import copt, ipopt
7576

7677
def c():
7778
return ipopt.Model(jit="C")

0 commit comments

Comments
 (0)