*i write my ques and my answer.i face little problem of my solution. see my screenshort image solution-how to define norm? what is the problem?if need to anything add in julia so give screenshort . jupyter nootebook python with julia (without cvxpy as cp, numpy as np) 1: Modify your models and coding of Chebyshev center and building a house to get the right anwsers. # Given matrix A and vector b A = [2 -1 2; -1 2 4; 1 2 -2; -1 0 0; 0 -1 0; 0 0 -1] b = [2; 16; 8; 0; 0; 0]
*i write my ques and my answer.i face little problem of my solution. see my screenshort image solution-how to define norm? what is the problem?if need to anything add in julia so give screenshort . jupyter nootebook python with julia (without cvxpy as cp, numpy as np) 1: Modify your models and coding of Chebyshev center and building a house to get the right anwsers. # Given matrix A and vector b A = [2 -1 2; -1 2 4; 1 2 -2; -1 0 0; 0 -1 0; 0 0 -1] b = [2; 16; 8; 0; 0; 0]
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
*i write my ques and my answer.i face little problem of my solution. see my screenshort image solution-how to define norm? what is the problem?if need to anything add in julia so give screenshort .
jupyter nootebook python with julia (without cvxpy as cp, numpy as np)
1: Modify your models and coding of Chebyshev center and building a house to get the right anwsers.
# Given matrix A and
A = [2 -1 2; -1 2 4; 1 2 -2; -1 0 0; 0 -1 0; 0 0 -1]
b = [2; 16; 8; 0; 0; 0]
![Home Page - Select or cre X
Getting Started
chep center norm not - Ju X
1 -2°C
多云
localhost:8888/notebooks/chep%20 center norm not.ipynb
intoDNS: decodeslab.c... Bkash.com - WHOIS &...
UPDATE Read the migration plan to Notebook 7 to learn about the new features and the actions to take if you are using extensions - Please note that updating to Notebook 7 might break some of your extensions.
File
9
Jupyter chep center norm not Last Checkpoint: 5 minutes ago (autosaved)
Cell Kernel
Widgets Help
Code
+
Edit
g 2
View Insert
I
Untitled48 - Jupyter NotebX
↑ ✓
Free Email Extractor D... 主页 -清华大学研究生...
In [10] # Define the model
▶ Run
In [9]: # Import necessary packages.
using JUMP, Ipopt
Out [10] A JUMP Model
model = Model(Ipopt.Optimizer)
■
Feasibility problem with:
Variables: e
C
Model mode: AUTOMATIC
CachingOptimizer state: EMPTY_OPTIMIZER
Solver name: Ipopt
In [11]: # Define the variables
16
8
0
Ø
# radius
@variable (model, r = 0)
@variable (model, x[1:3]) # center
out [11]: 3-element vector(variableRef}:
x[1]
x[2]
x[3]
In [12]: # Define the matrix A and vector b
A = [2 -1 2; -1 2 4; 1 2 -2; -1 0 0; e -1 0; 0 0 -1]
b = [2; 16; 8; 0; 0; 0]
out [12] 6-element vector(Int64}:
UndefvarError: 'norm not defined
[3] top-level scope
@ .\In[25]:3
Home Page - Select or cre X
and
In [25]: # Define the constraints
for i in 1:size (A, 1)
@constraint (model, A[i, :]' * x + r * norm(A[i, :]) <= b[i])
end
stacktrace:
[1] macro expansion.
@D:\Julia-1.9.3\Julia PKG\packages\MutableArithmetics\K9YPJ\src\rewrite.j1:321 [inlined]
[2] macro expansion
@D:\Julia-1.9.3\Julia PKG\packages\JUMP\D44AQ\src\macros.j1:717 [inlined]
W
主页 -清华大学研究生...
S
Not Trusted
chep center norm not - Ju X
P
Logout
Julia 1.9.3 O
50%
Home_留学中国
X
+
New user screen
ENG
US
I
X
3:13 AM
12/3/2023
|||
Don't show anymore](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F3f6e5320-9542-4978-85bb-dab0d6abcd23%2F08ea1516-f50f-48a9-8e76-fbeb8f5e4044%2Febam4hq_processed.png&w=3840&q=75)
Transcribed Image Text:Home Page - Select or cre X
Getting Started
chep center norm not - Ju X
1 -2°C
多云
localhost:8888/notebooks/chep%20 center norm not.ipynb
intoDNS: decodeslab.c... Bkash.com - WHOIS &...
UPDATE Read the migration plan to Notebook 7 to learn about the new features and the actions to take if you are using extensions - Please note that updating to Notebook 7 might break some of your extensions.
File
9
Jupyter chep center norm not Last Checkpoint: 5 minutes ago (autosaved)
Cell Kernel
Widgets Help
Code
+
Edit
g 2
View Insert
I
Untitled48 - Jupyter NotebX
↑ ✓
Free Email Extractor D... 主页 -清华大学研究生...
In [10] # Define the model
▶ Run
In [9]: # Import necessary packages.
using JUMP, Ipopt
Out [10] A JUMP Model
model = Model(Ipopt.Optimizer)
■
Feasibility problem with:
Variables: e
C
Model mode: AUTOMATIC
CachingOptimizer state: EMPTY_OPTIMIZER
Solver name: Ipopt
In [11]: # Define the variables
16
8
0
Ø
# radius
@variable (model, r = 0)
@variable (model, x[1:3]) # center
out [11]: 3-element vector(variableRef}:
x[1]
x[2]
x[3]
In [12]: # Define the matrix A and vector b
A = [2 -1 2; -1 2 4; 1 2 -2; -1 0 0; e -1 0; 0 0 -1]
b = [2; 16; 8; 0; 0; 0]
out [12] 6-element vector(Int64}:
UndefvarError: 'norm not defined
[3] top-level scope
@ .\In[25]:3
Home Page - Select or cre X
and
In [25]: # Define the constraints
for i in 1:size (A, 1)
@constraint (model, A[i, :]' * x + r * norm(A[i, :]) <= b[i])
end
stacktrace:
[1] macro expansion.
@D:\Julia-1.9.3\Julia PKG\packages\MutableArithmetics\K9YPJ\src\rewrite.j1:321 [inlined]
[2] macro expansion
@D:\Julia-1.9.3\Julia PKG\packages\JUMP\D44AQ\src\macros.j1:717 [inlined]
W
主页 -清华大学研究生...
S
Not Trusted
chep center norm not - Ju X
P
Logout
Julia 1.9.3 O
50%
Home_留学中国
X
+
New user screen
ENG
US
I
X
3:13 AM
12/3/2023
|||
Don't show anymore
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps

Recommended textbooks for you

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY