Advertisement
makispaiktis

Course 1 - Create an optimization problem

Aug 28th, 2023
1,151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.21 KB | None | 0 0
  1. clear all
  2. close all
  3. clc
  4.  
  5. % 1. Create an empth optimization problem
  6. prob = optimproblem("Description","Factory Location")
  7. show(prob)
  8.  
  9. % 2. Create optimization variables
  10. x = optimvar("x")
  11. y = optimvar("y")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement