IBMDecisionOptimization / docplex-examples

These samples demonstrate how to use the DOcplex library to model and solve optimization problems.
https://ibmdecisionoptimization.github.io/
Apache License 2.0
396 stars 228 forks source link

pwl question #31

Closed chenjw505 closed 4 years ago

chenjw505 commented 4 years ago

Is there a jupyter example about PWL(Piecewise linear functions)? I can't find it。

vlkong commented 4 years ago

Hi,

There is a section on approximating a non-linear program with piecewise linear functions in the Beyond Linear Programming tutorial.

Or you can just create a notebook and import https://github.com/IBMDecisionOptimization/docplex-examples/blob/master/examples/mp/modeling/sailcopw.py

Best regards,

chenjw505 commented 4 years ago

Thank u!